I think Skokan, Ladislav wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hello all
>
> I am faced to a problem with deffacts. I am using deffacts in my program.
> In current version, the deffacts are stored in the source code of my
> program, but new version has deffacts generated by another utility. For this
> reason I do not want to include them in the main source code. I must use
> deffacts.
>
> I have tried to use (load-facts ...) but I do not know how to load deffacts.
(load-facts) is not appropriate for reading deffacts.
>
> Another possibility is to use (batch ...), but there is a problem with
> (reset). If I do it after the command in the main source, the facts are not
> loaded.
This is an ambiguous statement, so I don't know what you mean to say
you're doing.
If I do it in the external file with the generated deffacts, Jess
> behaves strange.
Again, "behaves strange" is useless; we can't tell what's happening
from this description.
>
> Does anybody have solution or experiences ?
>
Either putting (reset) at the end of the batched file of deffacts, or
calling rete.executeCommand("(reset)") or rete.reset() after issuing
the batch command, will work just fine. Let us know precisely what
you're doing and what's happening and I'm sure we can tell you where
you're going wrong.
> Regards,
> Laco Skokan.
>
>
---------------------------------------------------------
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]
---------------------------------------------------------------------