com.ibm.dse.automaton.ext
Class ExecuteSubflowAct
java.lang.Object
|
+--com.ibm.dse.base.DSENotifier
|
+--com.ibm.dse.automaton.DSEAction
|
+--com.ibm.dse.automaton.ext.ExecuteSubflowAct
- public class ExecuteSubflowAct
- extends DSEAction
This class provides the behaviour for a sample DSEAction to create and execute
nested subflows within the automaton.
- See Also:
- Serialized Form
Constructor Summary |
ExecuteSubflowAct()
Creates an object of type ExecuteSubFlow. |
ExecuteSubflowAct(boolean mustRegister)
Creates an object of type ExecuteSubFlow. |
ExecuteSubflowAct(java.lang.String aName)
Creates an object of type ExecuteSubFlow. |
ExecuteSubflowAct(java.lang.String aName,
java.lang.String aTID)
Creates an object of type ExecuteSubFlow. |
Method Summary |
void |
execute()
This method is used for nesting processes; it starts another processor instance and
waits until it terminates its flow. |
Methods inherited from class com.ibm.dse.automaton.DSEAction |
chainOrAssignContext,
chainOrAssignContext,
close,
close,
evaluateGuardCondition,
externalizer,
getContext,
getGuardConditions,
getInputMapFmtTag,
getOperationTag,
getOutputMapFmtTag,
getParms,
getProcessor,
getSourceEvent,
initializeFrom,
mapTheInput,
mapTheOutput,
preProcess,
readExternal,
readExternal,
removeExternal,
setContext,
setGuardConditions,
setInputMapFmtTag,
setOperationTag,
setOutputMapFmtTag,
setParms,
setProcessor,
setSourceEvent,
toString,
toStrings,
toTags,
writeExternal,
writeExternal |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
ExecuteSubflowAct
public ExecuteSubflowAct()
- Creates an object of type ExecuteSubFlow.
ExecuteSubflowAct
public ExecuteSubflowAct(java.lang.String aName)
- Creates an object of type ExecuteSubFlow.
- Parameters:
aName
- java.lang.String
ExecuteSubflowAct
public ExecuteSubflowAct(java.lang.String aName,
java.lang.String aTID)
- Creates an object of type ExecuteSubFlow.
- Parameters:
aName
- java.lang.StringaTID
- java.lang.String
ExecuteSubflowAct
public ExecuteSubflowAct(boolean mustRegister)
- Creates an object of type ExecuteSubFlow.
- Parameters:
mustRegister
- boolean
execute
public void execute()
throws java.lang.Exception
- This method is used for nesting processes; it starts another processor instance and
waits until it terminates its flow.
- it reads in the value of the "processor" attribute of the action creating the
specified instance of processor
- gets the action context and the subProcssor cntext so it can chain them together
- copies the data from the current processor context to the subprocessor context,
using the inputMapFmt defined as a parameter of the action.
- executes the subprocessor
- copies the data back from the subprocessor context to the processor context,
using the outputMapFmt defined as a parameter of the action
-gets the subprocessor's final state from its typeIdInfo atribute to get the event
name to fire as the exit event (the event the parent processor is waiting for)
- Overrides:
- execute in class DSEAction
- Tags copied from class: DSEAction
- Throws:
- java.lang.Exception - The implementor of this class must decide when to throw
an exception occurred to the automaton.