[rules-users] How to let a rule run only one time
Esteban Aliverti
esteban.aliverti at gmail.com
Tue Dec 6 04:49:28 EST 2011
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20111206/1678e88e/attachment.html
More information about the rules-users
mailing list