[rules-users] Help with LHS expression
Edson Tirelli
ed.tirelli at gmail.com
Thu Mar 4 11:34:14 EST 2010
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>
> 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<http://www.microsoft.com/spain/windows/internet-explorer/default.aspx>
>
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100304/e7ad4d9b/attachment.html
More information about the rules-users
mailing list