beginnerEasy Start
Dynamic Business Rule
The flow demonstrates the use of the Dynamic Business Rule node and shows how to invoke a set of rules defined in a configuration list. The advantage is that you can easily add more rules.
David Škarka
Template author
This Decision Flow executes a dynamic set of rules predefined by a configuration list. The advantage of this approach is the ability to easily add or modify rules without changing the main workflow logic.
Solution components
- A Decision Table named Rules List functions as a configuration registry; it identifies which specific rules (by alias) should be run based on an input filter (e.g., "all" or "AB only").
- Three Decision Tables named Rule A, Rule B, and Rule C serve as the executable logic, where each assigns a specific text message (e.g., "Hello this is rule A") to the result.
- A Decision Flow named Dynamic Business Rule orchestrates these components.
The Rules Configuration List Decision Flow orchestrates the logic in the following steps:
- Retrieve Configuration: It calls the Rules List table using a provided filter to determine which rule aliases are active for the current request.
- Dynamic Evaluation: It iterates through the list of retrieved aliases and dynamically evaluates the corresponding rules (Rule A, Rule B, or Rule C) using a "First Match" strategy per item.
- Aggregation: It collects the output messages from every executed rule into a consolidated list called collectedMessages.
- Final Assignment: It assigns the collected list of messages to the final output object.
More Templates
See Other Templates
financial servicessuggested
A/B Testing
Discover a simple way to assign a test group for performing A/B Testing on your decisions.
financial servicessuggested
Risk Based Pricing
Discover a simple way to apply a suitable Risk Based Pricing matrix based on a type of client.
financial servicessuggested
Eligibility and Policy Rules
Discover a simple way to define and execute various sets of rules and get the final decision outcome.