Information Technology Reference
In-Depth Information
The previously mentioned methods are enough to interact with the rules. However, to sim-
plify process and rule interaction, we will see a few other components of the DRL lan-
guage and the KIE session.
The DRL language allows us to define attributes to our rules. Three of these attributes al-
low us to define groupings for our rules in order to activate small groups of rules at a time
instead of activating all of them at the same time. These attributes are as follows:
agenda-group : This attribute has a string parameter. It defines a group of rules
that can be manually set through code using the following method:
ksession.getAgenda().getAgendaGroup("group-x").setFocus();
When this group is activated, only the rules inside of it will be matched or fired.
activation-group : This attribute is similar to the agenda group, except it
marks a group of rules where only one should be executed. The decision of which
rule is executed is determined by the conflict resolution strategy of the rule en-
gine.
ruleflow-group : This attribute is the one we will see the most. It determines
a group of rules that will not be activated manually, but instead will be activated
Search WWH ::




Custom Search