[rules-users] check if a

Wolfgang Laun wolfgang.laun at gmail.com
Mon Nov 1 12:54:25 EDT 2010


In accordance with Greg: A bound variable cannot be used first in a
constraint; therefore we must use
  valueList not contains $value
-W

On 1 November 2010 17:16, Greg Barton <greg_barton at yahoo.com> wrote:

>
> $value : Value( $value : value, // other restrictions )
> $object : MyObject( $value not memberOf valueList )
>
> GreG
>
> On Nov 1, 2010, at 9:55, Tina Vießmann <tviessmann at stud.hs-bremen.de>
> wrote:
>
> Is it possible to write the following conditions without using eval?
>
>
>        $object : MyObject ( $valueList : valueList )  // of type List
>        $ value : Value ( // other restrictions
> && eval( !($valueList.contains($value)) ) )
>
>
> Thank you :)
> Tina
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101101/ffd15c69/attachment.html 


More information about the rules-users mailing list