[rules-users] How to run an agenda group multiple times?

FrankVhh frank.vanhoenshoven at agserv.eu
Mon Nov 14 07:06:46 EST 2011


What Davide is saying is correct, as is your quotation of the docmentation.
I'll try to rephrase Davide's explanation:  the group should be activated
twice, but the rules aren't necessarily fired. The conditions (incl. rule
attributes) should still match before anything fires.


Zhao Yi wrote:
> 
> According to Drools export document,
> 
> *Each time setFocus() is called it pushes that Agenda Group onto a stack.
> When the focus group is empty it is popped from the stack and the focus
> group that is now on top evaluates. An Agenda Group can appear in multiple
> locations on the stack. *
> 
> If I run setFocus() on an agenda group two times, the agenda group should
> be in multiple locations on the stack, why the rules in this agenda group
> are fired only once? 
> 
> Thanks,
> Zhao Yi
> 


--
View this message in context: http://drools.46999.n3.nabble.com/How-to-run-an-agenda-group-multiple-times-tp3504139p3506641.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list