global java.util.TreeMap vehicles rule ... when v:Vehicle() then vehicles.put(v.wheels, v); /Marc/ -- View this message in context: http://drools.46999.n3.nabble.com/To-group-some-objects-by-type-tp4022085p4022089.html Sent from the Drools: User forum mailing list archive at Nabble.com.