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:
- Creates an instance of the processor specified by the action's processor
attribute.
- Chains the subprocessor context to the action context.
- Copies data from the current processor context to the subprocessor context
using the format specified by the action's inputMapFmt attribute.
- 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.
- Copies data from the subprocessor context to the action context using
the format specified by the action's outputMapFmt attribute.
- Gets the typeIdInfo from the subprocessor's final state to get the name
of the exit event.
- 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.