Advanced configuration using Integer Attribute

<< 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 Attribute

Overview

When using the Integer Attribute option, instead of Items in Collection, the number of instances to be created will always match the number stored into an specified attribute.

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 Attribute 01

 

 

Example

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

 

When an election will be performed, a process can be executed to allow a poll to be created and register the total amount of votes. Every Poll Station report its results in parallel. Finally, the result must be displayed to the Poll Organizer.

 

Configure multiple subprocess with Integer Attribute 02

 

Every Poll Station must be registered, and when the poll has finished, register its results.

 

Configure multiple subprocess with Integer Attribute 03

 

The amount of sub-process instances should be the same as the number of Poll Stations, which is provided in the first activity, just before the creation of the sub-processes.

 

Configure multiple subprocess with Integer Attribute 04

 

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

Configure multiple subprocess with Integer Attribute 05

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 Attribute option of the Number of Instances drop down list. This will show the field to provide the attribute XPath which contains the number of instances you want to be created each time the sub-process starts.

 

Configure multiple subprocess with Integer Attribute 01

 

4. This will enable you to create the number of sub-processes specified within the activities and let them continue at the same time.

 

Configure multiple subprocess with Integer Attribute 07

 

 

 

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 attempts to create more instances than the ones specified, an error will show up:

 

Configure multiple subprocess with Integer Constant 09