The sorted keyword specifies a sorted ordering of rules executed in a rule task.
The keyword used to specify sorted ordering of rules executed in a rule task.
Rule tasks
ruletask ruleTaskName { [ordering = dynamic|sorted|literal;] };
A rule task is designed to execute rules. You can set up some rule execution parameters, such as how the rules are ordered and how many rules are executed.
The keyword ordering specifies how the rules are sorted.
You can have rules sorted according to the following values:
dynamic: The rule instances are sorted in the agenda according to the traditional rules presented for the agenda.
sorted: The rules are sorted in decreasing order of static priority.
literal: The rules are ordered in the same way as they have been listed in the rule task body.