<br>   LOL, by &quot;jeopardize the intention of the developer&quot; you mean  &quot;guess what the developer wanted to do but didn&#39;t know how to model&quot; or more like &quot;teach the developer how to use a stack&quot;? :)<br>
<br>   Seriously, there is a reason why stacks work like they do and why agenda-groups are handled as stacks. You can try to use ruleflow-groups instead of agenda-groups, if you want to coordinate your rules in a more straight forward (I guess we could say more natural, sequential) way. Although, even with ruleflow-groups, you need to model them in the correct order or things will not go as you would like them to.<br>
<br>   Edson<br><br><br><div class="gmail_quote">2010/1/21 Pritam <span dir="ltr">&lt;<a href="mailto:infinity2heaven@gmail.com">infinity2heaven@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I set<br>
session.getAgenda().getAgendaGroup(&quot;group1&quot;).setFocus();<br>
session.getAgenda().getAgendaGroup(&quot;group2&quot;).setFocus();<br>
<br>
and only group1 rule fires, but when I set<br>
session.getAgenda().getAgendaGroup(&quot;group2&quot;).setFocus();<br>
session.getAgenda().getAgendaGroup(&quot;group1&quot;).setFocus();<br>
<br>
both group1 and group2 rules are fired.<br>
<br>
It looks like setfocus internally is adding to the stack &quot;in the order in<br>
which it is called.&quot;<br>
<br>
It would be nice to have a addfocus instead that doesn&#39;t jeopardize the<br>
intention of the developer.<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n3.nabble.com/Understanding-agenda-group-doesn-t-work-as-documented-in-book-or-docs-tp133386p133424.html" target="_blank">http://n3.nabble.com/Understanding-agenda-group-doesn-t-work-as-documented-in-book-or-docs-tp133386p133424.html</a><br>

</font><div><div></div><div class="h5">Sent from the Drools - User 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><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>