Consider this scenario:<br>  insert facts, rules r, s, t in group G are activated<br>  set focus for agenda group G<br>  set focus for agenda group G<br>  fireAllRules<br>  rules r, s fire<br>  rule t fires and inserts a fact so that rule u in G is activated<br>

  rule u fires<br>  G is popped from the stack - no more rules in G are activated<br>  G is popped from the stack - no rules in G are activated<br><br>Two immediately successive pushes of the same agenda group are useless.<br>
<br>-W<br><br><div class="gmail_quote">On 14 November 2011 12:52, Zhao Yi <span dir="ltr">&lt;<a href="mailto:zhaoyi0113@gmail.com" target="_blank">zhaoyi0113@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">According to Drools export document,<br>
<br>
*Each time setFocus() is called it pushes that Agenda Group onto a stack.<br>
When the focus group is empty it is popped from the stack and the focus<br>
group that is now on top evaluates. An Agenda Group can appear in multiple<br>
locations on the stack. *<br>
<br>
If I run setFocus() on an agenda group two times, the agenda group should be<br>
in multiple locations on the stack, why the rules in this agenda group are<br>
fired only once?<br>
<br>
Thanks,<br>
Zhao Yi<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/How-to-run-an-agenda-group-multiple-times-tp3504139p3506610.html" target="_blank">http://drools.46999.n3.nabble.com/How-to-run-an-agenda-group-multiple-times-tp3504139p3506610.html</a><br>


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" target="_blank">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>
</font></blockquote></div><br>