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

techy techluver007 at gmail.com
Wed Dec 10 00:08:10 EST 2008



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.




More information about the rules-users mailing list