Advanced configuration using Integer Attribute

<< Click to Display Table of Contents >>

Navigation:  Low-code Process Automation > Studio Cloud - Authoring environment > Bizagi Studio > Process wizard > Model Process > Modeling for execution > Sub-Processes > Reusable 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. and it is only visible for Reusable Sub-Process defined as Multiple.

 

ConfiguremultiplesubprocesswithIntegerAttribute02

 

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.

 

ConfiguremultiplesubprocesswithIntegerAttribute08

 

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

 

ConfiguremultiplesubprocesswithIntegerAttribute03

 

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.

 

ConfiguremultiplesubprocesswithIntegerAttribute04

 

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

 

ConfiguremultiplesubprocesswithIntegerAttribute05

 

2. Continue selecting the Multiple Check box in the Properties tab and selecting its process.

Then on the Multiple Tab 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 create each time the Sub-Process starts.

 

ConfiguremultiplesubprocesswithIntegerAttribute01

 

3. This will enable you to create the number of Sub-Processes specified within the activities and let them continue at the same time.

 

ConfiguremultiplesubprocesswithIntegerAttribute07

 

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:

 

ConfiguremultiplesubprocesswithIntegerConstant09


Last Updated 11/29/2024 1:55:17 PM