Inverting the order of patterns (and following Lisa's idea) makes the problem
go away:
rule "asdf"
when
OtherType( $member : member )
Interface( this == $member )
then
// do whatever with $member
end
This can be constrained to a subset of subclasses if there is also
ConcreteType3 extends Interface which should not be matched by adding
expressions using instanceof.
-W
--
View this message in context:
http://drools.46999.n3.nabble.com/Alternative-to-instanceof-when-matching...
Sent from the Drools: User forum mailing list archive at
Nabble.com.