File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Java Products and Servers and the fly likes JESS! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "JESS!" Watch "JESS!" New topic


assia assiatoune

Joined: Jul 11, 2004
Posts: 16
hello mr HILL,
I have a big problem with the command :"batch ...."
I used it to load the first file : file1.clp
then I exeuted it(file1);
after that I used it to load: File2.clp
and I executed it(file2),
after I used it agin to load the first file :file1.clp
and when I execute it(file1) , the second one is executing.

why? what must I do?

waiting for your answer. thanks!
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

If file2 contains rules, then batch-ing the file will build those rules into the Rete network. They don't go away; you can subsequently call "run" and run those rules many times.

If you want to clear Jess and start over, use the "clear" function to do so.

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: JESS!
It's not a secret anymore!