Runtime components : Core components : Flows : Concepts : Actions : Execute subflow action
  
Execute subflow action
The com.ibm.dse.automaton.ext.ExecSubflowAct class is a generic action that starts another processor instance and waits until the new process completes its flow. This action does the following to nest processes:
1 Creates an instance of the processor specified by the action's processor attribute.
2 Chains the subprocessor context to the action context.
3 Copies data from the current processor context to the subprocessor context using the format specified by the action's inputMapFmt attribute.
4 Executes the subprocessor, which activates its initial state and starts its flow. The subprocessor retains control until it reaches one of its final states. At that point, the action regains control.
5 Copies data from the subprocessor context to the action context using the format specified by the action's outputMapFmt attribute.
6 Gets the typeIdInfo from the subprocessor's final state to get the name of the exit event.
7 Raises an event to signal the completion of the action and the subprocess. The processor uses the event, either an OK or an error, as a transition to advance the process based on the result of the action. The signaled event is error when the subprocess throws an exception. In this case, the action adds the exception object to the dse_Exception attribute of the event so that the transition associated with the error event can handle it.
Go up to
Actions