Sample: Web or monitored transparent decision service

This sample shows how to use the Rule Designer web service generation wizard, generate and deploy a transparent decision service, and then update the client project.

Time required

40 minutes

Prerequisites

You must have Rule Designer and Rule Execution Server installed to use this sample.

Before you import this sample, make sure that you have set your JAVA_HOME environment variable to the folder where Java™ 7 SDK is installed.

Description

To call a ruleset on the Rule Execution Server, you write execution code to communicate with the application server and locate the deployed RuleApp that contains the ruleset. You write this code in Rule Designer inside a client project. Rule Designer provides several project generators which you can use. Among them is the web service code generator. The web service uses the Sun Microsystems JAX-WS 2.1.1 RI reference implementation.

You use ruleset parameters to generate the web service interface as shown in the following diagram. This interface contains one method for each ruleset of the RuleApp that is run.

web service interface generated using the ruleset parameters

The key features of this sample include:

  • Web service generator wizard

  • Executing a web service

  • Transparent decision service deployment

  • Registration and performance metric execution recording in the Rule Execution Server console