Thanks Ernest, I had forgotten about the store/fetch combination.
That is slightly nicer than using the rete.add(object) method
(which involves locating the object).
David

----- Original Message ----- From: "Ernest Friedman-Hill" <[email protected]>
To: "jess-users" <[email protected]>
Sent: Wednesday, July 29, 2009 10:47 AM
Subject: Re: JESS: Obtaining an object from the application environment


If the Java caller can supply the object, you could simply put it into a Variable, put the Variable into the jess.Context and call a Jess function to pass that object to the function. Alternatively there are the Rete store() and fetch() methods for passing things in/out of the engine.

But if the Java code can't or won't supply the object deliberately, this is pretty much the same problem as doing this from Java code, without Jess involved at all -- that is to say, not possible, as far as I know (except by using extreme measures like the Java VM debugger interface).




--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [email protected]'
in the BODY of a message to [email protected], NOT to the list
(use your own address!) List problems? Notify [email protected].
--------------------------------------------------------------------

Reply via email to