Have you tried collect? something like...
$alertFromDATA : Alert ( sourceName=="DATA") from $alert.alerts
$list : ArrayList() from collect ($alertFromDATA)
You may even be able to combine both statements into one.
Dont know if this will work, but you can try.
--
View this message in context:
http://drools.46999.n3.nabble.com/How-to-hold-a-Collection-of-Objects-in-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.