Reusable Sub-Processes

<< Click to Display Table of Contents >>

Navigation:  Bizagi Studio > Process wizard > Model Process > Modeling for execution > Sub-Processes >

Reusable Sub-Processes

To demonstrate how to transform a Task to a Reusable Sub-Process we will use the following diagram:

 

ConfigureReusableSubprocess

 

The diagram refers to a Purchase Request Process. We are going to transform the Purchase Order task to a Reusable Sub-Process.

 

1. In the First step of the wizard, click Edit Process.

 

Editaprocess1

 

2. Right-click the Task you wish to convert to a reusable Sub-Process, in this case the Purchase Order  task, and select the option Transform to Sub-Process.

 

ConfigureReusableSubprocess1

 

3. The Sub-Process wizard will launch showing the Sub-Process types. Select the Reusable option.

 

ConfigureReusableSubprocess10

 

4. A properties window will display the following:

 

ConfigureReusableSubprocess11

 

Controls

Description

Multiple Check-box

Sets the Sub-Process as Multiple.

Processes drop-down list

Displays the existing processes list and sets the selected one as the Sub-Process.

Add button

Lets the user to create a new process.

Process version drop-down list

Displays the process versions list and sets the selected one as the Sub-Process version.

Diagram

Displays a preview snapshot of the process model selected. If a new process is selected, the Diagram control will remain empty.

Status Bar

Presents the Sub-Process status configuration horizontally.

 

To define the Sub-Process, you can either select an existing Process or create a new one:

 

To set an existing Process:

Click the drop down list to select the desired process. Then, click the Process version drop-down list and select the desired one. Then click the Finalize button.

 

ConfigureReusableSubprocess6

 

To create a new Process.

1. Click the Add button on the properties window.

 

ConfigureReusableSubprocess7

 

2. Type the name of the new Process. Select the create button.

 

ConfigureReusableSubprocess8

 

3. Select the Process from the drop down list and click the finalize button.

 

ConfigureReusableSubprocess12

 

4. Select the Advanced tab to set the Exit mode within the following options:

 

Stand Alone: The parent Process continues with the next of its Process flow as soon as the Sub-Process is created, without waiting for it to be completed. If the parent Process ends, the Sub-Process will remain in effect (opened).

Integrated: The complete execution of the Sub-Process is required before the parent Process continues with the next Activity of its flow.

 

In this case the Purchase Order Sub-Process must be completed before the Purchase Request Process finishes, so select Integrated mode.

 

ConfigureReusableSubprocess9

 

5. Select the exit mode from these two following options:

 

Stand Alone: The parent Process continues with the next of its Process flow as soon as the Sub-Process is created, without waiting for it to be completed. If the parent Process ends, the Sub-Process will remain in effect (opened).

Integrated: The complete execution of the Sub-Process is required before the parent Process continues with the next Activity of its flow.

 

In this case the Purchase Order Sub-Process must be completed before the Purchase Request Process finishes, so select Integrated mode.

 

6. Finally, click Finish. Your Purchase Order reusable Sub-Process has been successfully configured.

 

note_pin

The reusable Sub-Process must have an access type defined as Process or Only Sub-Process in the process' properties. If not, it will not be listed for selection by the wizard even though it has been created

In the Expert View, right click over the Sub-Process' version and select Properties. Make sure either Process or Only Sub-Process is selected.

 

ConfigureReusableSubprocess5