AW: [rules-users] Stopping Rule-Execution after first match

Mescher,Mark Mark.Mescher at guidecom.de
Fri Feb 1 02:53:30 EST 2008


Hello Marc,
thanx for your advise, the fireLimit-Option does exactly what I want. The only thing I had to do was changing from a stateless to a statefull session.
Especially it is very interesting for me that a limit bigger 1 is possible. In the first step we only need a limit of 1, but we are planning to use limits bigger 1 in the future too:-)

Bye

Mark


 Mark Proctor wrote:
Mescher,Mark wrote:
Hello,
we have realized a project using drools with Decision Tables. We are working in sequential mode.
Now we have the request for a mechanism to stop the rule execution after the first rule matches (so no more rules are executed). Is there a native way to do this with decision tables?
Not really. You could add an agenda-filter to ignore all activations after the first one is executed.
Oh sorry there is also the fireLimit option, see the workingmemory api. So you can specify the max number of rules it can fire, in your case 1. Let me know if that works for you.

Thx

Mark


________________________________

_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org<mailto: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/20080201/2bd85459/attachment.html 


More information about the rules-users mailing list