[rules-users] memberOf in a eval statement (dialect mvel)

vdelbart delbart.v at mipih.fr
Fri Dec 7 10:43:07 EST 2007


Hi,

I want to use the keyword memberOf in an eval statement (with dialect =
mvel).

rule "Your 5 Rule"
	dialect "mvel" 
	when	
		 $l:ArrayList()	 
		 eval("test" memberOf $l)
	then 
		#actions
		System.out.println("OK");
end

but it doesn't work, and I don't understand the error :
Caused by: java.lang.ClassCastException: java.lang.String
	at
org.drools.base.mvel.MVELEvalExpression.evaluate(MVELEvalExpression.java:36)
	at org.drools.rule.EvalCondition.isAllowed(EvalCondition.java:72)
	... 12 more

Thanks for your help,

V.
-- 
View this message in context: http://www.nabble.com/memberOf-in-a-eval-statement-%28dialect-mvel%29-tf4962683.html#a14214524
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list