Previewing models

As you build decision models, ruleflow models, and prediction models, you can verify that they produce the results you expect by running them with test data.

The preview feature allows you to apply data to the decision logic that is defined in your model to make sure that it works as expected.

When you preview a model, you define and run test data to validate specific scenarios. You can provide the data in a friendly form or in its underlying JSON format.

To preview a model:

  1. From the Build tab, click the Preview icon Preview icon.
  2. Click Add test data set to create a data set.
    An empty form with a list of data items that you can add to the data set is generated.
  3. Click any data item to add it to the data set and enter a value for the item. If you prefer to edit the content of the data set in JSON, use the content switcher to open the rich JSON editor.
  4. Click Preview.

The preview report is displayed in the results pane. In addition to the output of the model, this pane shows data about the execution, such as the run and compilation times, and which rules executed and their order of execution.

Click Show JSON output to view all input, output, and execution data in JSON format.


Parent topic:

Creating decisions