Re: [rules-users] Property Navigation

2008-05-07 Thread Alessandro Lazarotti
Yes, it's same.  See also, the name of rule with error not appear... Edson, I describe this in Jira too? Michael B. escreveu: Verified this, in my example if I change the line to Bar.setFoo(null) I get the following error in my test case: Exception executing predicate [EMAIL PROTECTED]

Re: [rules-users] Property Navigation

2008-05-07 Thread Michael B.
Verified this, in my example if I change the line to Bar.setFoo(null) I get the following error in my test case: Exception executing predicate [EMAIL PROTECTED] org.drools.RuntimeDroolsException: Exception executing predicate [EMAIL PROTECTED] at org.drools.rule.PredicateConstraint.isAllo

Re: [rules-users] Property Navigation

2008-05-07 Thread Edson Tirelli
Really? That is a surprise to me... we need to handle that... Maybe you can open a JIRA for us? Thanks, Edson 2008/5/6 Alessandro Lazarotti <[EMAIL PROTECTED]>: > Thanks Michael, I simulate.. your rule fire with successful. > > I discovered the problem. The object in property (li

Re: [rules-users] Property Navigation

2008-05-07 Thread Michael B.
Alessandro Lazarotti wrote: > > Thanks Michael, I simulate.. your rule fire with successful. > > I discovered the problem. The object in property (like Foo in your > example), when null, it's not throws NullPointerException, but > "org.mvel.PropertyAccessException: unable to resolve property

Re: [rules-users] Property Navigation

2008-05-06 Thread Alessandro Lazarotti
Thanks Michael, I simulate.. your rule fire with successful. I discovered the problem. The object in property (like Foo in your example), when null, it's not throws NullPointerException, but "org.mvel.PropertyAccessException: unable to resolve property". With that, I never imagined that the pro

Re: [rules-users] Property Navigation

2008-05-06 Thread Michael B.
Alessandro: I wrote a test case and some classes around your example and mailed them to you, I was not able to get them to post on this list for some reason. Thanks...Michael Alessandro Lazarotti wrote: > > > > > > > > Hi, Michael... > The code that I wrote has a property "name" and n

Re: [rules-users] Property Navigation

2008-05-06 Thread Michael B.
Okay, I wrote a test case around the following and it works fine so let me know if this isnt what you are working with... Foo Class public class Foo { private String m_name; public String getName() { return m_name; } public void setName(String n

Re: [rules-users] Property Navigation

2008-05-06 Thread Alessandro Lazarotti
Hi, Michael... The code that I wrote has a property "name" and not "nome". Sorry, the example not is the same that the Exception. But ocurr the same error. org.drools.RuntimeDroolsException: Exception executing predicate [EMAIL PROTECTED] Caused by: org.mvel.CompileException: unable to resolv

Re: [rules-users] Property Navigation

2008-05-06 Thread Michael B.
According to your error it appears you had a typo somewhere. The error you pasted in was looking for the property nome instead of name. Alessandro Lazarotti wrote: > > If I've the simple classes: > > public class ObjectBar{ public String name; gets/sets} > > public class ObjectFoo{ public

[rules-users] Property Navigation

2008-05-06 Thread Alessandro Lazarotti
If I've the simple classes: public class ObjectBar{ public String name; gets/sets} public class ObjectFoo{ public ObjectBar bar; gets/sets } ... and ObjectFoo this in WorkingMemory. It's not possible navigate in objectFoo for make constraint in objectBar? Example: rule "Teste" no-loop true