How to set up debug notification in IRL.
About this task
You can activate debugging in IRL at task level or at
ruleset level, or for a particular task, by setting the debug IRL
property.
Procedure
To debug notification in IRL:
- To activate debugging at rule task level, write code as
follows:
ruletask T {
property ilog.rules.engine.sequential.debug = true; algorithm = sequential;
...
}
- To activate debugging at ruleset level, write code as follows:
ruleset R {
property ilog.rules.engine.sequential.debug = true;}
ruletask T1 {
algorithm = sequential;
...
}
ruletask T2 {
algorithm = sequential;
...
}
In this case, debugging notifications are added to
the generated bytecode for both rule tasks T1 and T2.
- To activate debugging for a particular task at ruleset
level, use this special generic notation:
ruleset R {
property ilog.rules.engine.sequential.debug.
T1 = true;
}
ruletask T1 {
algorithm = sequential;
...
}
ruletask T2 {
algorithm = sequential;
...
}
In this case, debugging notifications are added only
for rule task T1, not for rule task T2.