[rules-users] Stopping Rule-Execution after first match
Mark Proctor
mproctor at codehaus.org
Thu Jan 31 13:28:25 EST 2008
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
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080131/c27c5919/attachment.html
More information about the rules-users
mailing list