principianteInicio 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.
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.
The following rules are contained within this folder structure and utilized by the flow:
- Business Rule (alias business-rule-main-flow) is a workflow responsible for the execution of sequences the logic nodes.
- 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.
Decision Table Logic Detail
- 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.
- 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.
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.
More Templates
See Other Templates
servicios financierossugerido
Pruebas A/B
Descubra una forma sencilla de asignar un grupo de prueba para realizar pruebas A/B en sus decisiones.
servicios financierossugerido
Precios basados en el riesgo
Descubra una forma sencilla de aplicar una matriz de precios basada en riesgo adecuada en función del tipo de cliente.
servicios financierossugerido
Normas de elegibilidad y política
Descubra una forma sencilla de definir y ejecutar varios conjuntos de reglas y obtener el resultado de la decisión final.