[rules-users] Checking for a lack of an object

Wolfgang Laun wolfgang.laun at gmail.com
Fri Aug 19 03:37:33 EDT 2011


2011/8/19 Raf <r.ventaglio at gmail.com>

> You must not add the parenthesis after *not.*


This is not correct. You may even *have *to use parentheses unless the
negated condition is a conjunction or disjunction. The omission of the
parentheses is tolerated when the argument is a single Pattern.
-W


> *
> *
> Try this:
>
> rule "Flag missing Foos with values"
> when
>     not Foo(stringProp=="blah", intProp==5)
> then
>    System.err.println("A proper foo does not exist");
> end
>
> Bye
> *Raf*
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110819/cdf1bdd1/attachment.html 


More information about the rules-users mailing list