Re: [rules-users] Help with LHS expression

2010-03-04 Thread Yamil Bracho
Ooops!Thanks a lot and yes, I need a new pair of glasses..! Date: Thu, 4 Mar 2010 11:34:14 -0500 From: ed.tire...@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 t

Re: [rules-users] Help with LHS expression

2010-03-04 Thread Enda J Diggins
Hi Yamil, 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're seeing. try: rule "Header - NumeroArchivo Numerico" salience 50 when Map( this["NU_ARCHIVO"] not matches "[0-9]\{3\}") then

Re: [rules-users] Help with LHS expression

2010-03-04 Thread Edson Tirelli
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 > Hi > I have a

[rules-users] Help with LHS expression

2010-03-04 Thread Yamil Bracho
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 whenMap( this["NU_ARCHIVO"] not matches "[0-9]\{3\}") then listBitacora.add(new BitacoraDTO($map.get("_NUMLINE_"),