dynamic

The dynamic keyword specifies the dynamic ordering of rules.

Purpose

This keyword is used to specify the dynamic ordering of the rules that are executed in a rule task.

Context

Rule task definitions

Syntax

ruletask ruleTaskName 
{
   [ordering = dynamic|sorted|literal;] 
};  

Description

Rule tasks execute rules. You can use parameters to specify how the rules are ordered and how many rules are executed.

The keyword ordering specifies how the rules are sorted.

  • 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 listed in the same order as they have been listed in the rule task body.