[rules-users] Help with LHS expression
Yamil Bracho
yamilbracho at hotmail.com
Thu Mar 4 12:55:19 EST 2010
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 at gmail.com
To: rules-users at 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 at hotmail.com>
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
Actualízate gratis al nuevo Internet Explorer 8 y navega más seguro
_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
Edson Tirelli
JBoss Drools Core Development
JBoss by Red Hat @ www.jboss.com
_________________________________________________________________
Ahora Messenger en tu Blackberry® 8520 con Movistar por 0 €. ¿A qué esperas?
http://serviciosmoviles.es.msn.com/messenger/blackberry.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100304/9299ee07/attachment.html
More information about the rules-users
mailing list