You use the Miniloan application in a web browser to check
a loan request. Miniloan demonstrates the use of business rules in
an application.
About this task
By default, Miniloan comes with business logic that is
hardcoded in Java. The business logic determines whether a borrower
is eligible for a loan. In this tutorial, you replace the hardcoded
logic with business rules.
To use Miniloan, you must first start
the sample server, which contains the samples that you can use to
learn about Operational Decision Manager V8.9.0.
Then, you open Miniloan in a web browser to test the business logic.
When
you open Miniloan, the borrower and loan information fields are prefilled
with information for a fictitious borrower. When you validate the
loan request, Miniloan applies the business logic to approve or reject
the loan request.
- On your desktop Start menu, click .
In the file path, package_group refers to the product package group specified
in IBM®
Installation Manager during installation. The default
package group is Operational Decision Manager V8.9.0.
- Wait for the sample server to start.
If you are using Windows, the command window shows trace messages as the server starts. When it
finishes building correctly, you get the following message:
[samples.echo] GBRPS0029I: start.server is completed.
BUILD SUCCESSFUL
Total time: 1 minute 0 seconds
Press any key to continue . . .
If you are using a different operating system, you might not see the command window. You can
check the status of the server in a log file. For example, Redhat users can find the status of the
server in
<InstallDir>/ODM/shared/bin/startserver.log.
For more information about starting the sample server, see Using the sample server.
- Enter the following URL in a web browser: http://localhost:<PORT>/miniloan-server.
Ensure that you use the correct port number. The default port number is 9090,
but the port number that you use depends on the local installation of the product. To find your port
number, see Checking the server port number.
The Miniloan
application displays the default information as follows:
- Leave the Use Rules check box clear,
and click Validate Loan.
Miniloan checks the borrower and loan information against the hardcoded business logic. The
borrower's request is rejected because the debt-to-income ratio is too large. In other words, the
borrower's income is too low for the requested loan amount.
- Close the Miniloan application.