The best way to see what goes on w.r.t. matches (the correct term would be "activation") and firings is to install an implementation of org.drools.event.rule.AgendaEventListener as a listener using method addEventListener() of StatefulKnowledgeSession.<br>
<br>-W<br><br><h2><font size="-1">org.drools.event.rule</font>
<br>
Interface AgendaEventListener</h2><br><br><br><div class="gmail_quote">2010/12/29 Shobhit1 T <span dir="ltr"><<a href="mailto:shobhit1.t@tcs.com">shobhit1.t@tcs.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font face="sans-serif" size="2">Hi,</font><font size="3"> <br>
</font><font face="sans-serif" size="2"><br>
I want to know which of the fired rules was matched. Is there a way to
find that out or return a value from drl to java file that can indicate
which rule was matched?</font><font size="3"> </font><font face="sans-serif" size="2"><br>
Thanks</font><font size="3"> </font>
<br>
<br><font face="sans-serif" size="2">Shobhit</font><pre style="white-space: normal;">=====-----=====-----=====<br>Notice: The information contained in this e-mail<br>message and/or attachments to it may contain <br>confidential or privileged information. If you are <br>
not the intended recipient, any dissemination, use, <br>review, distribution, printing or copying of the <br>information contained in this e-mail message <br>and/or attachments to it are strictly prohibited. If <br>you have received this communication in error, <br>
please notify us by reply e-mail or telephone and <br>immediately and permanently delete the message <br>and any attachments. Thank you<br><br><br></pre><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>
<br></blockquote></div><br>