[rules-users] How to hold a Collection of Objects in memory for processing ?.

vr veneet at aol.in
Fri Apr 26 07:11:19 EDT 2013


Yeah that seems to be the way to go

Solution was to use collect

My Rule now looks like the follows

$alert : Alert()       
$list : ArrayList() from collect (Alert ( sourceName=="DATA") from
$alert.alerts) 


Now $list is holding the entire Colection of Objects.






-----
Thanks for the support ...!!! 
VR

--
View this message in context: http://drools.46999.n3.nabble.com/How-to-hold-a-Collection-of-Objects-in-memory-for-processing-tp4023537p4023549.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list