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 processes available for selection follow the startable process semantics as defined by manual triggers. 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 in the Workflow Execution Perspective.

Spawning Processes from the Activity Execution View

To start a new process instance based on the process instance in scope from the Activity Execution View, click on the Spawn Process icon in the toolbar of the activity execution view.

Spawn Process
Figure: Spawn Process

Using the Spawn Process Dialog

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 will 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.

Spawn Process Dialog
Figure: Spawn Process Dialog

Select a row (or CTRL+click to select multiple rows) and click OK.

After the process instances are spawned the Spawn Process confirmation dialog gets displayed.

Spawn Process Confirmation Dialog
Figure: Spawn Process Confirmation Dialog

It lists each process instance that is successfully started. If you want to view the spawned activities click Yes. A worklist view displays the spawned activities.

Worklist of Spawned processes
Figure: Worklist of Spawned processes

If you do not want to view the spawned activities immediately then click No. The confirmation dialog gets closed.