[rules-users] MUTEX, mutual exclusion in Drools?

Chris Selwyn chris at selwyn-family.me.uk
Tue Jun 28 07:59:39 EDT 2011


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 <itchupe at gmail.com <mailto:itchupe at 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 at lists.jboss.org <mailto:rules-users at lists.jboss.org>
>     https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110628/74bdc43b/attachment.html 


More information about the rules-users mailing list