There are many ways to do this. One of the easiest is to provide a
function or object in Java which Jess code can call to store the
results: i.e., put a java.util.Vector in a well known place (for
instance, store() it under some known name!) and have Jess code call
fetch to get the Vector, and then call addElement() on that Vector
with the desired data. After running, you fetch() the Vector from Java
code and retrieve the results.

I think SMPS wrote:
...
> 
> rete.executeCommand(
>                     "(defrule findderv" +
>       "(Knowledge ?x)"+
>       "(Problem ?x)"+
>       "=>"+
>       "(assert (derivedattrib ?x))"+
>       "(printout t  ?x crlf))"
>     );
...
> as a result of firing this rule certain facts would be asserted like
> 
> derivedattrib not
> derivedattrib working
> ...........
> 
> we want to retrive these facts in java. Can you suggest some method for
> doing
> so. If we use a store and fetch command in the rule findderv only one
> value can be stored.

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