<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. </div><div>I wrote :</div><div><br></div><div><div>rule "Header - NumeroArchivo Numerico"</div><div> salience 50</div><div> when</div><div> Map( this["NU_ARCHIVO"] not matches "[0-9]\{3\}")</div><div> then</div><div> listBitacora.add(new BitacoraDTO($map.get("_NUMLINE_"),</div><div> "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 </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> salience 50</div><div> when</div><div> Map($nuArchivo : this["NU_ARCHIVO"]),</div><div> not (eval($nuArchivo not matches "[0-9]\{3\}"))</div><div> then</div><div> listBitacora.add(new BitacoraDTO($map.get("_NUMLINE_"),</div><div> "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>