Ooops!
Thanks a lot and yes, I need a new pair of glasses..!





Date: Thu, 4 Mar 2010 11:34:14 -0500
From: ed.tirelli@gmail.com
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] Help with LHS expression


   You have a typo: double quote in here -> numérico""

   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.

   Edson

2010/3/4 Yamil Bracho <yamilbracho@hotmail.com>
Hi
I have a map that contains some data and I would like to check if a value inside this map is numeric. 
I wrote :

rule "Header - NumeroArchivo Numerico"
  salience 50
  when
    Map( this["NU_ARCHIVO"] not matches "[0-9]\{3\}")
  then
     listBitacora.add(new BitacoraDTO($map.get("_NUMLINE_"),
                                      "Error en el Encabezado: El número del archivo debe ser numérico""));
end


But I got 

[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"

I also try:

rule "Header - NumeroArchivo Numerico"
  salience 50
  when
    Map($nuArchivo : this["NU_ARCHIVO"]),
    not (eval($nuArchivo not matches "[0-9]\{3\}"))
  then
     listBitacora.add(new BitacoraDTO($map.get("_NUMLINE_"),
                                      "Error en el Encabezado: El número del archivo debe ser numérico""));
end

without success

please somebody help me...

TIA

Yamil


Actualízate gratis al nuevo Internet Explorer 8 y navega más seguro

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




--
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com


¿Te gustaría tener Hotmail en tu móvil Movistar? ¡Es gratis!