We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 65acf2a + 396c41d commit 3e36734Copy full SHA for 3e36734
lib/node-rules.js
@@ -49,6 +49,7 @@
49
RuleEngine.prototype.execute = function(fact, callback) {
50
//these new attributes have to be in both last session and current session to support
51
// the compare function
52
+ var thisHolder = this;
53
var complete = false;
54
fact.result = true;
55
var session = clonedeep(fact);
@@ -93,6 +94,7 @@
93
94
}
95
96
};
97
+ _rules = thisHolder.activeRules;
98
if (x < _rules.length && complete === false) {
99
var _rule = _rules[x].condition;
100
_rule.call(session, API, session);
0 commit comments