CloudTran Home

 
  
 
Contents  >   11.  CloudTran Profile Reference
 


11.1 Action Object

Used on
processingUnit
service
DescriptionAn action is the processing of some input data, possible resulting in output data.

An action is a variant of the business method idea but with different ways of expressing inputs and outputs. It will become an implementation method on a class.
Contained
Lists
1
Name  exception
Type  String
Description  Defines the exception(s) thrown by the method.

In the Eclips editor, multiple thrown exceptions may be specified in the 'exception' property using a comma separated list.

In XML, you can use one or more <exception> nested elements as an alternative to the 'exception=' property.

Any duplicate exceptions are ignored.
Unique  false
 
2
Name  otherInputs
Type  String
Description  Other Java Bean inputs to this action.

These do not appear in the signature of the generated method, but the code to access them should be generated - in the comment of the method, or as helper methods in the class.
Unique  false
 
3
Name  otherResults
Type  String
Description  Other Java Bean inputs to this action.

These cannot appear as the result of the generated method, but the code to write them should be generated - in the comment of the method, or as helper methods in the class.
Unique  false
 
4
Name  otherInputObjects
Type  javaBean
GenerateAllList  false
 
5
Name  otherResultObjects
Type  javaBean
GenerateAllList  false
Inherited
properties
text (base property)

 11.1.1  Property 'description'
 11.1.2  Property 'input'
 11.1.3  Property 'name'
 11.1.4  Property 'result'

11.1.1  Property 'description'
DescriptionOptional description.

Use this to
  1. document the meaning of a particular item
  2. specify functionality at the design stage for implementation later.
TypeString

11.1.2  Property 'input'
DescriptionThe Java Bean input to this action. This takes the place of input parameters. Note that only one input class is allowed.

In a graphical model, the identity of the input Java Bean will be indicated by a "workflow" style line from the Java Bean to the action. This line will indicate the type of event to be used: see the subscriber.
TypeString

11.1.3  Property 'name'
DescriptionSpecifies the name of the method.
TypeString
Requiredtrue

11.1.4  Property 'result'
DescriptionThe Java Bean result of this action. This takes the place of the returnType.

In a graphical model, the identity of the result Java Bean will be indicated by a "workflow" style line from the action to the Java Bean. This line will indicate the type of event to be used: see the subscriber.

If the result bean has a defaultSpace set, the code will be generated to write into that spsace. But this can be overridden - in this case, the model does not determine the final action of the generated code.

It is also possible not to generate the 'normal' result, as modelled here, and instead to generate out beans in different spaces depending on the business requirements.
TypeString

Copyright (c) 2001-2011 CloudTran Inc.