Before you start

Prepare for the tutorial by reading its description, and checking the audience description.

In the tutorial, you debug a ruleset that is running on a remote server.

You run the tutorial through the Samples Console, and the sample application server that comes with the product. To use this tutorial on a different application server, you must install Decision Server on the other server before you begin. For more information, see the installation information for Rule Execution Server.

In this tutorial, a fictitious loan company implements a loan validation policy that evolves continuously. The company implements the policy through a loan validation application.

The application does the following tasks:
  1. Validates input data from a web application.
  2. Calculates each customer's eligibility by using personal information, a score, and the requested loan amount.
  3. Evaluates specific criteria or scores to accept or reject the loan.
  4. Computes an insurance rate from a function of the computed score if the loan is accepted.
Shows the application ruleflow

Learning objectives

You do the following tasks:
  • Import a decision service project into Rule Designer, and create a deployment configuration to deploy the project as a ruleset to Rule Execution Server.
  • Enable debugging on the ruleset, and run the application in debug mode.
  • Run the ruleset in the hosted transparent decision service (HTDS) execution tool in the Rule Execution Server console.
  • Correct a problem in a rule, redeploy the fixed ruleset to Rule Execution Server, and verify your changes in the HTDS execution tool.

Time required

This tutorial should take approximately 60 minutes to finish. If you explore other concepts related to this tutorial, it could take longer to complete.

Audience

This tutorial is primarily for developers who want to debug a ruleset that is running on a remote server.

Directory structure

In this tutorial, <TutorialsDir> refers to the tutorial installation directory, by default, <InstallDir>/executionserver/samples.

The <TutorialsDir>/resdebugging directory contains the following folders:

  • start: Contains the decision service project that you debug.
  • answer: Contains a fixed version of the decision service project.

Best practices

This tutorial includes the following best practices for debugging a remote Rule Execution Server application:
  • Run the sample server in debug mode when debugging in Rule Execution Server. Example...
  • Run the ruleset in debug by using REST in the Rule Execution Server console. Example...