I think you already figured out, but the stack starts only with the MAIN
group and you must explicitly call setFocus in order to add a group to the
stack. If a group is not added to the stack, the rule activation will remain
in the group waiting to be placed in the stack.
Edson
2010/1/21 Pritham <infinity2heaven(a)gmail.com>
That's the best description I've read on *groups so far. Stuff like this
should be in the docs.
Now, you mentioned
Edson Tirelli-4 wrote:
>
> and every time you call setFocus() from the application code *or* from
a
> rules consequence *or* a
> rule with auto-focus true is activated, it will push that group on top of
> the stack.
>
In the above example, I have two groups (1 & 2) and I set group1 explicitly
before fireAllRules(). "Hello World" gets fired and updates the Message
fact
as a consequence. I expect "GoodBye" rule to get fired as a result of that
but it doesn't.
What am I missing?
--
View this message in context:
http://n3.nabble.com/Understanding-agenda-group-doesn-t-work-as-documente...
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
--
Edson Tirelli
JBoss Drools Core Development
JBoss by Red Hat @
www.jboss.com