Show TOC

Adding Nested ConditionsLocate this document in the navigation structure

Use

You can build a rule with multiple conditions. The logical operators and , or help you create nested conditions.

Procedure
  1. In the Rules Navigator view, expand the project node and select the ruleset or flow ruleset.

  2. Under the Rules section, select the rule and choose Open .

  3. Under the Conditions section, choose Add Condition.

  4. Choose the LHS value: Operation.isSuccessful() and in the drop down menu choose Set Dynamic Value .

  5. In the Expression Editor dialog box that appears, select an alias or definition from the list and choose Apply .

  6. Choose the comparator: Equals and choose a comparator in the drop down menu.

  7. Enter the RHS value after the comparator and choose Enter .

    The new condition is defined.

  8. Choose Add Condition.

  9. To change the logical operator, choose and and in the drop down menu, choose the logical operator.

  10. Define the condition using the above steps.

Note

You can group two or more consecutive conditions into a group. You can also combine conditions within a group to form sub groups. However you cannot combine conditions across groups.

  • To group the conditions, select the appropriate check boxes, and from the context menu choose Group Conditions .

  • To ungroup the conditions, select the appropriate check boxes, and from the context menu choose Ungroup Conditions .

More Information