<div>Hi Jeff,</div><div><br></div><div>I logged a bug for this one a while back, here&#39;s the JIRA, patch details included.</div><div><br></div><div><a href="https://jira.jboss.org/jira/browse/GUVNOR-520">https://jira.jboss.org/jira/browse/GUVNOR-520</a></div>
<div><br></div><div>I would appreciate it if somebody could commit this for me :)</div><div><br></div><div>Cheers,</div><div><br></div><div>Paul<br><br><div class="gmail_quote">2010/4/30 Esteban Aliverti <span dir="ltr">&lt;<a href="mailto:esteban.aliverti@gmail.com">esteban.aliverti@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">It sounds like a bug. Can you double check it and create a jira issue please?<div><br></div><div>best,<br><br><div class="gmail_quote">
2010/4/29 Doyel,Jeff <span dir="ltr">&lt;<a href="mailto:JDOYEL@cerner.com" target="_blank">JDOYEL@cerner.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">






<div>
<font face="Arial, sans-serif" size="2">
<div>I am setting up a very simple example using a DSL and Guvnor.  My DSL is as follows:</div>
<div> </div>
<div style="padding-left:36pt">[when]Age is less than {age} years old=AgeFact(ageInYears &lt; {age})</div>
<div><font face="Calibri, sans-serif"> </font></div>
<div>When I attempt to create a new Business Rule using the Guvnor I can select the above expression just fine and the sentence displays as expected.  I then fill in the years with a numeric value (4) and validate.  Upon validation I receive the following error.</div>



<div> </div>
<div style="padding-left:36pt">[Age Test Rule] [ERR 101] Line 4:2 no viable alternative at input &#39;Age&#39; in rule &quot;Age Test Rule&quot;</div>
<div style="padding-left:36pt"><font face="Calibri, sans-serif"> </font></div>
<div>I then view the source and it looks like this.</div>
<div> </div>
<div style="padding-left:36pt">rule &quot;Age Test Rule&quot;</div>
<div style="padding-left:36pt">        dialect &quot;mvel&quot;</div>
<div style="padding-left:36pt">        when</div>
<div style="padding-left:36pt">                Age is less than 4years old</div>
<div style="padding-left:36pt">        then</div>
<div style="padding-left:36pt">end</div>
<div><font face="Calibri, sans-serif"> </font></div>
<div>I noticed that there is no space between the ‘4’ and the word ‘years’.  However, in my DSL sentence there is a space between {age} and years.  Another interesting thing, if I enter the number 4 followed by a space in the Guvnor form then the rule validates
correctly.  Is this a bug or is it something I am doing wrong in my DSL?</div>
<div> </div>
<div>Thanks,</div>
<div>Jeff</div>
<div><font face="Calibri, sans-serif"> </font></div>
</font>

<hr>CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner&#39;s corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.<br>



</div>

<br></div></div><div class="im">_______________________________________________<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>
<br></div></blockquote></div><br><br clear="all"><br>-- <br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>
</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></div>