The Decision activity allows you to create different workflow paths and select one based on condition(s) evaluated at runtime. You can define various outcomes and specify conditions that will be evaluated during runtime to determine which path to follow. Conditions are checked in the order they were added, using a First-In-First-Out (FIFO) approach. Once a condition is met, the workflow proceeds along the corresponding path, and the rest of the conditions are ignored. As a best practice, a Default outcome is included during design as a fallback if none of the conditions are met at runtime.
Group: Logic
Nature: Non-Blocking
Example: Contract Approval Workflow
In a contract approval workflow, the decision activity can route contracts based on their value. If the contract value is less than $10,000, it goes to the team manager for approval; between $10,000 and $50,000, it routes to the department head; and if it exceeds $50,000, it goes to the CFO. As a fallback, if none of the conditions are met, the contract is sent to the legal team for further evaluation.
Properties and activity information
Properties determines the initial behavior of the activity.
Field | Description |
---|
Properties |
---|
Outcomes | Allows adding multiple outcomes and its conditions. Click Add Condition to add outcome. - Name: By default, the application assigns the outcome name as "Case" followed by a number that increases with each new condition. You can rename the outcome as needed.
- Condition: The defined condition is displayed here. To add a condition, click the icon. The criteria builder appears. Click Add Criteria and set the conditions that must be met for this outcome.
|
Criteria | Set the conditions that must be met to trigger the workflow. - Field: Select the field you want to set as the condition criterion. It lists fields associated with the object you have selected at the time of workflow creation.
- Operator: You must select the logical operator from the list. This forms the relationship between the field and its value.
- Value: The value field changes based on the selected operator options. Enter or select the value for the specified field.
To add more conditions, click Add Criteria. To remove all conditions, click Remove All. |
Filter Expression | By default, the application applies AND logic to all criteria. You can adjust this to create more complex logical expressions if needed. You can customize your logic using parentheses, AND, OR, and NOT. For example, if you enter “(1 AND 2 AND 3) OR 4”, the system will evaluate whether all three of the first conditions are true, or if the fourth condition is true. |
Common |
---|
Name | Enter the technical name of the activity. |
Display Name | This field auto-populates but can be changed if needed. |
Description | Provide a description that is relevant to the activity. |