<br>&nbsp;&nbsp;&nbsp; That is a strange request, since if ClassB inherits ClassA =&gt; ClassB is a specialization of ClassA.<br><br>&nbsp;&nbsp;&nbsp; Anyway, did you tried something like bellow?<br><br>&nbsp;&nbsp;&nbsp; ClassA( class != ClassB.class ) <br><br>&nbsp;&nbsp;&nbsp; This does not look like a &quot;business&quot; rule, though... but I don&#39;t know your use case...<br>
<br>&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp; Edson<br><br><div class="gmail_quote">2009/2/12  <span dir="ltr">&lt;<a href="mailto:kfs2@chryslerfinancial.com">kfs2@chryslerfinancial.com</a>&gt;</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.
&nbsp;ClassB inherits from ClassA. &nbsp;I have a need to write a rule
that only matches instances of ClassA without matching instances of ClassB.
&nbsp;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> &nbsp;Edson Tirelli<br> &nbsp;JBoss Drools Core Development<br> &nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>