Setting the static priority of a rule

You define static priorities using a constant.

About this task

Rules have a priority property. You use the priority property to set the order in which rules are executed. You define static priorities using a constant.

Procedure

To set the static priority of a rule:

  1. Double-click the rule artifact in the Rule Explorer to display the Properties view for the rule.

    Make sure that the “hand” icon is displayed next to the Value column header of the Properties view.

  2. In the Properties view, click priority.
  3. On the Properties tab, in the Value field, type a number that represents the priority.

    The number can be any Java™ integer value between -109 and +109 . The larger the number, the higher the execution priority of the rule.