On 15 November 2010 19:30, kkinjal <span dir="ltr">&lt;<a href="mailto:kinjal.khandhar@gmail.com">kinjal.khandhar@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi All,<br>
<br>
I am able to print the logs that says which rule was fired and what is the<br>
id for it.Thanks Wolfgang!<br>
<br>
Is there any way I can print the conditions(when clause) that got executed<br>
and which condition failed to execute and the order of those conditions<br>
execution?<br></blockquote><div><br>This has been frequently asked for, and the answer is &quot;no&quot;. Conditions are<br>munched by the compiler/Rete builder, and there&#39;s no simple way of tracking<br>what goes on during this process. The network is too complex for easy inspection<br>
by a debugger.<br><br>Moreover, CEs may depend on bindings from preceding CEs, so the idea of<br>having additional rules for all individual conditions isn&#39;t sufficient. What<br>might do the trick is to write for a &quot;production&quot; rule<br>
   rule r A(...) B(...) C(...)... then...end<br>additional rules<br>   rule r-1 A(...)  then...end<br>   rule r-2 A(...) B(...)  then...end<br>   rule r-3 A(...) B(...) C(...) then...end<br>   ...<br>and observe the agenda entries for these; if, say, r-1 and r-2 are around but<br>
r-3 isn&#39;t, then C(...) is currently failing. Subsequent conditions D(...) arent&#39;t<br>relevant at this moment.<br><br>I think that these rules could be derived from the initial rule r (relying on very<br>internal API calls). Any takers? ;-)<br>
<br>OTOH, if your CEs are simple and straightforward, a few queries might be<br>sufficient to provide enough data for telling you what iCE s not true.<br><br>-W<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>
The application which I am building has multiple conditions and I would like<br>
to see which condition failed and which got successfully executed.<br>
<br>
Please let me know.Appreciate any suggestion.<br>
<br>
Thanks,<br>
Kinjal<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/JBoss-Rule-Trace-feature-with-5-0-tp1525661p1906333.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/JBoss-Rule-Trace-feature-with-5-0-tp1525661p1906333.html</a><br>

Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>