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 V9.6.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. Start the sample server (see Starting and stopping the sample server).
  2. Wait for the sample server to start.

    If you are using Windows, the command window shows trace messages as the server starts. When the server finishes building, you get a message similar to the following one:

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

  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.
  4. Click Request loan without changing the default settings.

    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.