(exit) calls the Java function System.exit(0), which should do an
orderly shutdown and flush all I/O buffers, etc, so no output should
be lost.

You don't indicate the error you recieved, but the only conceivable
errors from (exit) would be SecurityExceptions if you're running Jess
in an environment like an applet or an RMI server where a
SecurityManager is operating.

If you just want to stop rule processing, you can use (halt)
instead. (exit) tries to stop the JVM altogether.


I think Christo Andonyadis wrote:
> 
> As a followup to the use of the "exit" function...
> I just added
> (exit) 
> to the right hand side of a terminal rule.
> I got an error when running the rules.
> Am I using "exit" incorrectly?
> 
> Thanks
> ---------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the
> list. List problems? Notify [EMAIL PROTECTED]
> ---------------------------------------------------------------------
> 
> 


---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9214                  [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. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to