Advanced configuration using Integer Constant

<< Click to Display Table of Contents >>

Navigation:  Bizagi Studio > Process wizard > Model Process > Modeling for execution > Sub-Processes > Understanding Multiple Sub-Processes > Advanced configuration for Multiple Sub-Processes >

Advanced configuration using Integer Constant

Overview

When using the Integer Constant option, instead of Items in Collection, the number of instances created will always match the number specified.

It can be selected when configuring a new sub-process and it is only visible when Advanced Settings has been selected.

 

Configure multiple subprocess with Integer Constant 01

 

Example

To illustrate the execution of the Integer Constant option, please consider the next situation:

 

In a car showroom, an after-sell activity is performed, controlling the necessary preparations previous to a car delivery. A car vendor requests the car preparation in order to be ready before the established deadline.

 

Configure multiple subprocess with Integer Constant 02

 

Car preparations is distributed amongst service personnel whose activities are performed and registered at start and end, in order to keep track of times and when the vehicle is ready to be checked.

 

Configure multiple subprocess with Integer Constant 03

 

Due to a business rule, the activities performed are three (3), therefore, selecting an integer constant allows you to keep only three activities working at the same time.

 

1. In order to configure the sub-process, right-click it and select Configure Sub-process.

 

Configure multiple subprocess with Integer Constant 04

2. Continue selecting Multiple in the Sub-process Type menu and selecting its process. When prompted to use Advanced Settings check the option before pressing next.

 

Configure multiple subprocess with Integer Constant 05

 

3. Then select the Integer Constant option of the Number of Instances drop down list. This will show the Integer Constant field to provide the exact number of instances you want to be created each time the sub-process starts.

 

Configure multiple subprocess with Integer Constant 06

 

4. This will enable you to create three activities and let them continue at the same time.

 

Configure multiple subprocess with Integer Constant 08

 

 

 

note_pin

If your process provides information for less than the selected quantity of instances, those will still be created with null information.

If your process attempt to create more instances than the ones specified, an error will show:

 

Configure multiple subprocess with Integer Constant 09