Sample: REST API

This sample shows how to use the REST API services of Rule Execution Server in Java™.

Time required

10 minutes

Prerequisites

To use this sample, you use the samples console and you need access to Rule Execution Server:

Description

This sample shows how to use the REST API in Java for the following purposes:
  • To get the RuleApps, execution object models (XOMs), and rulesets
  • To add a new RuleApp, XOM, and ruleset
  • To modify some RuleApps, XOMs, and rulesets
  • To remove a new RuleApp, XOM and ruleset
  • To execute a ruleset by providing the required parameters.
The sample uses the result from the response as JSON objects. The key features of this sample include:
  • The Rule Execution Server REST API in Java
  • Use of the response in JSON
  • Management of RuleApps, rulesets, and resources
  • Execution of rulesets