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

Edson Tirelli ed.tirelli at gmail.com
Fri Jan 22 10:31:34 EST 2010


   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 at 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-documented-in-book-or-docs-tp133386p133669.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100122/15067cb6/attachment.html 


More information about the rules-users mailing list