Dynamic Rule Results
See original GitHub issueHi
Is it possible to construct dynamic rule result. For example could
event: {
type: 'honor-roll',
params: {
message: 'Student made the athletics honor-roll'
}
}
message parameter be constructed in the runtime?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Create simpler and faster rules for dynamic groups - Azure AD
Simpler and more efficient rules result in better dynamic group processing times. When writing membership rules for dynamic groups, ...
Read more >Default values and dynamic rules - Infowise
Dynamic rules allow you to set values to columns dynamically and automatically, based on static values, other column values, functions and expressions and ......
Read more >Dynamic Rules - Spoofax
A dynamic rule definition is a regular (conditional) rewrite rule that is defined as part of a strategy rather than at top-level. The...
Read more >Dynamic Rules - Product Manual - 2.X - Reblaze Portal
The Dynamic Rules section defines security rulesets that evaluate various criteria over time. · Note that Dynamic Rules do not block requests; they...
Read more >Applying dynamic rule data managed in Excel to dataset
Applying dynamic rule data managed in Excel to dataset. Options ... When run, you get the results in the two output columns.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@waglik I think what you’re describing is more of a Dynamic Event rather than a Dynamic Rule Result.
Accessing the
almanac
orfactResult
withinonSuccess
should do the trick. YouronSuccess
function will have to contain the logic of how to build the dynamic events/results.onSuccess: https://github.com/CacheControl/json-rules-engine/blob/master/docs/engine.md#engineonsuccess-functionobject-event-almanac-almanac-ruleresult-ruleresult Usage of Alamanc within an
onSuccess
: https://github.com/CacheControl/json-rules-engine/blob/master/docs/almanac.md#retrieve-fact-values-when-handling-events Rule Result (contains factResult): https://github.com/CacheControl/json-rules-engine/blob/master/docs/rules.md#rule-resultsCouple options here to avoid event mutation impacting other engine runs: