Sorry it took me so long to answer this for you.

The Rete class has a method getActivationSemaphore(). If you're holding the lock on that object, then no rules can be fired.

On Nov 28, 2007, at 12:07 AM, Shi Paul wrote:

Hi,
Is there a way to temporarily holding off rule firing when some facts get deleted and some facts get added in the same time? I'm using Jess in 'runUntilHalt' mode and I know there is a workaround for my question which is to assert a (updating-facts) when batch facts get updated and then remove it afterwards, but it's really ugly to incorporate this (not (updating-facts)) in the LHS. I'm wondering if Jess has some magic attribute to set or API to call to achieve this purpose?

Thanks,
Paul

Have fun while connecting on Messenger! Click here to learn more.

---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences          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]
--------------------------------------------------------------------

Reply via email to