Hello,<br><br>I am trying to evaluate certain data with Drools based on the end of a string. So far, I have got the following mvel based DRL ( My Wrapper class has the fields (with all their accessors) id, email and list):<br>

<br>---<br>rule &quot;Check the items of the list and remove the ones that satisfy the condition&quot;<br>    lock-on-active<br>when<br>    $wrapper : Wrapper( <br>                id == &quot;itemId&quot;,<br>                email.endsWith(&quot;@<a href="http://email.com">email.com</a>&quot;) == true,<br>

                $items : list)<br>    $item    : Map() from $items<br>then<br>    $items.remove($item)<br>end<br>----<br><br><br>However, when trying to apply this rule, I get the  error: no viable alternative at input &#39;&quot;@<a href="http://gmail.com">gmail.com</a>&quot;&#39; in rule ...&quot;. <br>

<br>What is the correct way to test whether a string ends with certain text (i.e, using the String.endsWith function using MVEL)<br><br>Thanks for any help!<br><br clear="all"><br>-- <br><div style="margin:1em 0 0 0;font-size:small;font-weight:normal;font-family:Arial,Helvetica,sans-serif;color:#666666">

--<br><b>Omar Baqueiro Espinosa</b><br>Software Engineer | <img src="https://lh6.googleusercontent.com/hyz76OkGgnUwiU5b-fZWpAjIcTm-SaytgiFJAbgc6A_dzWIRMpwuB1497LLBOhbB4GU7X04YXaB9B4Qth_bB042dxPIXbHONj8r6LCTlp6Mt3QQpj3c" height="11px" width="67px"><br>

<a href="mailto:baqueiro@ooyala.com" target="_blank"><font color="#134F5C">baqueiro@ooyala.com</font></a> | +52 (33) 3817-0861<br><a href="http://www.ooyala.com" target="_blank"><font color="#134F5C">www.ooyala.com</font></a> | <a href="http://www.ooyala.com/blog" target="_blank"><font color="#134F5C">blog</font></a> | <a href="http://www.twitter.com/ooyala" target="_blank"><font color="#134F5C">@ooyala</font></a></div>


<br>