[rules-users] can we mix java n mvel dialect in LHS

techy techluver007 at gmail.com
Tue Nov 4 15:11:43 EST 2008


Hello,
I have some drools beginner questions
1.what is default dialect if it is not specified?
2. can We mix java and mvel syntax in LHS?
Ex:
class Cheese(String type,Set<String> ingredients)
Is this valid LHS? 
when  cheese : Cheese(ingredients.getIngredients().size > 3,type ==
"American")

3. In my sample program , I have a following condition which never executes
even if i have  "sugar" ingredient. any help?
when cheese : Cheese(ingredients contains "sugar")
-- 
View this message in context: http://www.nabble.com/can-we-mix-java-n-mvel-dialect-in-LHS-tp20330087p20330087.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list