Execution trace

This sample demonstrates how to get a simplified execution trace for a ruleset. You can use the sample to compare execution traces from running a ruleset on both rule engines.

Time required

10 minutes

Prerequisites

Before you use this sample, ensure that Rule Execution Server is installed and that the sample server is running. See Starting and stopping the sample server.

Description

You start by using the Rule Designer build automation tool to deploy the RuleApp with rulesets that use either the decision engine or classic rule engine, together with the XOM.

Then, you call the REST API to run the rulesets. The DOM parsing is used to get information from the decision execution trace. The sample treats the results as JSON objects, and handles the following tasks:
  • Use of the Rule Execution Server REST API in Java™.
  • Reception of the response in JSON.
  • Execution of rulesets.
  • Parsing of the trace.

Finally, you use the REST API services to remove the RuleApps, rulesets, XOM, and related library link.