BrainGrid Controller
Workflow Builder
Conditions
Domino Condition

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:

  1. Title: Provide a descriptive title for your condition setup.
  2. Description: Describe what the domino condition will do and its purpose.
  3. 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.
    • Second Condition:
      • Logic: !First Condition and department === 'management'
      • Else If Block: Send notification to all users in the management department.
    • Third Condition:
      • Logic: !Second Condition and department === 'survey'
      • Else Block: Send notification to all users in the survey department.

Complex Domino Condition

For more intricate scenarios, you can configure complex domino conditions by combining multiple criteria using logical operators.

  1. Title: Provide a descriptive title for your complex domino condition.
  2. Description: Describe the complex logic and what actions should be taken.
  3. 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.
    • Second Condition:
      • Logic: !First Condition and department === 'management' && status === 'inactive'
      • Else If Block: Send notification to inactive management users.
    • Third Condition:
      • Logic: !Second Condition and department === 'survey' && status === 'active'
      • Else Block: Send notification to active survey users.

Validating and Testing Domino Conditions

After configuring your domino conditions, it's crucial to validate and test them to ensure they function correctly:

  1. Review Configuration: Verify that all conditions and actions are set up as intended.
  2. 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.