Show TOC

Procedure documentationAdding Other Conditions Locate this document in the navigation structure

 

You can have a column called Other Condition in the decision table where you can specify a full blown condition (including nested AND and OR conditions).

Procedure

  1. Locate the ruleset (Where is my ruleset?) and double-click the ruleset node.

  2. In the Outline view, choose a decision table node.

  3. In the decision table editor, choose the Condition button.

  4. In the menu that appears, choose Add Other Condition.

  5. Save the changes.

    Note Note

    • You can also add an other condition when you create a decision table as follows:

      • On the Select the Conditions screen of the Decision Table Wizard select the Table has Other Condition checkbox.

    • To rename an other condition, in the decision table editor choose the Condition tab and use the Rename Other Condition option.

    End of the note.
  6. To add a condition, double-click a cell under the Other Condition header in the decision table.

  7. In the editor that appears, choose the icon that looks like a plus icon.

    The default condition: System.currentTimeMillis() Greater Than 1208497381741 appears.

  8. To edit the default condition:

    • Choose the LHS value:System.currentTimeMillis() and in the drop down menu choose a definition or alias.

    • Choose the comparator: Greater than and choose a comparator in the drop down menu.

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

    • Choose the RHS value after the comparator and in the drop down menu choose a definition or alias.

  9. Press Alt + Enter and save the changes.

Note Note

To add nested conditions, repeat the steps and add more conditions. The conditions appear within parentheses and are combined by the logical operator: and. You can change the logical operator by clicking it.

End of the note.