< Previous | Next >

Starting the Miniloan web application

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.

Procedure

  1. On your desktop Start menu, click All Programs > package_group > Sample Server > Start server.

    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.

  2. 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.

  3. 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:

    Image shows the Miniloan interface and default information for the borrower. The borrower requests a loan for 500,000, and has a yearly income of 80,000 and a credit score of 600. The duration of the loan period is 240 months, and the annual interest rate is 0.05 percent.
  4. 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.

    Image shows the rejection message.
  5. Close the Miniloan application.

Results

You started Miniloan and ran a loan request. You now create the rule application that replaces the business logic in the web application.
< Previous | Next >