json-rules-engine
Advanced tools
Changelog
6.1.0 / 2021-06-03
Changelog
6.0.1 / 2021-03-09
failureEvents
in EngineResult.Changelog
6.0.0 / 2020-12-22
path
s, use the new pathResolver
feature. Read more here. Add the following to the engine constructor:
const pathResolver = (object, path) => {
return selectn(path)(object)
}
const engine = new Engine(rules, { pathResolver })
(fixes #205)on('success')
, on('failure')
, and Rule callbacks onSuccess
and onFailure
now honor returned promises; any event handler that returns a promise will be waited upon to resolve before engine execution continues. (fixes #235)rule.event
property renamed. Use rule.getEvent()
to avoid breaking changes in the future.success-events
fact used to store successful events has been converted to an internal data structure and will no longer appear in the almanac's facts. (fixes #187)pathResolver
option for resolving condition path
properties. Read more here. (fixes #210)failureEvents
, an array of all failed rules events. (fixes #192)results
, an array of RuleResults for each successful rule (fixes #216)failureResults
, an array of RuleResults for each failed rule