Were the rules in Agenda Group "group1" executed, or merely evaluated?
Agenda Group controls which activations on the agenda are executed, rules in
all Agenda Groups will continue to be evaluated.
Thanks,
Mike
On 26 January 2011 10:52, Evert Penninckx <evert.penninckx(a)gmail.com> wrote:
Hi
I have a rule set with two agenda groups. I have a rule with autofocus on
group1. If the rules in group1 are "exhausted" it activates group2 using
setFocus().
rule "Active second group"
agenda-group "group1"
auto-focus true
salience -1
when
eval(true)
then
drools.setFocus("group2")
end
Now I noticed that while executing rules from group2, rules from group1
were
still being triggerd and executed.
So I added this to the then clause.
drools.getWorkingMemory().getAgenda().clearAndCancelAgendaGroup("group1")
Alas, it made no difference. Some debugging made clear that after the then
clause the stack contained only MAIN and "group2".
Am I missing some basic notion on agenda groups?
Greetz
Evert
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Clearing-an-AgendaGro...
Sent from the Drools - User mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users