Modeling Business Processes and Their Execution > Getting Started with the Business Process Management Extension in the Desktop 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 a step or a group of steps.
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, use the Move Up and
Move Down buttons on the Process ribbon tab in the Set Up Business Process dialog box or in the step's context menu.
Add execution conditions for group of steps.
As a result, execution conditions are set up for stage steps.
To use a gateway, select a process step in the working area or process tree of the business process setup dialog box and execute one of the operations:
Select gateway type in the drop-down menu of the Gateway button on the Process ribbon tab:
Parallel Gateway. Groups of steps are executed in parallel.
When the gateway is selected, the group of steps looks as follows:
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:
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:
No Gateway. It is used by default. The steps in the group are executed consecutively.
Select the Gateway Type item in the step's or gateway's context menu.
Press:
CTRL+ALT+P. Parallel gateway.
CTRL+ALT+E. Exclusive gateway.
CTRL+ALT+I. Inclusive gateway.
CTRL+ALT+N. No gateway.
When creating the Exclusive Gateway or Inclusive Gateway gateway, add conditions for each group of steps. Available options of conditions statuses:
Condition is not Specified. 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.
Condition is Specified. It is used on setting up a business process. The condition is set, the selected condition for group of steps is verified on starting the process.
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 type of added gateway:
Select the step, group of steps, or the gateway.
Execute one of the operations:
Select the gateway type in the drop-down menu of the Gateway button on the Process ribbon tab.
Select the <Gateway Type> context menu item.
Press the required gateway key shortcut.
To delete the added gateway, change gateway type for the No Gateway type. The confirmation dialog box opens with the warning about combining all steps in a group for consecutive execution.
If there is no gateway, steps are executed one by one.
To add a condition for group of steps:
Execute one of the operations:
Double-click the condition.
Select the Edit item in the condition's context menu.
As a result, the Change Condition for Group of Steps dialog box opens:
Click the Add button in the web application or the
Add button in the desktop application. 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. Execute one of the following operations:
Select the Default checkbox.
Select the Default Flow item in the condition status' context menu.
As a result, execution conditions will be set for a group of steps.
To reorder conditions 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 Clear button.
After stage steps conditions are set up, proceed to simulation of steps execution.
See also: