Drools rule iterate collections and verify property

joshjdevl picture joshjdevl · Feb 25, 2011 · Viewed 12.2k times · Source

With Drools Rules "mvel" how to iterate over a collection and verify a property for each object in the collection?

Answer

Geoffrey De Smet picture Geoffrey De Smet · Feb 25, 2011

Look for the forall keyword in the reference manual (follow documentation on the drools page).