We have a real time system, the basic operational loop is:

While(true)
   Get one fact from the input stream
   Assert it and run till no more activations.
     This running will alter the state of the system, and
     have side effects outside of the rules system.

At some point in time we which to alter a rule, when we execute a
defrule (to modify an existing rule or add a new behavior), the rule
will match on all the existing facts in the system. Since the system has
already made decisions on the existing facts, running all these
activations is not desired, so we wish to clear the activation list.

To go further, there may be times when we need to alter a deftemplate.
Since this is not supported directly, it is more complex. To do this, we
proposed to create a new Rete, add all the existing and modified
deftemplates, rules, and facts (doing something for migration of the
altered facts). Once again there will be a list of activations, but we
do not whish these to fire.

Thanks,
Jon

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 28, 2006 6:57 PM
To: [email protected]
Subject: Re: JESS: Any way to clear out all the activations.

I think Jon Weygandt wrote:
> Is there any way to clear out all the activations in the Rete object
> (using the Java API) while preserving all the facts and not causing
any
> of the rules to actually fire?
> 

No, but why would you want to? Maybe I can help you achieve whatever
goal you're really after.


---------------------------------------------------------
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://herzberg.ca.sandia.gov

--------------------------------------------------------------------
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]
--------------------------------------------------------------------


--------------------------------------------------------------------
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