See below.
On 03/02/2012, swaroop <swaroop.oggu(a)gmail.com> wrote:
Hi,
Iam invoking a template from a rule using agenda-group setfocus. My doubt is
,after focusing and executing the template based on the agenda-group where
will the rule control fall back to.
Eg:
Rule 1
ruleflow-group "RF1"
WHEN
c : someFact(someCond)
THEN
kcontext.getKnowledgeRuntime().getAgenda().getAgendaGroup("AG1").setFocus();
The preceding statement has no immediate effect except setting the
agenda focus.
Do something1
Do Something2 based on some actions set in template invoked through
agenda-group
This is a very curious statement. You do "Something2" as it is coded
here, with all objects being what they are at the start of this
consequence (after THEN), except for modifications done by
"Something1".
-W
END
Rule 2
ruleflow-group "RF1"
WHEN
c : someFact(someCond1-->someCond1 is based on the parameters set in
template called in prev rule)
THEN
Do Something3
END
What should be the flow of events after rule 1 execution ?
Thanks
Swaroop
--
View this message in context:
http://drools.46999.n3.nabble.com/Doubt-over-Agenda-Group-tp3712866p37128...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users