[rules-users] lhs "contains" check using global list

Edson Tirelli tirelli at post.com
Wed Dec 10 10:38:02 EST 2008


   foo : Foo( id memberOf globalList )

   []s
   Edson

2008/12/10 techy <techluver007 at gmail.com>

>
>
> I would like to do lhs ""contains"" check on global list for fact field as
> given below. but no luck so far.. some help please.
>
> global List globalIdList
> #psedo rule
> rule "check global lsit"
> when
>      foo: Foo()
>      list : List() from globalIdList
>      list contains foo.getId()
>      #also tried  ''List(contains(foo.getId()) == true) from globalIdList'"
> then
> //do something
> end
>
> Thanks
>
> --
> View this message in context:
> http://www.nabble.com/lhs-%22contains%22-check-using-global-list-tp20929328p20929328.html
> Sent from the drools - user mailing list archive at Nabble.com.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss, a division of Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20081210/f9a87bb8/attachment.html 


More information about the rules-users mailing list