Testing a ruleset for REST execution

From the Rule Execution Server console, you test REST API requests for execution of a ruleset in XML or in JSON form.

Before you begin

Restriction: Browser compatibility: The test feature is not supported by Internet Explorer 8 and earlier versions. If you work with Internet Explorer 9 or 10, make sure that the Tools > Compatibility View command is deactivated.

About this task

Before you execute a ruleset in XML or in JSON form from a client, you can test your execution request in the Rule Execution Server console.
Tip: You can also test the execution of a ruleset without generating it as a hosted transparent decision service.

Procedure

  1. Select a ruleset and open the Ruleset View as explained in Viewing a deployed ruleset.
  2. Click Retrieve HTDS description file.
  3. Click REST.
  4. Select the WADL generation options as explained in Viewing or downloading an HTDS description file.
  5. Click Test.

    The execution request is displayed in a separate browser window.

    A drop-down list allows you to select the execution format (XML or JSON). The sample payload is generated in the format you choose.

  6. Click Execute Request.

    The response is displayed in the Server Response frame. If you select Decision Trace before you click Test, the decision trace is included in the response.

  7. Optional: To validate the generated XML code, click the Validate XML icon.Validate XML icon. If the request is invalid, an error message indicates the reason and location of the failure. A red dot is displayed next to the incorrect line in the request.

    Note that the JSON format does not support validation.

  8. Optional: Use the Undo and Redo icons to erase or restore what you type in the text areas.