Show TOC

Adding a ConditionLocate this document in the navigation structure

Context

You add conditions to a rule when you want the associated actions in the rule to be performed only when the conditions are satisfied.

For more information, see Rule

Example

Consider the rule:

If

 
 

Student aggregate score greater than or equal to 60

Then

Display message equals "This student qualifies."

In this rule the condition is that the aggregate score must be 60% and above. Only if this condition is fulfilled he student is considered qualified.

Conditions are always of the format: "LHS value comparator RHS value". In the rule editor, under the If section of a rule you can specify the LHS value and RHS value and choose an appropriate comparator.

Procedure

  1. Locate the ruleset , expand the ruleset node, the Rules folder and double-click a rule node.

    For more information, see Locating the Ruleset

    or

    Locate the flow ruleset , expand the flow ruleset node, the Rules folder and double-click a rule node.

    For more information, see Locating the Flow Ruleset

    Note

    You can also expand the Rules folder in the Outline view and choose a rule node.

  2. In the rule editor that appears, under the If section, choose Add a new Condition.

    The default rule condition: Operation.isSuccessful() Equals true appears.

  3. To edit the default rule condition:
    1. Choose the LHS value: Operation.isSuccessful() and in the drop down menu choose a Definition or an alias. You can also choose <Add a new expression> to add compound expressions.

      More Information: Working with Complex Expressions

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

      More Information: List of Return Types and Comparator Choices for Conditions

    3. Choose the RHS value after the comparator and in the drop down menu choose a definition or an alias. You can also choose <Add a new expression> to add compound expressions.

      More Information: Working with Complex Expressions

      Note

      To enter static values, choose each component in the default rule condition (Operation.isSuccessful() Equals true) and enter the value in the inline text box.