ILOG Rules for .NET User Guides > Rule Studio > Orchestrating Ruleset Execution > Ordering Rules in the Agenda

In the agenda, rule instances are ordered according to the following criteria:

Table 3 How Rules are Ordered in the Agenda
Rule Ordering Criterion 
Description 
Refraction 
A rule instance that has been executed cannot be reinserted into the agenda if none of the objects matched by the rule are modified, or if no new object is matched by the rule. 
Priority 
Rules that have a higher priority are executed first. The priority of a rule is an integer that determines the rule's position in the agenda. The larger the number, the higher the firing priority of the rule.  
The default value for a rule's priority is 0. 
Recency 
The rule that matches the most recently added, modified, or retracted object will be executed first.  
For rules added at the same time, the order the rules appear in the agenda corresponds to the order the rules appear in the ruleset source file. 

Priority and recency are used to resolve conflicts when several rule instances are candidates for firing at the same time. When several rule instances have the same priority and recency, the execution order should be considered as unpredictable.

To set the priority of a business rule
  1. In the Properties window of the rule, set the Priority property to an integer.
  2. Save the rule.

Related Sections

Ruleflows
ILOG Rule Engine for .NET
Orchestrating Ruleset Execution