[rules-users] Difference between constraint within a pattern and eval
Mohan
mohan at hp.com
Wed Oct 24 23:21:35 EDT 2007
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-eval-tf4688141.html#a13398822
Sent from the drools - user mailing list archive at Nabble.com.
More information about the rules-users
mailing list