-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
Right now you can freely overwrite a preexistent closure in rules-js by simply providing the overwrite flag
engine.add("closure-that-changes", definition, { overwrite: true });
Then when you invoke it directly you will exercise the modified behavior
engine.process("closure-that-change", fact);
However it won't affect preexistent higher order closures which are composed with "the-closure-that-changed".
engine.process("higher-order-closure", fact); // exercise old "closure-that-changes"!!! =(