If you are using OR between patterns you can create two different rules, and then you know what rule was fired.<br>That's the internal behavior of Drools when it finds an OR.<br><br><br><div class="gmail_quote">On Sun, Jan 10, 2010 at 4:59 AM, orchid <span dir="ltr"><<a href="mailto:maya.pollack@gmail.com">maya.pollack@gmail.com</a>></span> wrote:<br>
<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 wonder whether Drools (I'm using version 5.x) has functionality to display<br>
the rational of a rule that was fired. I mean: if my rule is as following:<br>
<br>
Rule "rule1"<br>
when<br>
A || B<br>
then<br>
C<br>
<br>
and the rule was fired because B part was true, can I point out that the<br>
rule was fired becuase of part B?<br>
<br>
I hope my cumbersome question is understood :-)<br>
<br>
Thanks in advance.<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n3.nabble.com/Show-the-rational-of-rule-that-was-fired-tp115710p115710.html" target="_blank">http://n3.nabble.com/Show-the-rational-of-rule-that-was-fired-tp115710p115710.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><br clear="all"><br>-- <br> - <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> - Salatino "Salaboy" Mauricio -<br>