I think Garcia Joey J Contr SMC Det 12/VOC wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Greetings:

> We used this line of code to try to get our ResultBean back out:
>  Value rbValue = rete.fetch("JessResults");
> 

   ResultBean bean =
        (ResultBean) rbValue.externalAddressValue(null);

You can use "null" for the Context as long as you know that rbValue
doesn't refer to a Jess variable; the return value of "fetch" never
will, so this is always safe. If you need a real Context, you can call
rete.getGlobalContext() to get one.

You're right, by the way; the documentation isn't very clear. The Jess
book is a lot better in this regard! After the book is published, I'm
going to try to get permission to distribute the electronic version of
Part II (which is the Jess reference part).

---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

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