Re: [rules-users] String length check

2011-11-13 Thread Davide Sottara
I'd also use the int 8 instead of the String 8 :) -- View this message in context: http://drools.46999.n3.nabble.com/String-length-check-tp3502269p3505833.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing

Re: [rules-users] String length check

2011-11-13 Thread lansyj
@Davide, I'm using the guided editor and I am putting the value as 8 But the generated source shows 8. Not sure of this is a defect in Drools or something that I'm doing incorrectly. -- View this message in context: http://drools.46999.n3.nabble.com/String-length-check-tp3502269p3506079.html

Re: [rules-users] String length check

2011-11-13 Thread Michael Anstis
Guvnor used to escape all literals with quotation marks before 5.2. There have been numerous fixes to the BRL Guided Editor for 5.2 onwards. I would definitely recommend an upgrade. Can you please advise if you used an expression for your nested accessor or sub-field constraints? Thanks, Mike

Re: [rules-users] String length check

2011-11-12 Thread Gabor Szokoli
I can't try in mvel/drools right now, but String has length(), not size. On Sat, Nov 12, 2011 at 1:29 PM, lansyj lans...@gmail.com wrote: Hi folks, I'm trying to create a guided rule which treats customers differently based on the length of their customer ID. The generated rule source is as