Testing a Business Rule

Typically, after creating a business rule, you can test it.

Important: Business rules using context-specific JavaScript binds cannot be tested using this method. Therefore, JavaScript that uses the import change info or approve context binds cannot be tested. Similarly, business actions where the Execute JavaScript function is used to create parametrized business rules cannot be tested.

For an overview of the decision points involved in running a business rule, see the chart in the Running a Business Rule topic here.

Monitoring Business Rules

Using the BusinessRule.Warning.Threshold configuration property in the sharedconfig.properties file, allows you to specify a threshold in milliseconds for business action execution. If it takes longer to execute or test a given business action, a warning is posted in the main STEP log file available from the STEP System Administrator button on the WebStart. For information on the log, see the Logs topic in the Administration Portal documentation here.

Test a Business Rule

  1. In System Setup, expand the business rules node, and then select the business condition or action that you want to test.
  2. Right-click the condition or action, and then choose Test Business Rule to display the Test & Time Business Rule dialog.

  1. In the Test Object parameter, click the ellipsis button (…) to display the Select Test Object dialog. Use the Browse or Search tab to identify and select the object used to test the business rule.
  2. When testing an action, the Rollback changes after test checkbox is available. Check the checkbox if you want the changes caused by the action to be rolled back after the action has been executed.
  3. The Execute in Approved Workspace is unchecked by default and the test is performed in the Main Workspace. Check the checkbox if you want the action to be performed on the selected object in the Approved Workspace.
  4. Click the Test button.

Action Test Result Examples

Condition Test Result Examples

2018, Stibo Systems