Modeling Business Processes and Their Execution > Getting Started with the Business Process Management Extension in the Web Application > Building Process > Setting Up Stage Steps Execution Conditions
After creating stage steps, steps execution conditions can be set up using the gateway. The gateway is used to automatically merge stage steps into groups consisting of one or more steps. If the stage contains only one step, the gateway cannot be used. One gateway type can be selected for one step only.
To set up stage steps execution conditions:
Select the step.
Add the required type of gateway. When a gateway is added, groups of steps are created automatically.
To move steps from one group to another inn the working area, select one or several steps in a stage group with the gateway and drag them to another group of the same stage.
If required, add groups of steps.
Add execution conditions for group of steps.
Rename conditions to describe process execution order.
As a result, execution conditions are set up for stage steps.
To use a gateway, select a process step in the working area of the business process setup dialog box and select the required gateway type in the drop-down menu of the Exclusive Gateway button on the toolbar. The gateway selection button looks like the last selected gateway.
Available gateway types:
Exclusive Gateway. Conditions of groups of steps are successively verified:
If the condition is satisfied, only one group of steps is executed and the process goes to the next step.
If the condition is not satisfied, the condition of the next group of steps is verified.
If none of group of steps conditions is satisfied, default group of steps is executed. If default group of steps is not set, the process execution goes to the next stage.
When a gateway is selected, the condition for group of steps is not set. The group of steps looks as follows:
Parallel Gateway. Groups of steps are executed in parallel.
When the gateway is selected, the group of steps looks as follows:
Inclusive Gateway. Conditions of groups of steps are verified in parallel. If several conditions are executed, groups of steps are executed simultaneously.
When a gateway is selected, the condition for group of steps is not set. The group of steps looks as follows:
When creating the Exclusive Gateway or Inclusive Gateway gateway, add conditions for each group of steps. Available options of conditions statuses:
Conditions are not Set. It is used on setting up a business process. The condition is not specified, the process cannot be started. In the desktop application, on an attempt to save the process the error message is displayed.
NOTE. To save the intermediate result, one can save the process with incorrect and/or partially determined settings.
Condition N, where N - condition number. It is used on setting up a business process. The condition is specified, the selected condition for group of steps is verified on starting the process. If required, rename the condition.
Condition is Satisfied. It is used on process monitoring. The condition is satisfied, the system proceeds to step activation in groups with the satisfied condition.
Condition is not Satisfied. It is used on process monitoring. The condition is not satisfied, the execution process goes to checking condition of the next group of steps or stage.
Default. It is used on setting up business process and on process monitoring. The group of steps is executed only if none of conditions of other stage groups of stage steps were executed. If a condition is added for group of steps, it is not taken into account on using the Default status.
NOTE. The Default condition can be added only for one group of stage steps.
To change the type of added gateway, select the step with the configured gateway and select the required gateway type in the drop-down menu of the Exclusive Gateway button on the toolbar. The button looks like the last selected gateway.
To delete the added gateway, select the gateway and execute one of the operations:
Click the Delete button on the toolbar.
Press the DELETE key.
If there is no gateway, steps are executed one by one.
To add a group of steps:
Select one or several steps from any stage groups with gateway.
Click the Group button on the toolbar.
As a result, a group with the selected steps is added to the end of the list of stage groups with gateway.
To add a condition for group of steps:
Click the condition. The Condition dialog box opens:
Click the Add button. A string with condition parameters is displayed:
Set the parameters:
Process Parameter. Select a dictionary or dictionary attribute that will be used in condition.
Condition. Select a condition in the drop-down list:
Equal.
Not Equal.
Contains.
Does not Contain.
Contained In.
Not Contained In.
Do not Intersect/Do not Intersect with.
NOTE. Displayed types depend on the attribute data type selected in the Subprocess Parameter column.
Value. Set the value that will be compared with process parameter value. When selecting dictionary elements with configured selection schemas one can apply the configured schemas using commands in the dictionary elements' context menu.
And/Or. Select one of the logical operators in the drop-down list if several conditions are added:
AND. If all conditions are satisfied, the group of steps is executed.
OR. Default value. If at least one condition is satisfied, the group of steps is executed.
If required, use the Default condition status. To do this, select the Default Flow checkbox.
The Default group of steps is executed if none of other groups of stage steps conditions is satisfied. If a condition is added for group of steps, it is not taken into account on using the Default status.
As a result, execution conditions will be set for a group of steps.
To reorder condition execution, use the Up and
Down buttons.
To delete a condition, select the condition and click the Delete button.
To delete all conditions:
Click the Select All button.
Click the Delete button on the toolbar.
To rename condition, execute the following operations:
Double-click the condition name in the working area.
Enter new condition name.
Click outside the condition.
After setting up stage step execution conditions emulate step execute.
See also: