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.

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to