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.

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

servicios financierossugerido

Pruebas A/B

Descubra una forma sencilla de asignar un grupo de prueba para realizar pruebas A/B en sus decisiones.

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

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

Explore