<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"><<a href="mailto:infinity2heaven@gmail.com">infinity2heaven@gmail.com</a>></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's the best description I'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>
><br>
> and every time you call setFocus() from the application code *or* from a<br>
> rules consequence *or* a<br>
> rule with auto-focus true is activated, it will push that group on top of<br>
> the stack.<br>
><br>
<br>
</div>In the above example, I have two groups (1 & 2) and I set group1 explicitly<br>
before fireAllRules(). "Hello World" gets fired and updates the Message fact<br>
as a consequence. I expect "GoodBye" rule to get fired as a result of that<br>
but it doesn'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>