Re: [rules-users] Difference between constraint within a pattern and eval

2007-10-26 Thread Mohan
Found the problem, it something do with the getters declared as final. Here is test case Test1 DRL: package test.drools; import test.Experience; rule "test1" dialect "mvel" when exp : Experience( primary == "something" ) then System.out.p

Re: [rules-users] Difference between constraint within a pattern and eval

2007-10-25 Thread vdelbart
I try with this and it's working. I don't know why your case doesn't work. public class Experience { private String primary; public String getPrimary() { return primary; } public void setPrimary(String primary) { this.primary= prima

Re: [rules-users] Difference between constraint within a pattern and eval

2007-10-25 Thread Mohan
Object is siimple java bean, property "primary" is String. "))" is a typo I made in this thread corrected below is how i have it when I run it. rule "test" dialect "mvel" when Experience( primary == "SY") then log.debug("SY"); end

Re: [rules-users] Difference between constraint within a pattern and eval

2007-10-25 Thread vdelbart
Hi, what's your Experience object ? Your property "primary" is a String ? maybe it's this : when Experience( primary == "SY") ) ??? V. -- View this message in context: http://www.nabble.com/Difference-between-constraint-within-a-pattern-and-eval-tf4688141.html#a134030

Re: [rules-users] Difference between constraint within a pattern and eval

2007-10-24 Thread Mohan
Forgot to mention, I use 4.0.1 -- View this message in context: http://www.nabble.com/Difference-between-constraint-within-a-pattern-and-eval-tf4688141.html#a13399931 Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mail

[rules-users] Difference between constraint within a pattern and eval

2007-10-24 Thread Mohan
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