<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
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' target='_new'>navega más seguro</a></body>
</html>