Before you start
This topic explains the tasks, objectives, and prerequisites of this tutorial.
This tutorial takes you through the tasks for generating a ruleset as a hosted transparent decision service by using OpenAPI or WSDL. You also learn how to call the transparent decision service from a client that is generated for Java-based object models.
- Check the customer name.
- Check the amount of the order.
- Check the stock company name.
- Check the currency.
If any of the checks fail, the reason for the failure is set to an attribute of the object that is returned by the ruleset execution.
- IN parameter Order: DecisionServiceXOM.Order
- IN parameter Customer: DecisionServiceXOM.Customer
- OUT parameter Report: DecisionServiceXOM.Order

The tutorial directory includes the client code for you to run the ruleset.
The following diagram shows an overview of the runtime execution of transparent decision services. After the client runs the ruleset, you can inspect the transparent decision service performance from the Rule Execution Server console.

- Deploy a RuleApp from Rule Designer to Rule Execution Server.
- View and test a ruleset in REST by using an OpenAPI in the Rule Execution Server console.
- Retrieve an OpenAPI description, and call the decision service in a generated client.
- Retrieve an OpenAPI description for API Connect, and run the decision service through API Connect.
- Retrieve a WSDL description, and call the decision service in a generated client.
- Inspect the performance of the decision service.
Time required
This tutorial takes about 30 minutes to complete.
Software requirements
You must have Rule Designer and Rule Execution Server installed to do this tutorial. This tutorial runs on the sample server (see Using the sample server).
Directory structure
In this tutorial, <TutorialsDir> refers to the installation directory of the tutorial. Because the tutorial uses the Samples Console to run a number of Ant tasks, the tutorial files are in the samples directory, instead of the usual tutorials directory: <InstallDir>/executionserver/samples.
The following table describes the structure of the <TutorialsDir>/decisionservice directory, which contains WSDL and YAML files.
| Directory or file | Description |
|---|---|
| build.xml | The main Ant build file |
| /data | Directory with the WSDL and YAML files |
| /lib | The libraries from independent software vendors |
| /src/axis | The Java™ client source code that uses the WSDL description in task 4 |
| /src/openapi | The Java™ client source code that uses the OpenAPI description in task 3 |
| PreTradeChecks | The RuleApp that is used in this sample |
| PreTradeChecks-xom | The Java XOM that is used in this sample |
What you need to know
- Java™ EE web services, packaging and deployment, and Apache Ant
- Transparent decision services. For more information, see Transparent decision services.