pgdmn

Run DMN decision tables inside PostgreSQL. No network hop, no external engine—just SQL.

Quick start

CREATE EXTENSION pgdmn;

-- Load a DMN model and evaluate a decision.
SELECT dmn_eval_text(
  dmn_load('<your DMN XML>'),
  'Eligibility',  -- named output
  '{"Age": 34, "Income": 82000, "Bankrupt": false}'::jsonb
) AS decision;

--  decision
-- ----------
--  Approved

DMN in your database

DMN provides flexibility to update business rules on the fly, but right now that flexibility usually lives in specialized platforms or custom applications. By putting DMN in your database, you keep all the flexibility of DMN with the ease and integration of PostgreSQL.

See it run against realistic data on the Examples page—downloadable models, sample datasets, and complete SQL examples.