[rules-users] Get the reason why certain rule failed to be activated.
Meny Kobel
meny.kobel at gmail.com
Tue Apr 21 09:01:03 EDT 2009
Hi,
In debug mode I need to write to my application log the reason why certain
rule failed to be activated.
I'm familiar with the "Audit view" but the data isn't sufficient. It doesn't
write the reason why rule wasn't activated only successful activation.
For example:
DRL file :
rule "rule1"
when
Person(name matches "gogo")
then
System.out.println("gogo");
End
In main class :
Person A = new Person("dodo");
Person b = new Person("gogo");
newStatefulSession.insert(A);
newStatefulSession.insert(c);
newStatefulSession.fireAllRules();
I would like to write to log something like:
Rule1 wasn't activated since the condition "dodo" matches "gogo" returned
false for object Person(dodo)...
Any idea how can I get the rule run results?
Thanks,
Meny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090421/6ae00a29/attachment.html
More information about the rules-users
mailing list