<br>   In the consequence of rule 1 you could write:<br><br>drools.setFocus( &quot;group 2&quot; );<br><br>   That will immediately place the group 2 on top of the stack and, since the rule 2 will be active, it will fire rule 2 in the sequence.<br>
<br>   Another way is, in rule 2, add the attribute: auto-focus. Whenever that rule is activated, the engine places it&#39;s group (in your example, group 2) on top of the stack, also allowing the rule to fire.<br><br>   Please note that for the simple example being discussed, all 3 approaches have the same effect, but for real life examples with hundreds or thousands of rules, sometimes it will be easier to use auto-focus, some times it will be easier to use drools.setFocus(). <br>
<br>   []s<br>   Edson<br><br><div class="gmail_quote">2010/1/22 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>
I think I understood that part. My question was regarding a &quot;rule<br>
consequence&quot; -- as you mentioned -- potentially making another agenda-group<br>
&quot;eligible&quot; or even better, a rule consequence setting the focus of another<br>
agenda-group from within one.<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-tp133386p134906.html" target="_blank">http://n3.nabble.com/Understanding-agenda-group-doesn-t-work-as-documented-in-book-or-docs-tp133386p134906.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>