[rules-users] Collecting / sorting by the number of matches

David Sinclair dsinclair at chariotsolutions.com
Wed Aug 19 10:47:42 EDT 2009


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
*rule based* solution, but it is a *Drools* solution :)

On Wed, Aug 19, 2009 at 10:42 AM, KDR <dr.soprano at neverbox.com> wrote:

>
> Thank you Dave. I had a look, but it seems I'd still have to track it and
> process the results in Java rather than using rules, so I guess I'll stick
> with my original Java solution. Unless there's some way to track it in
> Drools?
> Cheers
>
>
>
> dave sinclair wrote:
> >
> > Take a look at the *AgendaEventListener*. It allows you to get callbacks
> > for
> > when a rule has fired. This would allow you to keep track of which rules
> > fire along with the objects that caused it to fire.
> >
>
> --
> View this message in context:
> http://www.nabble.com/Collecting---sorting-by-the-number-of-matches-tp25039921p25045478.html
> Sent from the drools - user mailing list archive at Nabble.com.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090819/71a45caf/attachment.html 


More information about the rules-users mailing list