Were the rules in Agenda Group &quot;group1&quot; executed, or merely evaluated?<br><br>Agenda Group controls which activations on the agenda are executed, rules in all Agenda Groups will continue to be evaluated.<br><br>Thanks,<br>
<br>Mike<br><br><div class="gmail_quote">On 26 January 2011 10:52, Evert Penninckx <span dir="ltr">&lt;<a href="mailto:evert.penninckx@gmail.com">evert.penninckx@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Hi<br>
<br>
I have a rule set with two agenda groups. I have a rule with autofocus on<br>
group1. If the rules in group1 are &quot;exhausted&quot; it activates group2 using<br>
setFocus().<br>
<br>
rule &quot;Active second group&quot;<br>
agenda-group &quot;group1&quot;<br>
auto-focus true<br>
salience -1<br>
when<br>
  eval(true)<br>
then<br>
  drools.setFocus(&quot;group2&quot;)<br>
end<br>
<br>
Now I noticed that while executing rules from group2, rules from group1 were<br>
still being triggerd and executed.<br>
<br>
So I added this to the then clause.<br>
<br>
drools.getWorkingMemory().getAgenda().clearAndCancelAgendaGroup(&quot;group1&quot;)<br>
<br>
Alas, it made no difference. Some debugging made clear that after the then<br>
clause the stack contained only MAIN and &quot;group2&quot;.<br>
<br>
Am I missing some basic notion on agenda groups?<br>
<br>
<br>
<br>
<br>
Greetz<br>
<br>
Evert<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Clearing-an-AgendaGroup-tp2353014p2353014.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Clearing-an-AgendaGroup-tp2353014p2353014.html</a><br>

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>
</font></blockquote></div><br>