agenda-group is the same as module in CLIPS/JESS terms (not sure about JRules).
Activation group is a kind of unique thing: basically, of all the rules in the same activation group (ie their group has the same name) - only one will fire (in a single "cycle"). So its useful when you have N rules that may fire, but you only want one of them to fire (you can then use salience to narrow it down to which one actually fires).
On 11/14/06, elmo <[EMAIL PROTECTED]> wrote:
Hi,
I am a newbie to rules. When do we use an activation-group? I have
subrules and I do fine using just an agenda-group. When a condition matches
a rule I set auto-focus and it executes everything having the same
agenda-group. If it has a higher salience, it would not match other rules
having a different agenda. This works just fine for me. I was just curious
what the activation-group is and what scenario it would fit best. Does it
have a relationship with agenda-group? Also i noticed if want to force
setFocus in the right hand part, i have to write it as
drools.setFocus(agendaname). I was expecting just setFocus. Am i using an
older version, or is it really an intention. Thanks.
--
View this message in context: http://www.nabble.com/When-do-we-use-an-activation-group-tf2627607.html#a7332244
Sent from the drools - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
