Re: [rules-users] MUTEX, mutual exclusion in Drools?
Hello itchupe: I think you mean what in Drools is called SALIENCE. Look for that rule attribute in.. http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html/ch04.html#d0e3573 Best regards, Manuel Ortiz. 2011/6/28 itchupe itch...@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
Re: [rules-users] MUTEX, mutual exclusion in Drools?
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 2011/6/28 Manuel Ortiz manuel.ortizra...@gmail.com Hello itchupe: I think you mean what in Drools is called SALIENCE. Look for that rule attribute in.. http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html/ch04.html#d0e3573 Best regards, Manuel Ortiz. 2011/6/28 itchupe itch...@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 ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] MUTEX, mutual exclusion in Drools?
Of course, in the then part of rule1 you will have to set a fact that is checked in the when condition in rule2 to ensure that rule2 is not executed if rule1 has executed. Chris On 28/06/2011 12:30, Manuel Ortiz wrote: Hello itchupe: I think you mean what in Drools is called SALIENCE. Look for that rule attribute in.. http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html/ch04.html#d0e3573 Best regards, Manuel Ortiz. 2011/6/28 itchupe itch...@gmail.com mailto:itch...@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 mailto: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 No virus found in this message. Checked by AVG - www.avg.com http://www.avg.com Version: 10.0.1388 / Virus Database: 1516/3730 - Release Date: 06/27/11 ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] MUTEX, mutual exclusion in Drools?
okay. I am not a big fan of mutex, so best is I redesign it as described. Thanks very much for your answers! itchupe -- View this message in context: http://drools.46999.n3.nabble.com/MUTEX-mutual-exclusion-in-Drools-tp3117430p3117624.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