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
-
Start Rule Designer on
your computer in the en_US (American English) locale (see Preparing to create decision services).
-
Close the Eclipse welcome page if it is open.
-
Open the Rule perspective if it is not open. Click to open the perspective.
-
Import the answer project that you downloaded from GitHub:
- In the Rule perspective, click .
- In the Import wizard, expand , and click Next.
- Choose Select root directory, and browse to
<InstallDir>/answer. InstallDir is the name of the
directory to which you downloaded the answer project from GitHub.
- Click Select All, and in Options, click Copy projects into
workspace.
- Click Finish.
The Rule Explorer displays six 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.
-
In the Run menu, select Run Configurations.
-
Expand Decision Operation, and click the run loan
validation configuration:
-
Click Run.
The Console view displays the following results, which show that the input data is valid and
the loan is approved:
What to do next
In the task, you run the faulty version of the decision service and see the errors in the
output.