Please accept that my knowledge is based on 4.x and there might be other
alternatives in 5.

Rules are not "ran" but their patterns (LHS) evaluated as facts
(objects) are inserted into Working Memory. When all patterns in the LHS
of a rule are matched activations are placed on the agenda for execution
of the consequence (RHS) when fireAllRules() is called (or other
mechanisms to run what is on the agenda are invoked; such as RuleFlow).
So you could have rules in Group A cause Group B to receive the focus
but it is the RHS's execution order you control and not the pattern
matching - which will happen for Group A and Group B when facts are
inserted into WM.

Look at Agenda Groups and RuleFlow. This should help.

With kind regards,

Mike

-----Original Message-----
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Thierry B
Sent: 21 January 2009 10:48
To: rules-users@lists.jboss.org
Subject: [rules-users] Run a set of rules in a group B from a rule in a
group A


Hello,

Is it possible to run a rule from a group A, and if conditions of that
rule
are satisfied that in consequence to tell Drools to run rules of a group
B ?
And if it's possible, how to do that?

Thanks :-)


-- 
View this message in context:
http://www.nabble.com/Run-a-set-of-rules-in-a-group-B-from-a-rule-in-a-g
roup-A-tp21580767p21580767.html
Sent from the drools - user mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to