<br>   I think you already figured out, but the stack starts only with the MAIN group and you must explicitly call setFocus in order to add a group to the stack. If a group is not added to the stack, the rule activation will remain in the group waiting to be placed in the stack.<br>
<br>    Edson<br><br><div class="gmail_quote">2010/1/21 Pritham <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>
That&#39;s the best description I&#39;ve read on *groups so far. Stuff like this<br>
should be in the docs.<br>
<br>
Now, you mentioned<br>
<div class="im"><br>
<br>
Edson Tirelli-4 wrote:<br>
&gt;<br>
&gt;   and every time you call setFocus() from the application code *or* from a<br>
&gt; rules consequence *or* a<br>
&gt; rule with auto-focus true is activated, it will push that group on top of<br>
&gt; the stack.<br>
&gt;<br>
<br>
</div>In the above example, I have two groups (1 &amp; 2) and I set group1 explicitly<br>
before fireAllRules(). &quot;Hello World&quot; gets fired and updates the Message fact<br>
as a consequence. I expect &quot;GoodBye&quot; rule to get fired as a result of that<br>
but it doesn&#39;t.<br>
<br>
What am I missing?<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-tp133386p133669.html" target="_blank">http://n3.nabble.com/Understanding-agenda-group-doesn-t-work-as-documented-in-book-or-docs-tp133386p133669.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>