Skip to content

Commit

Permalink
Closes hyperjumptech#385: Call EvaluateRuleEntry listeners when rules…
Browse files Browse the repository at this point in the history
… evaluated in FindMatchingRules
  • Loading branch information
corylation committed Jul 13, 2023
1 parent 8274ea9 commit 69b36cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engine/GruleEngine.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ func (g *GruleEngine) FetchMatchingRules(dataCtx ast.IDataContext, knowledge *as
if can {
runnable = append(runnable, v)
}
// notify all listeners that a rule's when scope has been evaluated.
g.notifyEvaluateRuleEntry(0, v, can)
}
}
log.Debugf("Matching rules length %d.", len(runnable))
Expand Down

0 comments on commit 69b36cd

Please sign in to comment.