[rules-users] using 'from collect' to get a list of object with the same field

manny_calavera acerasi at imolinfo.it
Tue Jun 5 11:02:44 EDT 2007


Hi,
this is my code:

rule "Check activity"    
    when       
        riga : RigaAttivita($d : codice)                      
        r: ArrayList(size > 0) from collect (RigaAttivitaExcel(codice == $d
) )      
    then            
        System.out.println("dimension "+r.size());          
end 

I would fill every arraylist with all the object that have the same value of
the field (codice)

Using this code i get a loop...

What i'm wrong????

Thanks
-- 
View this message in context: http://www.nabble.com/using-%27from-collect%27-to-get-a-list-of-object-with-the-same-field-tf3872312.html#a10971350
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list