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

vr veneet at aol.in
Thu Apr 25 12:12:06 EDT 2013


Hi All,

This is the rule defined in my drl file


rule "Entry"
salience 10
    when
        $alert : Alert()       
        $list : Alert ( sourceName=="DATA") from $alert.alerts  // 1.
Iterate over List of ALerts
    then     
         
        checkForAlertDescription($list);    // 2. I am passing one Alert per
match 
end


Is there a way to hold the *Entire List at Step one * in the Drools Memory
so that i can take the Entire list for processing with in the function
defined at Step 2 

Instead of the single alert that i have at the moment


Any suggestions would be helpful.

Drools v 5.4.0 Final





-----
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-tp4023537.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list