[rules-users] not operation available in drools

Wolfgang Laun wolfgang.laun at gmail.com
Thu Jun 14 03:22:46 EDT 2012


Sotty,

You want to be careful with applying De Morgan's laws indiscriminately
when terms aren't plain boolean expressions.

Even the simpler
    Foo( a != x ) and Foo( b != y )
is not equivalent to
    Foo( a != x && b != y )

-W

On 14/06/2012, Davide Sottara <dsotty at gmail.com> wrote:
> Are the two conditions constraints inside the same pattern or two different
> patterns?
> In the former case, DeMorgan's laws also apply:
>
> ( a != "x") || ( b != "y" )
>
> and you should anyway be able to use free-form boolean expressions inside a
> pattern,
> provided that you use one of the latest versions.
>
> Otherwise (two patterns), see the previous posts.
>
> Best,
> Davide
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/not-operation-available-in-drools-tp4017936p4017939.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list