[rules-users] Help with LHS expression
Yamil Bracho
yamilbracho at hotmail.com
Thu Mar 4 10:54:23 EST 2010
HiI 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
_________________________________________________________________
Escucha a quienes ya han probado Windows 7 ¡Hazlo aquí!
http://www.sietesunpueblodeexpertos.com/index_windows7.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100304/eab2fca7/attachment.html
More information about the rules-users
mailing list