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&#39;re seeing.<br><br>try:<br><br><div>rule &quot;Header - NumeroArchivo Numerico&quot;</div>
<div>  salience 50</div><div>  when</div><div>  
  Map( this[&quot;NU_ARCHIVO&quot;] not matches &quot;[0-9]\{3\}&quot;)</div>  then<div>    listBitacora.add(new BitacoraDTO($map.get(&quot;_NUMLINE_&quot;),</div><div>  
                                    &quot;Error en el Encabezado: El número 
del archivo debe ser numérico&quot;));</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">&lt;<a href="mailto:yamilbracho@hotmail.com">yamilbracho@hotmail.com</a>&gt;</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 &quot;Header - NumeroArchivo Numerico&quot;</div><div>  salience 50</div>
<div>  when</div><div>    Map( this[&quot;NU_ARCHIVO&quot;] not matches &quot;[0-9]\{3\}&quot;)</div><div>  then</div><div>     listBitacora.add(new BitacoraDTO($map.get(&quot;_NUMLINE_&quot;),</div><div>                                      &quot;Error en el Encabezado: El número del archivo debe ser numérico&quot;&quot;));</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 &#39;&#39;[0,-1]: [ERR 103] Line 0:-1 rule &#39;end_key&#39; failed predicate: {(validateIdentifierKey(DroolsSoftKeywords.END))}? in rule &quot;Header - NumeroArchivo Numerico&quot;</div>
<div><br></div><div>I also try:</div><div><br></div><div><div>rule &quot;Header - NumeroArchivo Numerico&quot;</div><div>  salience 50</div><div>  when</div><div>    Map($nuArchivo : this[&quot;NU_ARCHIVO&quot;]),</div><div>
    not (eval($nuArchivo not matches &quot;[0-9]\{3\}&quot;))</div><div>  then</div><div>     listBitacora.add(new BitacoraDTO($map.get(&quot;_NUMLINE_&quot;),</div><div>                                      &quot;Error en el Encabezado: El número del archivo debe ser numérico&quot;&quot;));</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>