<br> That is a strange request, since if ClassB inherits ClassA => ClassB is a specialization of ClassA.<br><br> Anyway, did you tried something like bellow?<br><br> ClassA( class != ClassB.class ) <br><br> This does not look like a "business" rule, though... but I don't know your use case...<br>
<br> []s<br> Edson<br><br><div class="gmail_quote">2009/2/12 <span dir="ltr"><<a href="mailto:kfs2@chryslerfinancial.com">kfs2@chryslerfinancial.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><font size="2" face="sans-serif">I have two classes, ClassA and ClassB.
ClassB inherits from ClassA. I have a need to write a rule
that only matches instances of ClassA without matching instances of ClassB.
How I can I do that?</font>
<br>
<br><font size="2" face="sans-serif">Thanks</font>
<br>
<br><font size="2" face="sans-serif">Kent Symanzik<br>
</font><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>