Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to specify different events for failure and success #284

Open
carapai opened this issue Oct 24, 2021 · 1 comment
Open

Ability to specify different events for failure and success #284

carapai opened this issue Oct 24, 2021 · 1 comment
Milestone

Comments

@carapai
Copy link

carapai commented Oct 24, 2021

How can I return different event params depending on whether the rule succeeds or not?
Thanks

@akmjenkins
Copy link

akmjenkins commented Oct 29, 2021

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.

@chris-pardy chris-pardy added this to the version 7 milestone Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants