Running the completed decision service

You run the completed version of the decision service to see the expected results.

About this task

This version of the decision service contains the changes that you make in the tutorial. It produces the results that you can expect to achieve at the end of the tutorial.
Tip: If you want to refer to the completed decision service while you are going through the tutorial, use the answer and start projects in different Eclipse workspaces.

Procedure

  1. Open the Samples Console in the en_US (American English) locale (see Running samples from the Samples Console).
  2. In the Samples and Tutorials view, expand Rule Designer > Tutorials > Debugging a decision service.
  3. Under answer, click Import projects.

    Eclipse switches from the Samples Console to the Rule perspective. The Rule Explorer displays six projects:

    Image shows the rule projects.

    The Java™™ project loan-validation-xom defines an execution object model (XOM) for rule execution. The main decision service, Loan Validation Service, references the other projects (see Running the completed tutorial).

  4. From the Run menu, select Run Configurations.
  5. Expand Decision Operation, and click the run loan validation configuration:
    Image shows the run configuration.
  6. Click Run.
    The Console view displays the following results, which show that the input data is valid and the loan is approved:
    Image shows the results from running the decision service.

What to do next

In the task, you run the faulty version of the decision service and see the errors in the output.