Test the loan application by interacting with it through
a Web browser using two user interfaces: one for customers and one
for loan officers.
To test the application, open the CustomerUI and the ManualApprovalUI
user interfaces by completing the following steps:
- In the Business Integration view, navigate to CustomerUI
-> WebContent -> Index.jsp.
- Right-click Index.jsp and select . The Run on Server window opens.
- Select WebSphere Process Server and click Finish.
- After the server is synchronized you will be asked to log in.
The default username is admin and the default
password is admin. After you have logged in,
you see the Web page that the customer would see.Alternatively, you can open a browser and enter http://localhost:<portnumber>/CustomerUI,
where the port number can be found in the console output.
- Similarly, open a browser window for ManualApprovalUI.
Test the first use case by invoking the automatic loan approval:
- In the CustomerUI, click New then Receive,
enter the information below, and click Create.
Table 1. CustomerUI informationField |
Value |
Name |
Joe Loanee |
EmailAddress |
joe.loanee@us.ibm.com |
TaxPayerId |
123456789 |
LoanAmount |
20000 |
- Check the status of the loan application by clicking Status then
click Status again and then click LoanApprovalProcess.
- Click the Process Instance Name to see the status of the application.
You will be shown a page similar to the following image:
To test the second and third use cases, complete the following
steps:
- Repeat the steps that you completed for the first test case, but
in this case enter an amount greater than $50 000 and click Create.
- Return to the ManualApproverUI and click Open.
You see that there is a task waiting for the loan officer to investigate.
- Click the task name to see more details about the task. To process
the task, click Claim in the detailed view.
- In the ManualApprovalResponse, type Approved and
click Complete. The customer can view the response by going through
the steps mentioned previously.
To test the case when the loan officer rejects the loan, complete
the same steps as you did for the second and third use cases but replace
the response with
Rejected.