[rules-users] Easy mistake... - drools operator precedence
Geoffrey De Smet
ge0ffrey.spam at gmail.com
Mon Feb 18 09:16:53 EST 2013
Op 18-02-13 15:09, Wolfgang Laun schreef:
> On 18/02/2013, Geoffrey De Smet <ge0ffrey.spam at gmail.com> wrote:
>> I think so too.
>> It looks like the : operator has a higher precedence then + (and
>> therefor >= too), which is a bit surprising indeed.
>> Personally, I never mix the : operator with other operators, to avoid
>> having to worry about the precendence.
> Is it possible to use a non-boolean expression as a constraint?
Strictly speaking, I presume the answer is yes:
when
ShiftAssignment(
$employee : employee, // non-boolean expression
employee != null,
...
)
But non-strictly speaking, I think we can see that the answer is no :)
>
> -W
> _______________________________________________
> 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