If the purpose of your constraint would be to test whether some
Collection<Object> *contains any object of a certain type*, then, sorry:
there is no such thing in Drools, not out of the box.
You could write a function, use some (static) Java method, or implement a
constraint operator "containsInstanceOf" which would have a java.lang.Class
object as its second argument.
-W