The hairy catchword in the post is "only".
Most of the time, it's best to design the conditions so that only one rule will reach the agenda.
If this is too circumstantial, salience might be used to let the "special" case fire before the "general" case; but then something must be done to remove the activation of the latter. You can, for instance, retract the (a) contributing fact. Or mark it and include "not marked" in all conditions. Or...
-W
Hello itchupe:I think you mean what in Drools is called SALIENCE.Look for that rule attribute in..Best regards,Manuel Ortiz.2011/6/28 itchupe <itchupe@gmail.com>
Hello there
I am new to all drools...
How can I 'mutex' in drools? Or could you suggest a better concept for that?
(i mean, when two rules would fire : rule1 and rule2 in agenda
the mutex is checked and : mutex for this case is defined, rule1
= higher, rule2 = lower prio
only the one rule with higher priority will be executed)
Cheers. Please let me know if my question is understandable...
--
View this message in context: http://drools.46999.n3.nabble.com/MUTEX-mutual-exclusion-in-Drools-tp3117430p3117430.html
Sent from the Drools: User forum 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