Re: [rules-users] Property Navigation

2008-05-07 Thread Michael B.
ample), when null, it's not throws NullPointerException, but >> "org.mvel.PropertyAccessException: unable to resolve property". >> With that, I never imagined that the problem was nullPointer, but I >> thought about any access visibility (duh!). >> >> []'s >> Alessa

Re: [rules-users] Date arit hmetic in “when†session

2008-05-07 Thread Michael B.
MyFact( $value : value ) > eval( $value.before(DateHelper.getModifiedDate(-6, "MONTHS"))) > > The use of a non-time-constant inline eval (or return value > predicates) > causes unpredictable behavior in the engine. > > []s > Edson > > > 2008/5/7

Re: [rules-users] Property Navigation

2008-05-07 Thread Michael B.
ng to this board as I seem to have junked the thread up a bit lol > > > Michael B. escreveu: >> 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 C

Re: [rules-users] Date arith metic in “when” session

2008-05-07 Thread Michael B.
I dont know if this is still outstanding since the original post seems to have disappeared, but this is what I did during my proof of concept that I am going through: In a helper class (i.e. DateHelper) I had this method: public static Date getModifiedDate(int amount, String unit) {

Re: [rules-users] Property Navigation

2008-05-06 Thread Michael B.
el.CompileException: unable to resolve property: name > Caused by: org.mvel.PropertyAccessException: unable to resolve > property:name > > > > > Michael B. escreveu: > > According to your error it appears you had a typo somewhere. The error > you > pasted in was looking for the

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 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