inicianteInício fácil
Dynamic Business Rule
O fluxo demonstra a utilização do nó Dynamic Business Rule e mostra como acionar um conjunto de regras predefinidas a partir de uma lista de configuração. A vantagem é que você pode adicionar mais regras facilmente.
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
serviços financeirossugerido
Teste A/B
Descubra uma maneira simples de atribuir um grupo de teste para realizar testes A/B em suas decisões.
serviços financeirossugerido
Precificação baseada em risco
Descubra uma maneira simples de aplicar uma matriz de precificação baseada em risco adequada ao tipo de cliente.
serviços financeirossugerido
Critérios de Elegibilidade e Regras da Política
Descubra uma maneira simples de definir e executar vários conjuntos de regras e obter o resultado da decisão final.