json-rules-engine
json-rules-engine copied to clipboard
Ability to specify different events for failure and success
How can I return different event params depending on whether the rule succeeds or not? Thanks
This https://github.com/CacheControl/json-rules-engine/blob/master/examples/09-rule-results.js?
Sadly, the logic is not entirely encodable in JSON, you have to rely on the on('failure',....) mechanism of the engine.