Hi There,
I am facing a weird issue, following rule doesn't run
rule "test"
dialect "mvel"
when
Experience( primary == "SY") )
then
log.debug("SY");
end
but following works. :confused:
rule "test1"
dialect "mvel"
when
exp : Experience( eval(exp.getPrimary() == "SY") )
then
log.debug("SY");
end
Whats the difference between the two,mean why second works but the first one
doesnt? I have used former expression in many other rules but haven't
encountered this problem.
Advance thanks for your response.
--MRaj
--
View this message in context:
http://www.nabble.com/Difference-between-constraint-within-a-pattern-and-...
Sent from the drools - user mailing list archive at
Nabble.com.