Scripting Rule
When rules need power. Yours already does.
Some logic can't live in a table or a tree. Complex calculations, data transformations — Scripting Rule is where JavaScript meets the rules engine. Full power, same workspace.
Code that belongs in the engine
Versioned, testable, and callable from any Flow — just like every other rule in your workspace.
Compute anything
If JavaScript can do it, Scripting Rule can do it with direct access to your inputs and the rest of your workspace.
Configured for the business
Rule Variables let non-developers control thresholds and constants without ever touching the script.
Write JavaScript
Run it as a rule
Scripting Rule gives you a sandboxed JavaScript environment built into the engine. Write your logic, assign your outputs, return the result. No boilerplate, no deployment pipeline, no infrastructure to manage.
- Sandboxed JavaScript environment, no setup required
- Direct access to input, output, and rule variables

Call other rules
From inside the code
Need to run a Decision Table mid-computation, or chain a Lookup Table query into your logic? DR.solve lets you call any rule in your workspace directly from your script.
- Call any rule in your workspace from code
- Combine rule types in any sequence your logic demands

No black boxes
Debug it line by line
The built-in Test Bench lets you run your script against real inputs before anything goes live. Use log to trace values at any point. See exactly what came in, what was computed, and what went out.
- Test with real inputs directly in the editor
- log output surfaced in the debug panel
- Full input/output visible for every test run

Every change tracked
Publish with confidence
Scripting Rule versions work exactly like every other rule in your workspace. Roll back to a previous state and publish with confidence — your code has the same safety net as your data.
- Full version history
- Roll back to any previous version instantly
- Different versions for different purposes

Frequently Asked Questions
Still have questions? We have answers.
Getting Started with Scripting Rule
Working with Scripting Rule
Importing and Exporting Data
Using Scripting Rules in Flows
Versioning and Collaboration
Best Practices
Try for Free
Experience DecisionRules at no cost. A credit card is not required for the trial.
Start for freeContact Sales
Have questions? Our sales team is here to help you find the best solution for your business.
contact sales