< Previous | Next >

Running the ready-made sample

After you have imported the required resources, you can run the application in the test environment.

Note: You can also test the application using JSPs. For more information about testing an application using JSPs, see the instructions in Invoking the loan application with a JSP.

You will use the Business Process Choreographer (BPC) Explorer web client to run, test, and debug your application.

To run and test the loan application, follow these steps:
  1. Add the application to the server.
    1. In the Business Integration perspective, go to the Servers view.
    2. Right-click WebSphere Process Server.
    3. From the pop-up menu, select Add and remove projects. The Add and Remove Projects window opens.
    4. In the navigation tree, click LoanApplicationModuleApp.
    5. Click Add and then click Finish. It will take several minutes for the server to start and publish the loan application. Wait until "Application started: ..." is displayed in the console window.
  2. Launch the Business Process Choreographer Explorer.
    1. In the Servers view, right-click WebSphereâ„¢ Process Server v6.0.
    2. From the pop-up menu, select Launch > Business Process Choreographer Explorer. The Business Process Choreographer Explorer opens and shows all tasks that are assigned to you. Currently there are no available tasks, so the "No items found" message is displayed.
      BPC Explorer
  3. Invoke the application.
    1. To view a list of all process templates published to the server, click the My Process Templates label.
      My Process Templates
    2. To select the mainProcess template and start the loan application process, click the mainProcess label.
      Template List
    3. To view all operations available to start the process, click the Operations tab. applyOnline is the only operation in the loan application that is available to start the process.
    4. Click the applyOnline label. A web-based front end opens where you can test your application.
      applyOnline Operation
    5. Click the + button beside applicant to display the input fields where you will insert your test values.
    6. In the name field, type John Smith.
    7. In the email field, type jsmith@jsmith.com.
    8. In the taxPayerId field, type 1234567.
      Note: If you want a non-random value for the credit score to test the approval cases, add "888" to the end of taxPayerId.
    9. In the loanamount field, type 60000.
      Process Input Message
      Before you submit the request, be aware that the following rules apply for the applyOnline operation:
      Loan request result Credit rating* Loan amount
      automatically approved >= 750 <= $50 000
      manually approved >= 750 > $50 000
      declined < 750 N/A
      * The credit rating is determined randomly rather than being pulled from a database or other file. If taxPayerId ends with "888" then the credit rating is always > 750.
    10. Click Submit. This loan application request is sent to the process for evaluation and a response is displayed, like in the image below:
      Output Response
      The message you receive concerning your application depends on your credit rating, and because of that it is determined randomly. Therefore, the message you receive will not always match the one displayed in the image above.
      Response Meaning Human Task
      "Thank you for your application. You will be contacted shortly to verify your information." declined FollowUpDeclinedApp
      "Your application has been approved and is awaiting completion" automatically approved CompleteTheLoan
      "Your application has been received and is under review." manually approved ProcessTheApplication
  4. The loan request is submitted to the bank, and a bank employee will receive the data to follow up on the request. Now, you will switch into the role of the bank employee, who wants to work on the tasks sent to him or her.
    1. Click the My Tasks label. A list of tasks assigned to you is displayed.
      My Tasks
    2. Click the FollowUpDeclinedApp label in case your request is declined (see table above), which is the task assigned to you by the bank customer when they submitted the loan request.
      FollowUpDeclinedApp human task
    3. Click the Work On button.
    4. Click the Complete button to complete the application follow-up.
      Complete the task

Feedback
(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.
< Previous | Next >