Task 1: Using automatic exception handling
You import and run the faulty decision service. You find an exception error in a rule, and try to fix the problem by using automatic exception handling.
About this task
Step 1: Running the decision service
You import the start projects for the tutorial, and run the decision service.
Before you begin
Procedure
Step 2: Applying automatic exception handling
Because the exception occurs in a rule condition, you decide to try to fix it by using automatic exception handling (see Automatic exception handling).
Procedure
- In the Rule Explorer, right-click Loan Validation Service.
- In the pop-up menu, click Properties, and select in the left column of the Properties dialog.
-
Select Automatic exception handling in conditions, and then click
Apply and Close:

-
Run the run configuration that is shown in step 1 of this task.
The results no longer show an exception error. The decision engine automatically handles the exception. To determine where the exception takes place, you add more logging information to the results.
Step 3: Adding exception handing logging
You add additional logging information to determine where the decision engine automatically handles the exception error. First, you look at the Loan Validation Service/logging.properties file, and set it as the logging configuration file. Then, you set the Java VM parameter of the run configuration to declare the path to the logging configuration file.
