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

Sowmya Yellamilli sowmya.yellamilli1 at genpact.com
Sun Dec 14 21:24:59 EST 2008


you can try this and let me know

global List globalIdList
#psedo rule
rule "check global lsit"
when
      foo: Foo()
      // you don't need to declare like this--list : List() from
globalIdList 
      eval(globalIdList.contains(foo.getId()))
then
//do something
end


-- 
View this message in context: http://www.nabble.com/lhs-%22contains%22-check-using-global-list-tp20929328p20929671.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list