Skip to main content

Simulation

A simulation replays the recorded executions of a deployed decision model through a changed copy of it and compares every new result with the recorded one. It shows which past decisions a change turns out differently before the change is deployed. Simulating needs the Editor role in the project.

The playground​

The playground holds a copy of the model. Its decision logic can change there, while the saved model and its deployed versions stay as they are. Open in Modeler takes the changed copy to the modeler as a new draft, in place of the draft open there, to save and deploy like any other model.

What a simulation replays​

  • The recorded executions of the model from all its deployed versions: evaluations through the API and business rule tasks of process instances. Test runs are not included.
  • The executions of the chosen time window, at most the last 90 days and the 10,000 most recent, as far as data retention still keeps them.
  • Each execution with its recorded inputs, for the decisions it evaluated. A business rule task evaluated one decision, and its replay evaluates that decision only.

A simulation stops after 5 seconds, set by DMN_SIMULATION_TIMEOUT. It then covers the most recent executions it reached, and a shorter time window replays all of them. With DMN_SIMULATION_TIMEOUT=0 the Simulation entry is absent from the navigation and the API refuses to run one.

Comparing results​

A decision counts as changed when its value or its error differs from the recorded one, or when the changed model no longer has the decision. Values compare by content: numbers by exact value, so 1.5 matches 1.50, and contexts regardless of the order of their entries.