<br>&nbsp;&nbsp;&nbsp; This is a limitation from MVEL (the expression language we use). At this moment, it only resolves methods that follows javabean naming conventions. As the length() method does not follow the javabean naming convention, you have to do:
<br><br>v : Validaciones( eval( fonodestino.length() &gt; 7 ) )<br>&nbsp;&nbsp;  <br>&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp; Edson<br>
<br><br><div><span class="gmail_quote">2007/8/30, grupo cft ing sostware &lt;<a href="mailto:infocft@gmail.com">infocft@gmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<p>Hello list, as I can obtain the length of a variable in LHS</p>
<p>when<br>&nbsp;v: Validaciones( fonodestino.length &gt; 7)<br>then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ....</p>
<p>In this way you give me error.<br>That do I do wrong?</p>
<p>thanks.</p>
<br>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;Software Engineer - JBoss Rules Core Developer<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646
<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>