de.danet.an.workflow.api
Interface Activity.SubFlowImplementation

All Superinterfaces:
Activity.Implementation, java.io.Serializable
Enclosing interface:
Activity

public static interface Activity.SubFlowImplementation
extends Activity.Implementation

This interface describes the implementation of an activity by a sub flow.


Field Summary
static int ASYNCHR
          Denotes asynchronous execution of subflow.
static int SYNCHR
          Denotes synchronous execution of subflow.
 
Method Summary
 int execution()
          Return the execution mode.
 java.lang.String packageId()
          Return the package id of the subflow.
 java.lang.String processId()
          Return the process id of the subflow.
 java.lang.String processKey()
          Return the key of the invoked process if it has been started.
 

Field Detail

ASYNCHR

public static final int ASYNCHR
Denotes asynchronous execution of subflow.

See Also:
Constant Field Values

SYNCHR

public static final int SYNCHR
Denotes synchronous execution of subflow.

See Also:
Constant Field Values
Method Detail

packageId

public java.lang.String packageId()
Return the package id of the subflow. Can be used together with the processId to lookup the process definition using ProcessDefinitionDirectory.lookupProcessDefinition.

Returns:
value of package id.

processId

public java.lang.String processId()
Return the process id of the subflow. Can be used together with the packageId to lookup the process definition using ProcessDefinitionDirectory.lookupProcessDefinition.

Returns:
value of process id.

processKey

public java.lang.String processKey()
Return the key of the invoked process if it has been started.

Returns:
the key or null if no process is running.

execution

public int execution()
Return the execution mode.

Returns:
either ASYNCHR or SYNCHR.