<br>     Hi Brice,<br><br>     You are doing it right:<br><br>
Scenario( id == 6147 )<br><br>     We&#39;ve been through quite some changes in trunk, and because of that there were some regressions that are being fixed as we speak. I suggest that you either use the stable 5.0.1 for now or if you can wait till M2, it should fix this kind of issue.<br>
<br>     Edson<br><br><div class="gmail_quote">2010/2/3 Brice Figureau <span dir="ltr">&lt;<a href="mailto:brice%2Bdrools@daysofwonder.com">brice+drools@daysofwonder.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 the following MVEL expression in a rule (with drools 5.1.0M1):<br>
<br>
Scenario( id == 6147 )<br>
<br>
Scenario is an interface which has the following accessor (and tons of<br>
other methods):<br>
<br>
public interface Scenario<br>
{<br>
...<br>
        public int getId();<br>
...<br>
}<br>
<br>
But either in Eclipse or when compiling the rules I get the following<br>
error:<br>
Unable to create Field Extractor for &#39;id&#39; of &#39;[ClassObjectType class=com.daysofwonder.mm.Scenario]&#39;<br>
<br>
I tried tons of variants including:<br>
Scenario( getId == 6147 )<br>
that still doesn&#39;t work.<br>
<br>
The only variant I could make work is:<br>
<br>
$s : Scenario( )<br>
Scenario ( eval($s.getId() == 6147 ) )<br>
<br>
which is plain ugly.<br>
<br>
using something else than a Scenario or defining a new interface with<br>
only getId() in it makes it work.<br>
<br>
Any idea about what I got wrong?<br>
How can I debug the situation?<br>
<br>
Thanks,<br>
<font color="#888888">--<br>
Brice Figureau<br>
My Blog: <a href="http://www.masterzen.fr/" target="_blank">http://www.masterzen.fr/</a><br>
<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>
</font></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>