Nope, if you want actual instances you must use "collect":

  context : Context(state == Context:START_UP)
  list : ArrayList( size > 0 ) from collect( ClassName(varName =="value" ) )
  // list has your matching ClassName objects


2007/6/1, Rajesh.Sachin10 < >:

Its possible to use 'exists' keyword to get the number of occurance?


context : Context(state == Context:START_UP) exists ClassName(varName ==

The ClassName is an Object array..... So to get the number of occurance of
the "value" in varName, we have any method or keywords?
View this message in context:
Sent from the drools - user mailing list archive at

rules-users mailing list

  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @