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-against-multiple-concrete-types-under-the-same-hiearchy-tp3314751p3318985.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to