Defining conditions for a When rule

Enter or revise a When rule that can be expressed as a single Boolean expression or the conjunction (AND or OR) of one or more Boolean expressions.

  1. In the navigation panel of Dev Studio, click Records > Decision > When.
  2. From the list of When instances, select a When rule that you want to edit.
  3. On the rule form, click the Conditions tab.
  4. In the first field, select a value or a property from the list.
  5. In the second field, select a comparator from the list.
  6. In the third field, enter a value that you want to compare with the value from the first field.

    The system compares the value of this field to the value of the corresponding field or condition in the first column.

    For example: Status work is equal to Done
  7. Optional: To specify additional conditions and define the relationships between them by performing the following actions:
    1. Click the Add a row icon and add as many conditions as you need.
    2. In the drop-down lists between each pair of conditions, specify how these conditions relate to each other.
      You can group conditions with AND or OR operators.
    3. In the drop-down list in the upper right corner, specify how you want to evaluate condition groupings
      • Group ANDs - Select this option if you want conditions linked with the AND operator to be evaluated as a group, and conditions linked with the OR operator to be evaluated individually. With this grouping, the grouping of condition 1 AND condition 2 OR condition 3 OR condition 4 is evaluated as (1 AND 2) OR 3 OR 4. That is, either conditions 1 and 2 must both be true, or either one of conditions 3 and 4 must be true.
      • Group ORs - Select this option if you want conditions linked with the OR operator to be evaluated as a group, and conditions linked with the AND operator to be evaluated individually. With this grouping, the grouping of condition 1 AND condition 2 OR condition 3 OR condition 4 is evaluated as 1 AND (2 OR 3 OR 4). That is, both condition 1 and one of conditions 2, 3, and 4 must be true.
      • Use advanced logic - Select this option if you want to define a mix of grouping by the AND and OR operator. Use the Logic string field to specify the condition grouping.
        Note: If you change a condition that uses advanced logic back to Group ANDs or Group ORs, all the groupings that you previously defined are reset.
      Tip: Conditions that are evaluated as a group are displayed on a single block of gray background.
  8. Click Save.