Decision
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 |
---|---|
Details | |
Display Name | Enter the name of the activity. |
Reference Name | Enter the technical name of the activity. If left blank, the system automatically generates it based on the value in the Display Name field. The generated name removes special characters, eliminates spaces, avoids consecutive underscores, and joins words with a single underscore. |
Description | Provide a description that is relevant to the activity. |
Properties: Outcomes | |
Case Name |
Allows adding multiple outcomes and its conditions. Click Add Condition to add outcome. 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. |
Criteria |
Click Add Criteria and set the conditions that must be met for this outcome.
To add more conditions, click Add Criteria. To remove all conditions, click Remove All. |
Switch to New Entry Criteria | You will see this toggle only when editing an activity in an existing workflow. Enabling this toggle upgrades the activity to the new IntelliSense Criteria Builder and migrates the old criteria. If the migration fails, you must correct the criteria for a successful conversion or continue using the older version indefinitely. Once switched, you cannot revert to the older Criteria Builder. |
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. |