To use not contains, you'll have to invert the order of the patterns:
   $ value : Value ( // other restrictions )
   $object : MyObject ( $valueList : valueList not contains $value )
This will use the evaluator which should be more efficient than eval()
-W


2010/11/1 Mauricio Salatino <salaboy@gmail.com>
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@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@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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users