> -----Original Message----- > From: Geoffrey Wiseman [mailto:[EMAIL PROTECTED] > > On 11/19/05, Karr, David <[EMAIL PROTECTED]> wrote: > > I'm trying to figure out how I can make only one rule in a set of > > rules fire, and have it check the rules in a certain order. > > > > I see that using the "xor-group" attribute deals with the > "only one" > > part, but I'm not sure how to specify the order it checks > the rules in > > an xor-group. Is that what "salience" is for? In a particular > > xor-group, will the rule with the highest salience be checked first? > > Salience is a factor, yes; that's the easiest way to control > the firing of rules. There's a page on the Drools site about > Conflict Resolution that should help clarify somewhat.
Yes, I saw that section. I wasn't certain from that exactly what the semantics would be in the context of xor-groups. Would the saliency ordering in a particular xor-group be completely independent of the saliency ordering in a different xor-group, even for identical saliency values across xor-groups? I want to use salience within xor-groups because I want each rule in an xor-group to have a condition which checks to see whether a particular code value "isPresent()" in a list, but each particular code value has a "priority", so I'll set the salience for that rule to the priority for the code value.
