<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&#39;m familiar with the &quot;Audit view&quot; but the data isn&#39;t sufficient. It doesn&#39;t write the reason why rule wasn&#39;t activated only successful activation.  <br>
For example:<br><br>DRL file :<br><br>rule &quot;rule1&quot;<br>  when<br>   Person(name matches &quot;gogo&quot;)           <br>  then<br>    System.out.println(&quot;gogo&quot;);<br>End<br><br>In main class :<br><br>Person A = new Person(&quot;dodo&quot;);<br>
Person b = new Person(&quot;gogo&quot;);<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&#39;t activated since the condition &quot;dodo&quot; matches &quot;gogo&quot; 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>