Spawning Processes

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.

Spawning Processes from the Activity Execution View

To start a new process instance based on the in-scope process instance from the Activity Execution View, click the Spawn Process icon Spawn Process 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.

Using the Spawn Process Dialog

Once you have clicked the Spawn Process icon, the Spawn Process dialog opens.

Spawn Process Dialog
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.

Viewing Spawned Work Items

If you like to view the spawned activities, select the checkbox View Spawned Work Items.

View Spawned Work Items
Figure: View Spawned Work Items

The worklist view of the spawned process(es) opens.

Worklist of Spawned processes
Figure: Worklist of Spawned processes

Activating Spawned Work Items

In case you like to activate all spawned work items, select the Activate Spawned Work Items checkbox.

Activate Spawned Work Items
Figure: Activate Spawned Work Items

The work items of all spawned processes are activated.

Viewing the Spawned Process in the Process Details View

All spawned processes are displayed as sub processes in the Process Details view.

Spawned Processes displayed in the Process Details View
Figure: Spawned Processes displayed in the Process Details View