aspose file tools
The moose likes Other Java Products and Servers and the fly likes JESS! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Reply 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: 24061
    
  13

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: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JESS!
 
Similar Threads
Moving files in java
file renameTo() method
renameTo()
Logic or syntax
Runtime.getRuntime().exec doesnt execute some files