BACK to product overview

Rule Versioning

Change your rules without putting production at risk.

Business logic never stands still. Rule Versioning lets you develop the next iteration while the current version keeps running in production. Test changes safely, compare versions side by side, and publish only when the new logic is ready.


See Rule Versioning in DecisionRules

The current rule can keep running while its next version is prepared separately. See how the same workflow looks inside DecisionRules—from creating a new version to changing its Pending status.

Safe Iteration

Build and test major changes in a separate rule version while the published logic remains available to your applications. Your team can experiment without overwriting the production-ready version.

Predictable Releases

Every new version starts in Pending status, where it can be edited without affecting production. Evaluate it in Test Bench with Debug enabled, then publish when it is ready.

Clear Change Control

Keep clean checkpoints for every important update. Sequential version numbers, side-by-side comparison, and a shared Rule ID make it clear what changed and which version an integration uses.

Update Business Logic Without Overwriting What Already Works

Create a new version from an existing rule and continue working with the same Rule ID and Rule alias. DecisionRules copies the selected rule, assigns the next version number, and keeps the original version unchanged.

  • Preserve the rule's identity across every version
  • Number versions automatically as v1, v2, v3, and onward
  • Continue numbering from the highest existing version
  • Create a new version from the rule editor or rule list
  • Keep meaningful release checkpoints without duplicating rules manually
Version history showing published and pending versions of the same rule

Test the New Version Before Applications Can Use It

The published version keeps serving production while the next version is prepared and tested separately in Pending status. It becomes available to integrations only after it is deliberately published.

Every new version starts in Pending status. It can be edited and evaluated in Test Bench with Debug mode enabled, but it remains unavailable through the Solver API until it is Published. When a Solver request does not specify a version, DecisionRules automatically uses the latest Published version, the highest-numbered version that is currently Published.

  • Keep the currently published version available while developing the next one
  • Run the Pending version in Test Bench with Debug mode enabled
  • Manage the status of every version independently
  • Publish the new version only after it has been reviewed and tested
  • Use the latest Published version automatically, or pin an integration to a specific Published version when required
Workflow from a published production rule through Pending testing to a new published version

Frequently Asked Questions

Still have questions? We have answers.

Getting Started with Rule Versioning

What is Rule Versioning in DecisionRules?

Rule Versioning allows multiple numbered iterations of the same rule to exist side by side. All versions share the same Rule ID and Rule alias, while each version keeps its own structure, content, version number, and status.

How do I create a new rule version?

Open the Rule Actions menu, the three-dot button in the rule editor, and select New Version. The same action is available by right-clicking a rule or opening its three-dot context menu in the folder or Business Rules view. DecisionRules copies the selected rule structure and assigns a version number one higher than the latest existing version.

Why do I not see the New Version action?

Creating versions requires the corresponding Fork permission. The action can also be unavailable when the rule is locked, another version is currently being created, or versioning is not included in the current plan or configuration.

What status does a new version receive?

Every newly created version starts in Pending status. It cannot be executed through the Solver API, but it can be evaluated in Test Bench when Debug mode is enabled.

Is there a limit to the number of versions?

No. DecisionRules does not impose a limit on the number of versions that can be created for a rule.

Working with Rule Versions

What is the difference between Pending and Published?

A Published version is production-ready and can be executed through the Solver API. A Pending version is isolated from the Solver API, but it can still be evaluated directly inside DecisionRules using Test Bench.

Can different versions have different statuses?

Yes. Status is configured independently for each rule version. This allows one version to remain available in production while another is developed and tested in Pending status.

Which version is used when an integration does not specify one?

When a Solver API request does not include a version, DecisionRules automatically uses the latest Published version, the Published version with the highest version number. Specify a version explicitly when an integration must remain pinned to known behavior.

What happens if I delete an intermediate version?

The remaining versions keep their original numbers. New numbering always continues from the highest existing version. For example, if v23 was deleted but v24 exists, the next new version will be v25.

Can I compare two rule versions?

Yes, supported rule types can be compared side by side. The comparison helps identify changed conditions, values, rows, branches, or script lines depending on the rule type. Only rules of the same type can be compared, and Rule Comparison is available for selected subscriptions.

Can I roll back to an earlier version?

An earlier version can be used as a clean rollback point. Select the known-good version and create a new version from it. DecisionRules copies its structure into the next sequential version, which can then be tested and published through the normal release process. This preserves the version trail instead of rewriting it.

Testing Pending Versions

Can I test every Pending rule version with Debug?

Pending versions of Decision Tables, Scripting Rules, Decision Trees, and Rule Flows can be evaluated in Test Bench with Debug enabled. Lookup Tables must be Published before they can be evaluated. Integration Flows are executed through the Jobs API rather than the Solver API.

Importing and Exporting Versions

Can I export a specific rule version?

Yes. A selected rule version can be exported like any other rule. Rules use the DecisionRules JSON format, while Decision Tables also support spreadsheet-based export and import workflows.

What happens to the status of an imported rule?

Import behavior depends on the import method and source format. Always review the imported rule's status after import before connecting it to a production integration.

Can versions be managed through an API?

Yes. The Management API can be used to work with rule resources and their versions, making versioned rules suitable for automated backup, migration, and deployment workflows. The complete environment promotion process will be covered on the dedicated CI/CD Pipelines page.

Rule Versions and Rule History

What is the difference between Rule Versioning and Rule History?

Rule Versioning creates explicit numbered checkpoints for significant changes and releases. Rule History records saved states inside the current rule version each time the rule is saved. Use versions for controlled releases; use History to inspect or restore smaller editing changes within a version.

Does every save create a new numbered rule version?

No. Saving creates a new entry in Rule History, not a new numbered Rule Version. A numbered version is created only when the user explicitly chooses New Version.

Can I restore an item from Rule History?

Yes. A historical save can be restored as the current state of that rule version, or cloned into a separate rule. Historical entries are read-only until one of those actions is selected. Rule History is not currently available for Rule Flow.

Best Practices

When should I create a new version?

Create a new version for changes that deserve their own testing and release checkpoint, for example a new pricing strategy, a compliance update, a major restructuring, or any change that should be promoted independently.

Should I edit a Published version directly?

For production rules, create a new version and make the change there. Keeping development in a Pending version protects the currently published behavior and gives the team a clear review and testing step.

How should versions be used across development and production?

Use explicit versions when an integration must remain pinned to known behavior. Test the Pending version, compare it with the currently used version, publish it after approval, and promote it between environments through the Management API or a CI/CD pipeline.

Should I delete old versions?

Keep versions that represent meaningful releases, audit points, or rollback candidates. Remove only versions that are no longer useful. Deleting a version does not renumber the remaining versions.

Try for Free

Experience DecisionRules at no cost. A credit card is not required for the trial.

Start for free

Book a Demo

Get a free demo of DecisionRules and see why industry leaders trust us.

book a demo

Contact Sales

Have questions? Our sales team is here to help you find the best solution for your business.

contact sales