[rules-users] Using trim in LHS cause "Exception executing predicate..."

ferry97 vri_97 at yahoo.com
Tue Mar 25 02:41:50 EDT 2008


Hi,
I have a rule

rule "rule 1"
when
   Cheese(color.trim == "yellow")
then
   System.out.println("hmm.. its yellow");

will raise :

 org.drools.spi.ConsequenceException: org.drools.RuntimeDroolsException:
Exception executing predicate
org.drools.base.mvel.MVELPredicateExpression at 19adc2c

I suspect it's because of the "trim" function. Does it allowed ? Is there
any alternative ?
I need this function because "Cheese" is loaded from database, and all the
fields comes with space trailing.
Thanks
-- 
View this message in context: http://www.nabble.com/Using-trim-in-LHS-cause-%22Exception-executing-predicate...%22-tp16269155p16269155.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list