Skip to main content
JDM (JSON Decision Model) is the file format used by GoRules to represent decision graphs. It’s a human-readable JSON structure that captures nodes, edges, and configuration in a portable format.

Why JDM?

File structure

A JDM file contains two sections:

Nodes

Each node represents a processing step in the decision:

Edges

Edges define connections between nodes:

Additional fields

The engine ignores unknown top-level fields, so tools can attach their own metadata without breaking evaluation. Only nodes and edges are part of the format.

Loading JDM files

Load and evaluate JDM files using any GoRules SDK:

Validating structure

The @gorules/jdm-editor package exports a Zod schema for validating JDM files:

Version control best practices

File organization

rules
pricing
customer-discount.json
volume-discount.json
eligibility
loan-qualification.json
README.md

Meaningful commits

Review diffs

JDM’s JSON format makes diffs readable:

Exporting from BRMS

The GoRules BRMS exports decisions in JDM format:
  1. Open the decision in BRMS
  2. Click Export in the toolbar
  3. Choose JSON Decision Model (.json)
  4. Save to your repository

Schema reference

The complete JSON Schema for JDM files is available in the zen repository.