inicianteInício fácil

Business Rule

The flow demonstrates the usage of the Business Rule node, which allows to connect and execute different types of business rules within the flow.

DecisionRules

David Škarka

Template author

The primary objective of this rule flow is to demonstrate how the Business Rule node can be used to invoke external rules—specifically a Decision Table—within a sequential logic path. It allows users to:
  • Map input data from the flow to a specific rule.
  • Execute the rule using defined solver strategies (e.g., Standard, First Match).
  • Capture and manipulate the rule's output for the final workflow result.
Included Rules
The following rules are contained within this folder structure and utilized by the flow:
  1. Business Rule (alias business-rule-main-flow) is a workflow responsible for the execution of sequences the logic nodes.
  2. Decision Table (alias decision-table) is a logic table that evaluates a filter variable against numerical ranges
Workflow Nodes & Logic
The flow follows a linear execution path from start to end, involving data mapping and external rule invocation.
  1. Business Rule Node (rule)This node acts as the Lookup Operator. It is configured to:
    • Reference Rule: decision-table.
    • Execution Strategy: First Match (the engine stops after the first matching row).
    • Input Mapping: Maps the flow's input.filter to the Decision Table's filter parameter.
  2. Data Manipulation Node (assign)This node serves as the Output Assignee. It grabs the result from the previous rule execution (rule.output) and maps it to the final workflow output field: output.message.

Decision Table Logic Detail
The invoked decision-table evaluates the input filter based on the following rows:
  • Row 1:  If filter > 100, returns "The first row matched".
  • Row 2: If filter > 10, returns "The second row matched".
  • Row 3: If filter > 0, returns "The third row matched".
  • Else: Returns "No row matched".
Note: Because the Business Rule node is set to First Match, an input of 101 will return "The first row matched" because it satisfies the first condition (> 100) and execution stops there.
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

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.

Explore
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.

Explore
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.

Explore