[rules-users] Java beans inheritance

Edson Tirelli ed.tirelli at gmail.com
Thu Nov 12 10:44:54 EST 2009


   Hi,

   Yes, it should work. I am pretty sure I used it before. Can you please
confirm what versions of Drools and MVEL are you using?

   Edson

2009/11/12 Zohar Etzioni <zohar.etzioni at gmail.com>

> Hi,
>
> I have a class hierarchy of objects that I'm inserting as facts. Lets
> say X, Y extends X and Z extends Y. I have a rule that is defined on X
> and therefore applies to all of them, however in the rule I want to
> ask about the class name and I'm referring to it as
> class.name=="some.class". This should work as far as I understand coz
> it keeps the java beans format, however it is not directly defined in
> the class X but rather in Object. The error I'm getting is "Error:
> could not access: name". Any idea what I'm doing wrong?
>
> Thanks,
> Dawg
> _______________________________________________
> 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 by Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20091112/ba4687cc/attachment.html 


More information about the rules-users mailing list