<div dir="ltr">Hi,<br>In debug mode I need to write to my application log the reason why certain rule failed to be activated.<br>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. <br>
For example:<br><br>DRL file :<br><br>rule "rule1"<br> when<br> Person(name matches "gogo") <br> then<br> System.out.println("gogo");<br>End<br><br>In main class :<br><br>Person A = new Person("dodo");<br>
Person b = new Person("gogo");<br><br>newStatefulSession.insert(A);<br>newStatefulSession.insert(c);<br>newStatefulSession.fireAllRules();<br><br><br>I would like to write to log something like:<br><br>Rule1 wasn't activated since the condition "dodo" matches "gogo" returned false for object Person(dodo)...<br>
<br>Any idea how can I get the rule run results?<br><br>Thanks,<br>Meny<br></div>