[rules-users] How to let a rule run only one time

Wolfgang Laun wolfgang.laun at gmail.com
Tue Dec 6 05:47:25 EST 2011


As soon as you use agenda-group "x" you have two groups: "MAIN" and "x".
-W

On 06/12/2011, Esteban Aliverti <esteban.aliverti at gmail.com> wrote:
> Are you activating the "add" agenda-group before the fireAllRules() call?
>
> Best Regards,
>
> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
>
> Esteban Aliverti
> - Developer @ http://www.plugtree.com
> - Blog @ http://ilesteban.wordpress.com
>
>
> On Tue, Dec 6, 2011 at 10:45 AM, Zhao Yi <zhaoyi0113 at gmail.com> wrote:
>
>> I just tried and please look at my rule file. It is very simple, after
>> fired
>> the session, this rule is not fired. I am using drools 5.1.1 and
>> statefulsession. Could you please provide your rule file to have a look
>> at?
>>
>>
>> rule "add2"
>>        agenda-group "add"
>>        dialect "java"
>>        lock-on-active
>>        when
>>                eval(true)
>>        then
>>                System.out.println("add2");
>> end
>>
>>
>> --
>> View this message in context:
>> http://drools.46999.n3.nabble.com/How-to-let-a-rule-run-only-one-time-tp3550555p3563873.html
>> Sent from the Drools: User forum mailing list archive at Nabble.com.
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>



More information about the rules-users mailing list