That is a strange request, since if ClassB inherits ClassA => ClassB is a specialization of ClassA.

    Anyway, did you tried something like bellow?

    ClassA( class != ClassB.class )

    This does not look like a "business" rule, though... but I don't know your use case...

    []s
    Edson

2009/2/12 <kfs2@chryslerfinancial.com>

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?

Thanks

Kent Symanzik

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




--
 Edson Tirelli
 JBoss Drools Core Development
 JBoss, a division of Red Hat @ www.jboss.com