JESS: Java Objects

2000-08-14 Thread Aditya Deshpande
How do I do this in JESS:Implement factory kind of a pattern wherein based on the property of ajavabean I get a class from JESS returneRegardsAditya

Re: JESS: Java Objects

2000-08-14 Thread ejfried
Do you just mean something like: (deffunction make-widget (?bean) (bind ?type (get ?bean aProperty)) (if (eq ?type "FOO") then (return (new Foo)) else (if (eq ?type "BAR") then (return (new Bar)) else (if (eq ?type "BAZ") then (return (new Baz) (return

Re: JESS: Java Objects

2000-08-14 Thread Aditya Deshpande
Precisely. Thanks. need to know is that do I need to store this object using "store" to be retreived by the Java Application or is there a direct way of doing this. The basic need is to create an object based on a certain pattern and return it to tha Java Program which has invoked JESS.