Thanks Steve and Wolfgang, that helped me a lot. Not the salience, but using a blocking
fact was very helpful and also using the activation-group. Though I did not found
something about it in the book "Drools JBoss Rules 5.0 Developer's Guide".
Maybe it is just too basic for the book or I'm not skilled enough to find it, probably
the second.
So anyway thanks you two.
----- Ursprüngliche Mail -----
Von: "Stephen Masters" <stephen.masters(a)me.com>
An: "Rules Users List" <rules-users(a)lists.jboss.org>
Gesendet: Donnerstag, 17. Januar 2013 13:12:30
Betreff: Re: [rules-users] XOR Rules
Not explicitly. The usual practise is for each rule to insert a blocking fact and create a
condition in each rule, which ensures that it only fires if the blocking fact doesn't
exist. If you want one to take priority over the other, then you can use salience.
Steve
On 17 Jan 2013, at 11:58, Bojan Janisch <bojan.janisch(a)scai.fraunhofer.de> wrote:
Hello everybody,
is there a way to XOR two rules? So if one condition is passed,
that not a specific other rule fires, even if that condition
also passed.
Thanks in advance.
Bojan
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users