Adding a Conditional Clause Using the Condition Builder

The When section lets the user define additional conditions that must be met, in addition to the pre-condition defined in the Rule Template.

The builder determines the scope of the rule template, and allows the user to define individual conditional clauses based on that scope. Each conditional clause has one or more sub-clause, and a match operator determines whether the conditional clause is true when all sub-clause are true, or any one sub-clause is true, or none of the sub-clauses evaluate to true.

If you require to move any condition up or down the order then you can drag-and-drop the condition to move it. Move the mouse pointer over any condition till the pointer is converted to a drag icon. Now, you can drag that particular condition and drop it within same or different filter.

Procedure

  1. In the business rule editor, under the When section, click the artifact-name link and select the artifact you require.
  2. Click the operator-name link to select another operator, or a child artifact of the previously selected artifact, as you require. See Condition Builder Operators for list of supported operators.
  3. Enter the conditional value for the artifact in the empty box.
  4. Click the Add icon to another condition to the conditional clause, or click the Remove icon to remove the existing condition from the conditional clause, if you want.
  5. Click the Add Sub-clause icon to add a conditional sub-clause to the conditional clause, if you want.
  6. Click the match-operator link to select the matching condition for which the conditional clause evaluates to true. The values are:
    Option Description
    Match Any Conditional clause is true if any of the condition evaluates to true
    Match All Conditional clause is true only if all of the conditions evaluates to true
    Match None Conditional clause is true only if none of the conditions evaluates to true
  7. Click the Save icon to save updates to the business rule.