6.3.6. SubProcesses

Sometimes, an independently existing business process can take part in another more sophisticated process. Instead of redefining the activities, edges, properties, and hooks in the parent process, the independent process could be included as a “subProcess” within a specific node. As the execution logic is inside the subProcess, the subProcess activities are started and terminated automatically by the Workflow engine according to the subProcess state. Creating a SubProcess Activity: When a subProcess activity is defined in the process, a specific activity with subflow behavior is created with the definition of the parsed activity (process id of the process, local variables, in/out/in-out parameters of the sub...).. Instantiating a Process with a SubProcess Activity: At execution phase when the execution enter into the subflow type activity, the following operations are done: