Back to videos
Use Cases

Centralized Data Validation Without Changing Code with DecisionRules

This DecisionRules walkthrough centralizes form validation in Decision Flows and Decision Tables, tests the rules and exposes them through an API.

When validation logic lives in code, every new requirement means changing, testing and redeploying the application. With DecisionRules, that logic is centralized in visual rules: your application calls an endpoint and the rules can be adjusted without touching code.

In this video, Gerardo walks through the DecisionRules Validate Form Inputs template in four steps. A Decision Flow first checks the form type and then validates the data row by row, calling another flow for each answer. Decision Tables handle both simple constraints, such as a list of allowed values, and complex ones, including date formats checked with regular expressions and date ranges. A business user can open the table and adjust a value directly. In the Test Bench, the value Renewal returns isValid = true and debug mode highlights the row that matched. Finally, one click on Integrations shows the endpoint and expected payload, with code examples ready for developers.

Chapters

  • 0:00 Validation without changing code
  • 0:15 Validation flow
  • 0:35 Simple and complex constraints
  • 0:48 Test Bench
  • 1:04 API integration
  • 1:19 Template and demo

Frequently asked questions

What does the Validate Form Inputs template validate?

It first checks whether the form type is valid and, if so, validates each row of input data against its own rules. The result shows which data meets the rules and which does not.

What happens when a requirement changes?

Update the rule in DecisionRules, for example an allowed value in a Decision Table. Your application continues to call the same endpoint, so there is no need to change or redeploy the code.

How do I test a rule before using it?

Enter the data in the Test Bench, run the rule and inspect the result. With debug mode enabled, the table highlights the rows that matched.