Prev | Next |
Simulating a Decision Service
It is possible to perform a model simulation on a Decision Service.
Decision Service Simulation
To perform a model simulation on the Decision Service, work through these steps:
Step |
Description |
---|---|
1 |
Drag a Simulation Configuration Artifact element onto a diagram from the 'DMN Components' page of the Toolbox, and double-click on it to open it in the DMN Simulation window. By default, all Decision Service elements and each single decision are listed for selection in the drop-down field in the dialog toolbar. |
2 |
Select a Decision Service element on which to run the simulation. In the example we chose 'Routing Decision Service', so three input data items and five encapsulated decisions (including one output decision) are loaded in the simulation list. Important: This list is drawn from the internal data of the Decision Service; make sure you run the 'Update DecisionService Interface' command from the context menu whenever the Decision Service model diagram is changed. Reload the Decision Model by clicking the 'Refresh' icon (third from the left) on the DMN Simulation window toolbar. |
3 |
The input data and decisions are in the correct execution order. For example, 'Application risk score' will be executed before 'Post-bureau risk category', 'Post bureau affordability' and 'Routing'. For each Input Data element, click on the drop-down arrow in the 'Value' field and select the Data Sets to provide input data values. Validate the input data and decisions, and make any necessary corrections using the DMN Expression window. On the DMN Simulation window, click on the and on the button on the toolbar. |
4 |
The runtime execution result is shown both in the list and on the diagram. You can also click on the 'Step-through' icon on the toolbar to debug the DMN model. A good practice is to keep the DMN Expression window open while debugging. The run time status of the expression (such as Decision Table, Boxed Context, Literal Expression or Invocation) will show the details of the logic encapsulated by the Decision or invoked Business Knowledge Model. |