Domino Condition Setup
Domino Conditions in the Workflow Management module allow you to set up sequential evaluations where conditions are checked in order, with fallback options if previous conditions are not met. This feature is useful for creating complex workflows where different actions are triggered based on a series of logical checks.
Overview
A Domino Condition is a logical construct where multiple conditions are evaluated one after another. If a condition evaluates to true, its associated action is executed. If not, the system proceeds to evaluate the next condition in the sequence. This setup is particularly useful when you need to handle multiple scenarios with specific fallback actions.
Configuring Domino Conditions
Basic Domino Condition
To configure a basic domino condition:
- Title: Provide a descriptive title for your condition setup.
- Description: Describe what the domino condition will do and its purpose.
- Conditions: Define each condition with its logic and the action to be taken if the condition is met.
Example:
- Title: Department Notification Domino Condition
- Description: Send notifications based on the user's department.
- Conditions:
- First Condition:
- Logic:
department === 'finance'
- If Block: Send notification to all users in the finance department.
- Logic:
- Second Condition:
- Logic:
!First Condition
anddepartment === 'management'
- Else If Block: Send notification to all users in the management department.
- Logic:
- Third Condition:
- Logic:
!Second Condition
anddepartment === 'survey'
- Else Block: Send notification to all users in the survey department.
- Logic:
- First Condition:
Complex Domino Condition
For more intricate scenarios, you can configure complex domino conditions by combining multiple criteria using logical operators.
- Title: Provide a descriptive title for your complex domino condition.
- Description: Describe the complex logic and what actions should be taken.
- Conditions: Define each condition with its combined logic and the corresponding actions.
Example:
- Title: Complex Department Notification Domino Condition
- Description: Send notifications based on both department and user status.
- Conditions:
- First Condition:
- Logic:
department === 'finance' && status === 'active'
- If Block: Send notification to active finance users.
- Logic:
- Second Condition:
- Logic:
!First Condition
anddepartment === 'management' && status === 'inactive'
- Else If Block: Send notification to inactive management users.
- Logic:
- Third Condition:
- Logic:
!Second Condition
anddepartment === 'survey' && status === 'active'
- Else Block: Send notification to active survey users.
- Logic:
- First Condition:
Validating and Testing Domino Conditions
After configuring your domino conditions, it's crucial to validate and test them to ensure they function correctly:
- Review Configuration: Verify that all conditions and actions are set up as intended.
- Trigger Conditions: Simulate various scenarios to ensure that the correct conditions are evaluated and the appropriate actions are taken.
Testing Example:
- First Condition Activation: If a user belongs to the finance department, ensure that a notification is sent to finance users.
- Second Condition Activation: If a user belongs to the management department with an inactive status, ensure that a notification is sent to inactive management users.
- Third Condition Activation: If a user belongs to the survey department with an active status, ensure that a notification is sent to active survey users.
By setting up and testing domino conditions effectively, you can create robust workflows that handle a variety of scenarios based on sequential logical evaluations.