[rules-users] check if a

Tina Vießmann tviessmann at stud.hs-bremen.de
Mon Nov 1 11:15:46 EDT 2010


Using
    $valueList not contains $value
I get
     BuildError: Unable to create Field Extractor for '$valueList' of 
'[ClassObjectType event=myPackageValue]'

The error can be solved using
     $object.valueList not contains $value

Why is that?

Thank you :)


> can you try with
> $valueList not contains $value
> but internally I suppose that it will work in the same way that the eval.
>
>
> On Mon, Nov 1, 2010 at 11:55 AM, Tina Vießmann 
> <tviessmann at stud.hs-bremen.de <mailto: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 <mailto:rules-users at lists.jboss.org>
>     https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
>
> -- 
>  - CTO @ http://www.plugtree.com
>  - MyJourney @ http://salaboy.wordpress.com
>  - Co-Founder @ http://www.jbug.com.ar
>
>  - Salatino "Salaboy" Mauricio -
>
>
> _______________________________________________
> 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/adee6e68/attachment.html 


More information about the rules-users mailing list