On Feb 9, 2007, at 12:15 PM, Shi Paul wrote:
Hi there,
Is there an API to determine the rule engine has completed its
work. I'd like to call rete.halt() to stop the engine, but I'm
wondering what if the engine is still firing rules when I call
that. Can anybody shed some lights on it?
Jess doesn't create any threads on its own. If you call rete.run(),
then run() returns when, and only when, there are no more rules to
fire. If you have multiple threads, then you can set up your own
notification scheme based on that.
---------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://www.jessrules.com
--------------------------------------------------------------------
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]
--------------------------------------------------------------------