OpenRules Platform

Relational Database Integration

Database Connectivity with Rule DB™

Rule DB lets decision models query relational databases directly from business rules, keeping business analysts in control of changing decision logic without hiding database power.

Rule DB

Put database-driven decisions in business hands.

Rule DB™ is a component of the OpenRules Decision Intelligence platform that supports connectivity with relational databases. It makes quality data available to subject-matter experts—not only to a small IT team of SQL specialists—and lets business analysts validate and act on data using simple business rules.

Traditional rule engines expect Java, JSON, or XML objects while separate SQL statements handle database access. Rule DB lets user-friendly business rules query databases directly while preserving the full power of SQL for databases of any complexity.

Rule DB connects business rules to relational databases
Rule DB overviewOpen full size ↗
Rule DB integration flow from database through rules to business decisions
How Rule DB connects data and decisionsOpen full size ↗

From SQL to rules

Move business criteria into visible decision tables.

Consider an SQL query defined on the classic MySQL Sample Database. Rule DB moves its record-selection structure into an Excel-based DataSQL table.

The technical FROM and JOIN information remains in DataSQL. Technical WHERE conditions stay with the query, while business conditions can move into a regular decision table that iterates over the selected orders.

Original SQL query against the classic models database
Original SQL queryOpen full size ↗
SelectedOrders DataSQL table
Record selection in a DataSQL tableOpen full size ↗
Technical SQL condition
Technical selection conditionOpen full size ↗
Business SQL conditions for payment amount and order status
Business selection criteriaOpen full size ↗
DefineTotals OpenRules decision table
Business logic in DefineTotalsOpen full size ↗

Executable model

Connect the glossary, database, and results.

The business concept SelectedOrders uses the same name as the DataSQL table, and its attributes match the SELECT aliases. Database access properties can be kept in project.properties or in the model’s Environment table.

After you set up the sample database, run test.bat. The model selects 1,277 orders, applies the business criteria to find six orders with payment amount above 80,000 and status “In Process,” and accumulates their total amount.

You can change the business logic by editing decision tables without changing DataSQL. Rule DB therefore integrates business rules naturally with relational data without sacrificing SQL power.

Business glossary for SelectedOrders and Totals
Rule DB business glossaryOpen full size ↗
Database settings in project.properties
Database connection propertiesOpen full size ↗
Evaluate Orders execution results
Decision-model resultsOpen full size ↗

Services

Move from SQL-only logic to a rules-based architecture.

OpenRules provides Technical Support to help migrate pure SQL solutions to rules-based decision services. Contact support@openrules.com.

Try Rule DB

Build a decision model that works directly with your data.

The free evaluation includes Rule DB and ready-to-run database examples.