[rules-users] Understanding agenda-group (doesn't work as documented in book or docs)

Pritam infinity2heaven at gmail.com
Thu Jan 21 11:48:25 EST 2010


I set 
session.getAgenda().getAgendaGroup("group1").setFocus(); 
session.getAgenda().getAgendaGroup("group2").setFocus(); 

and only group1 rule fires, but when I set
session.getAgenda().getAgendaGroup("group2").setFocus(); 
session.getAgenda().getAgendaGroup("group1").setFocus(); 

both group1 and group2 rules are fired.

It looks like setfocus internally is adding to the stack "in the order in
which it is called."

It would be nice to have a addfocus instead that doesn't jeopardize the
intention of the developer.
-- 
View this message in context: http://n3.nabble.com/Understanding-agenda-group-doesn-t-work-as-documented-in-book-or-docs-tp133386p133424.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list