[rules-users] Alternative to instanceof when matching against multiple concrete types under the same hiearchy?
laune
wolfgang.laun at gmail.com
Thu Sep 8 04:10:42 EDT 2011
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.
More information about the rules-users
mailing list