yeah... that it&#39;s age? an int?<br><br><br><div class="gmail_quote">2011/3/25 Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
You can&#39;t use a method call as the left hand side operand in a constraint; thus<br>   age.size() == 0<br>is not correct.<br><br>Do you really mean<br>   age == &quot;null&quot;<br><br>Probably <br>   ApplicationData( age == null || age == &quot;&quot; )<br>

is the right thing to do, provided that ApplicationData.age is a String.<br><font color="#888888"><br>-W</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On 25 March 2011 17:32, Benson Fung <span dir="ltr">&lt;<a href="mailto:benson.redhat@gmail.com" target="_blank">benson.redhat@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 got the following rule problem.<br>
<br>
The rule is like :<br>
<br>
1.      |       rule &quot;Rule1&quot;<br>
2.      |           dialect &quot;mvel&quot;<br>
3.      |           when<br>
4.      |               ad : ApplicationData( age == &quot;null&quot; , age.size() == 0)<br>
5.      |           then<br>
6.      |               ad.setReturnMsg( &quot;age should not be null or empty&quot; );<br>
7.      |       end<br>
<br>
where setReturnMsg is a method of ApplicationData Fact();<br>
<br>
However, I got the validation error :<br>
<br>
[Rule1] [ERR 101] Line 4:49 no viable alternative at input &#39;)&#39; in rule<br>
&quot;Rule1&quot; in pattern ApplicationData<br>
[Rule1] [ERR 102] Line 4:51 mismatched input &#39;==&#39; expecting &#39;)&#39; in<br>
rule &quot;Rule1&quot; in pattern ApplicationData<br>
<br>
Please help what the problem is.<br>
<br>
<br>
Thanks<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>
</div></div><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>
<br></blockquote></div><br><br clear="all"><br>-- <br> - CTO @ <a href="http://www.plugtree.com">http://www.plugtree.com</a>  <br> - MyJourney @ <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br>
 - Co-Founder @ <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> <br> - Salatino &quot;Salaboy&quot; Mauricio -<br>