It's not a secret anymore!*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "JESS!" Watch "JESS!" New topic
Author

JESS!

assia assiatoune
Greenhorn

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
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

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]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JESS!