My requirement is that i need to count the order requests from the same customer without hardcoding the customerid in the rule. The reason being In case if I have 1000 customers then I need to write 1000 rules for the same. To avoid this I need generic way to handle all the customer objects.
for example there are four order resquest objects from customerA and customerB.My rule should able to figure out the number of requests from indivdual customer and also i need to store those objects.
Basically i need sql's group by equvalent method in drools .
Please provide pointers