This has been discussed on the mailing list several times in recent
memory, so you might want to check the archives at

   http://www.mail-archive.com/[email protected]

Right now the best you can do is use (save-facts) then (bsave) to
store, and (bload) followed by (load-facts) to restore. This isn't
perfect but it's the only thing you can do right now.

Your theory about not saving the rules and templates is, by the way,
invalid. The facts can't exist without the templates, and the
activations can't exist without the rules. Any method which saves
facts and activations must necessarily save all the other stuff as
well. 

In any event, the next release, Jess 6.0a3, will definitely support
full serialization, and bload and bsave will save -everything- except
for the I/O router table. I'd expect to see Jess 6.0a3 before the end
of January.


I think Shi Quan He wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]

> I am in a situation that I need to save the current state of the
> Rete engine (including the global context, facts, and activations)
> so that the state can be resumed at the later time and more facts to
> be asserted.  For efficiency reason, the rules and templates should
> be not saved so the restored state will use the same set of rules.
> I know that the bsave/bload command only saves/restores the rules
> and templates but not the facts and activations.  That is exactly
> the opposite to what I want to achieve.  Is there an easy solution
> to this problem?  Thanks, Shi Quan



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