The Developer's Guide is a useful tool, and the cookbook is a good reference as well, but both are supplemental to the documentation as they each cover portions of functionality, but neither covers it in its entirety. To do so would be quite the task for a single book, so I would recommend a good read through the Expert page followed by reading through the Introduction pages. Seems backwards, but I've found that for me, the Expert guide builds a good base to understanding the "What's New" stuff found in the Introduction. In any case, even if it doesn't all make sense now, you'll likely remember keywords that you can refer back to later when you need them.

Documentation: http://www.jboss.org/drools/documentation
cookbook link: http://www.packtpub.com/drools-developers-using-jboss-cookbook/book

Jeremy


On Fri, Jan 18, 2013 at 3:13 AM, Bojan Janisch <bojan.janisch@scai.fraunhofer.de> wrote:
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@me.com>
An: "Rules Users List" <rules-users@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@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@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