<br>   Hi, <br><br>   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? <br><br>   Edson<br><br><div class="gmail_quote">2009/11/12 Zohar Etzioni <span dir="ltr">&lt;<a href="mailto:zohar.etzioni@gmail.com">zohar.etzioni@gmail.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;">Hi,<br>
<br>
I have a class hierarchy of objects that I&#39;m inserting as facts. Lets<br>
say X, Y extends X and Z extends Y. I have a rule that is defined on X<br>
and therefore applies to all of them, however in the rule I want to<br>
ask about the class name and I&#39;m referring to it as<br>
<a href="http://class.name" target="_blank">class.name</a>==&quot;some.class&quot;. This should work as far as I understand coz<br>
it keeps the java beans format, however it is not directly defined in<br>
the class X but rather in Object. The error I&#39;m getting is &quot;Error:<br>
could not access: name&quot;. Any idea what I&#39;m doing wrong?<br>
<br>
Thanks,<br>
Dawg<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>
</blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>