Just remember that doing it this way alleviates the author of the rules from having to add that "book keeping" when creating new rules. This may not be a <i>rule based</i> solution, but it is a <i>Drools</i> solution :)<br>
<br><div class="gmail_quote">On Wed, Aug 19, 2009 at 10:42 AM, KDR <span dir="ltr"><<a href="mailto:dr.soprano@neverbox.com">dr.soprano@neverbox.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>
Thank you Dave. I had a look, but it seems I'd still have to track it and<br>
process the results in Java rather than using rules, so I guess I'll stick<br>
with my original Java solution. Unless there's some way to track it in<br>
Drools?<br>
Cheers<br>
<div class="im"><br>
<br>
<br>
dave sinclair wrote:<br>
><br>
> Take a look at the *AgendaEventListener*. It allows you to get callbacks<br>
> for<br>
> when a rule has fired. This would allow you to keep track of which rules<br>
> fire along with the objects that caused it to fire.<br>
><br>
<br>
</div><font color="#888888">--<br>
View this message in context: <a href="http://www.nabble.com/Collecting---sorting-by-the-number-of-matches-tp25039921p25045478.html" target="_blank">http://www.nabble.com/Collecting---sorting-by-the-number-of-matches-tp25039921p25045478.html</a><br>
</font><div><div></div><div class="h5">Sent from the drools - user mailing list archive at Nabble.com.<br>
<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>
</div></div></blockquote></div><br>