<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Ooops!<div>Thanks a lot and yes, I need a new pair of glasses..!</div><div><br></div><div><br><div><br><br><hr id="stopSpelling">Date: Thu, 4 Mar 2010 11:34:14 -0500<br>From: ed.tirelli@gmail.com<br>To: rules-users@lists.jboss.org<br>Subject: Re: [rules-users] Help with LHS expression<br><br><br>&nbsp;&nbsp; You have a typo: double quote in here -&gt;  numérico""<br><br>&nbsp;&nbsp; Whenever the error says something like "Line 0:-1" means the lexer did not found the end character in a token, so you have for example an open quote for strings, without the closing quote.<br>
<br>&nbsp;&nbsp; Edson<br><br><div class="ecxgmail_quote">2010/3/4 Yamil Bracho <span dir="ltr">&lt;<a href="mailto:yamilbracho@hotmail.com">yamilbracho@hotmail.com</a>&gt;</span><br><blockquote class="ecxgmail_quote" style="padding-left:1ex">




<div>
Hi<div>I have a map that contains some data and I would like to check if a value inside this map is numeric.&nbsp;</div><div>I wrote :</div><div><br></div><div><div>rule "Header - NumeroArchivo Numerico"</div><div>&nbsp;&nbsp;salience 50</div>
<div>&nbsp;&nbsp;when</div><div>&nbsp;&nbsp; &nbsp;Map( this["NU_ARCHIVO"] not matches "[0-9]\{3\}")</div><div>&nbsp;&nbsp;then</div><div>&nbsp;&nbsp; &nbsp; listBitacora.add(new BitacoraDTO($map.get("_NUMLINE_"),</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"Error en el Encabezado: El número del archivo debe ser numérico""));</div>
<div>end</div><div><br></div><div><br></div><div>But I got&nbsp;</div><div><br></div><div>[162,0]: [ERR 102] Line 162:0 mismatched input ''[0,-1]: [ERR 103] Line 0:-1 rule 'end_key' failed predicate: {(validateIdentifierKey(DroolsSoftKeywords.END))}? in rule "Header - NumeroArchivo Numerico"</div>
<div><br></div><div>I also try:</div><div><br></div><div><div>rule "Header - NumeroArchivo Numerico"</div><div>&nbsp;&nbsp;salience 50</div><div>&nbsp;&nbsp;when</div><div>&nbsp;&nbsp; &nbsp;Map($nuArchivo : this["NU_ARCHIVO"]),</div><div>
&nbsp;&nbsp; &nbsp;not (eval($nuArchivo not matches "[0-9]\{3\}"))</div><div>&nbsp;&nbsp;then</div><div>&nbsp;&nbsp; &nbsp; listBitacora.add(new BitacoraDTO($map.get("_NUMLINE_"),</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"Error en el Encabezado: El número del archivo debe ser numérico""));</div>
<div>end</div><div><br></div><div>without success</div><div><br></div><div>please somebody help me...</div><div><br></div><div>TIA</div><div><br></div><div>Yamil</div></div></div>                                               <br><hr>Actualízate gratis al nuevo Internet Explorer 8 y <a href="http://www.microsoft.com/spain/windows/internet-explorer/default.aspx">navega más seguro</a></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">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br> &nbsp;Edson Tirelli<br> &nbsp;JBoss Drools Core Development<br> &nbsp;JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br></div></div>                                               <br /><hr />¿Te gustaría tener Hotmail en tu móvil Movistar? <a href='http://serviciosmoviles.es.msn.com/hotmail/movistar-particulares.aspx' target='_new'> ¡Es gratis!</a></body>
</html>