Hello everyone,

For a proof-of-concept application i'm trying to re-load a directory filled
with .clp files whenever the state of the directory changed (either, file
changed, removed or added).

This, i try to do when the engine is rununtilhalt().

I did this by:
1. removing all rules ( rete.eval (bind ?iter ((engine) listDefrules))(while
(?iter hasNext) (bind ?rule (?iter next))(undefrule (?rule getName))) )

2. reloading all rules ( RETE.batch("file.clp") )

The problem with this solution is that; because all rules are removed - and
re-insterted, all (true) rules will be executed again...

My question now, is there another - better way of refreshing my rules during
runtime?

Kind regards,
Ivo Jonker

Reply via email to