Skip to main content
You simulate a rule to test it with sample input and see a trace of how it reached its result. Use a simulation before or after you publish a rule to understand why it gave a result. You evaluate a rule to run its published version on real values and get a decision. You can evaluate one set of values, or many sets at once. You can evaluate a rule only through the API. NexusOne records each simulation and evaluation in the Business rules audit stream.

Prerequisites

Before starting this task, ensure you have the following:

Steps

Perform these steps to simulate a rule:
  1. Log in to NexusOne.
  2. On the top navigation bar, hover your mouse over Data and then select Business Rules.
  3. Select a workspace.
  4. Select a rule.
  5. Click the Simulate tab.
  6. Enter the input. Fill in the form fields, or click Edit as JSON to enter a JSON object.
  7. Click Simulate x, where x is the latest version’s number.
  8. Review the result, the trace, and the badges for the run time and version.
The Simulate tab runs the latest version.Perform these steps to simulate changes you haven’t saved:
  1. Click Edit rules.
  2. Change the logic in the editor.
  3. Click the Simulate tab.
  4. Enter the input.
  5. Click Simulate unsaved rules.