Are you activating the "add" agenda-group before the fireAllRules() call?<div><br></div><div>Best Regards,<br clear="all"><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>
- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">On Tue, Dec 6, 2011 at 10:45 AM, Zhao Yi <span dir="ltr"><<a href="mailto:zhaoyi0113@gmail.com">zhaoyi0113@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I just tried and please look at my rule file. It is very simple, after fired<br>
the session, this rule is not fired. I am using drools 5.1.1 and<br>
statefulsession. Could you please provide your rule file to have a look at?<br>
<br>
<br>
rule "add2"<br>
agenda-group "add"<br>
dialect "java"<br>
lock-on-active<br>
when<br>
eval(true)<br>
then<br>
System.out.println("add2");<br>
end<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/How-to-let-a-rule-run-only-one-time-tp3550555p3563873.html" target="_blank">http://drools.46999.n3.nabble.com/How-to-let-a-rule-run-only-one-time-tp3550555p3563873.html</a><br>
</font></span><div class="HOEnZb"><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br></div>