Hi Yamil,<br><br>It looks to me like you might have another error in your first rule. There are two closing double quotes in your RHS. This could cause the error you're seeing.<br><br>try:<br><br><div>rule "Header - NumeroArchivo Numerico"</div>
<div> salience 50</div><div> when</div><div>
Map( this["NU_ARCHIVO"] not matches "[0-9]\{3\}")</div> then<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>For more information: <br><a href="http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-expert/html/ch04.html">http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-expert/html/ch04.html</a> <br>
Section: 4.4.2.3. 103: Failed predicate<br><br></div>Hope it helps!<br>Enda<br><br><div class="gmail_quote">2010/3/4 Yamil Bracho <span dir="ltr"><<a href="mailto:yamilbracho@hotmail.com">yamilbracho@hotmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); 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. </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="_blank">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" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Enda J Diggins<br>