JESS: Userfunctions and Jess - Java type conversion

2005-11-30 Thread erich.oliphant
Hi, I'm trying to understand the type conversion model a bit better. I've written a Userfunction (ognl-get) that takes an object, and Object Graph Notation Language (OGNL) expresssion, and any additional variables. The OGNL evaluator returns a plain Object which I just wrap in a jess.Value "new V

Re: JESS: Userfunctions and Jess - Java type conversion

2005-11-30 Thread ejfried
If you can a Java function from Jess, and that function returns a java.lang.Boolean, then Jess will turn it into a Jess boolean value (the symbols TRUE or FALSE, of type RU.SYMBOL). On the other hand, new Value(Boolean.TRUE) will give you a Value of type RU.JAVA_OBJECT that contains a java.lang.Bo