In some cases you like to start new process instances based on the process instance in-scope. For this purpose you can use the Spawn Process dialog, where you can select one or multiple processes to start, which includes the current in-scope process definition. The data associated with the current in-scope process instance is passed by copy to the newly created process instance. For more information, refer to section Data Copy and Mapping Semantic of chapter Configuring Subprocess Activities in the Infinity Process Platform Documentation - Concepts. chapter Data Copy and Mapping Semantics of the IPP Concepts handbook.
The processes available for selection follow the startable process semantics as defined by manual trigger. So the processes that have manual trigger assigned only those processes are available for spawning.
This dialog can be invoked from the activity execution view of the Workflow Execution Perspective.
To start a new process instance based on the in-scope process instance from the Activity Execution View, click the Spawn Process icon in the toolbar of the activity execution view.
Note that the spawned process executes asynchronously but has to be completed before the root process is set to complete. Consider the scenario wherein you have multiple spawned processes. In this case the status of the root process would be active. If you try to complete that root process, its status would be shown as active. To set the status of the root process as complete, you should complete all the spawned processes.
Also note that abort of root process instance results in abort of spawn process. While aborting spawn process instance, you can choose whether to abort root process instance. But if you do not have abort permission for the root process then the root cannot be aborted. Recovery of root process instance recovers the spawn process as well.
In case the administrator has Abort permission for the root process and the abort permission for one of the spawned process is granted to some other user, then if the Administrator tries to abort the root process, all the spawned processes will be aborted; irrespective of the users and abort permission.
If the Spawn Process permission is not granted to the logged-in user, then the Spawn process icon does not appear. For more information, please refer to the chapter Managing Authorization.
Once you have clicked the Spawn Process icon, the Spawn Process dialog opens.
Figure: Spawn Process Dialog
All processes, which can be spawned, including the in-scope process, are listed in the Select Process To Start section. Select one or more processes (CTRL+click to select multiple rows) you like to start.
Following options are provided in the Spawn Process dialog:
You can configure the default states of these options in the Configuration Panel. Please refer to section Spawning Processes of chapter Configuring Workflow Execution for details.
If you like to view the spawned activities, select the checkbox View Spawned Work Items.
Figure: View Spawned Work Items
The worklist view of the spawned process(es) opens.
Figure: Worklist of Spawned processes
In case you like to activate all spawned work items, select the Activate Spawned Work Items checkbox.
Figure: Activate Spawned Work Items
The work items of all spawned processes are activated.
All spawned processes are displayed as sub processes in the Process Details view.
Figure: Spawned Processes displayed in the Process Details View