Are you using MVEL at all in this rule?<br><br>Anyway, better would be<br><br>   class == SomeClass.class<br><br>which avoids string handling.<br><br>-W<br><br><br><div class="gmail_quote">On Thu, Nov 12, 2009 at 3:25 PM, Zohar Etzioni <span dir="ltr">&lt;<a href="mailto:zohar.etzioni@gmail.com" target="_blank">zohar.etzioni@gmail.com</a>&gt;</span> wrote:<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" target="_blank">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>