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.

DecisionRules

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.
Flow Orchestration
The Rules Configuration List Decision Flow orchestrates the logic in the following steps:
  1. Retrieve Configuration: It calls the Rules List table using a provided filter to determine which rule aliases are active for the current request.
  2. 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.
  3. Aggregation: It collects the output messages from every executed rule into a consolidated list called collectedMessages.
  4. Final Assignment: It assigns the collected list of messages to the final output object.
Check iconA checkmark inside a circle signifying "yes"Minus iconA minus inside a circle signifying "no"PROS IconA plus symbol representing positive aspects or benefits.CONS IconA minus symbol representing negative aspects or drawbacks.

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.

Explore
financial servicessuggested

Risk Based Pricing

Discover a simple way to apply a suitable Risk Based Pricing matrix based on a type of client.

Explore
financial servicessuggested

Eligibility and Policy Rules

Discover a simple way to define and execute various sets of rules and get the final decision outcome.

Explore