Skip to content

Commit 69b36cd

Browse files
committed
Closes #385: Call EvaluateRuleEntry listeners when rules evaluated in FindMatchingRules
1 parent 8274ea9 commit 69b36cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

engine/GruleEngine.go

+2
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@ func (g *GruleEngine) FetchMatchingRules(dataCtx ast.IDataContext, knowledge *as
259259
if can {
260260
runnable = append(runnable, v)
261261
}
262+
// notify all listeners that a rule's when scope has been evaluated.
263+
g.notifyEvaluateRuleEntry(0, v, can)
262264
}
263265
}
264266
log.Debugf("Matching rules length %d.", len(runnable))

0 commit comments

Comments
 (0)