[rules-users] Rule matching - Class heirarchy

Edson Tirelli tirelli at post.com
Thu Feb 12 09:46:26 EST 2009


    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 at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090212/b9deca7f/attachment.html 


More information about the rules-users mailing list