-
Notifications
You must be signed in to change notification settings - Fork 179
Closed
Description
I believe that is the issue here:
// define the rule
flow.rule("RULE", criteriaArray,
function(facts) {
_self = this;
// do some fact modification asynchronously
ruleAction.run(facts.p, rg.then.params, function(err, results) {
// alert the engine the rule has been modified
_self.modify(facts.p);
_self.retract(facts.p);
});
});So whats happening here, is the async function ruleAction.run is run, BUT the rule has already fired, which moves the pointer on the linked list then we try to call _self.modify but the fact has already been unlinked.
So we have an async call, with no way to do a callback.
Metadata
Metadata
Assignees
Labels
No labels