[rules-users] Matching against regex failing?

2012-10-18 Thread qwertyqwerty
Hi in my decision table in the action column i want to validate a value against a regex, and return the boolean back as a response. The condition i have is: eval($t.getTestVal() matches("[A-Z")) The DRL that gets generated is: eval($t.getTestVal() matches(\"[A-Z\"))); It seems to be adding

Re: [rules-users] mismatched input '==' in rule Employee1_11"

2012-10-17 Thread qwertyqwerty
Hi I am getting the same error with my spreadsheet Errors when compiling rules [8,36]: [ERR 102] Line 8:36 mismatched input '==' in rule "Validation Rules_12" I have attached my spreadsheet. What i am trying to do is iterate over an arraylist of objects(object contains name, value). Then compar

Re: [rules-users] Decision Table Help

2012-10-15 Thread qwertyqwerty
Hi i have had another go at this,trynig to learn DRL and hthen applying it to my spreadsheet. The below is what i have so far: in java i create: List list = new ArrayList(); Car o1 = ... Car o2 = ... list.add(o1); list.add(o2); Test t = new Test(list); Car is: (name, value) DRL Rules: ru

Re: [rules-users] Decision Table Help

2012-09-06 Thread qwertyqwerty
Hi laune Thanks for the reply, and apologies for the bad syntax in my original mail. To answer your questions: * Is Test the same as TEST? If not, what's Test supposed to do? - Yes, Test is the same as TEST. * You have two bindings to t. - There are two bindings, becuase the first I want

Re: [rules-users] Decision Table Help

2012-09-03 Thread qwertyqwerty
I wasnt asking for people to be compilers or parsers, what I was asking for was some general pointers. if you think the syntax is wrong then a pointer as to where i was going wrong would help rather than just saying "your syntax looks downright wrong" -- View this message in context: http://dr

Re: [rules-users] Decision Table Help

2012-09-03 Thread qwertyqwerty
could anyone point me in the right direction with this I have my arraylist of objects (object contains name, value, response). I want to loop through the list and set the response on the object based on the names, values. Below is my go at setting this up. Can somone take a look and see if this

[rules-users] Decision Table Help

2012-08-20 Thread qwertyqwerty
hi I was wondering if I could get some help on how to achieve something using an Excel based decision table to do the following: I have an ArrayList of Objects. The Object will contain: name, value, result In my spreasheet i need to check to see if the value confroms to a particular regex, and

Re: [rules-users] Ant Task to pre-compile xls spreadsheet

2011-08-23 Thread qwertyqwerty
Hi there thanks for the reply. I am unable to find the two abc jars, can you point me in the right direction for these? many thanks, -- View this message in context: http://drools.46999.n3.nabble.com/Ant-Task-to-pre-compile-xls-spreadsheet-tp3275067p3278239.html Sent from the Drools: User forum

[rules-users] Ant Task to pre-compile xls spreadsheet

2011-08-22 Thread qwertyqwerty
hi all I am looking for a sample ant script which shows how an excel spreadsheet can be precompiled and also the dependencies on the class path that are required for it, can anyone poit me in the right direction? Thanks, -- View this message in context: http://drools.46999.n3.nabble.com/Ant-Tas