StarLoanWithWorkFlow

Abstract

The StarLoan process is used to process a loan application. The approval process is set up so that
  1. If the loan amount is less than or equal to 100,000, the task is approved only once.
  2. If the loan amount is greater than 100,000, the task is routed atmost twice after the initial approval or until it is approved by a Vice President.
As part of the approval process, the approvers can also set the APR that is offered for the loan application.

How to Run

Run obant.bat from the StarLoan directory to deploy the process to the BPEL engine. When the process is deployed, test by doing one of the following:
  1. Union Loan with Workflow UI
    1. Login to the BPEL console for your server, select the StarLoan process, and go to the 'initiate' tab.
    2. Enter appropriate values in each of the fields and initiate a process instance.
    3. Go to URL http://{hostname}:9700/StarLoanWithWFUI.
    4. Login in to the application as 'jcooper' with the password 'welcome'.
    5. After logging in, from the listing page, click on the task title link to go the task details page.
    6. Set an APR.
    7. Accept the loan application. If the loan amount is less than or equal to 100,000, the approval process is complete.
    8. If the loan amount is greater than 100,000, this should trigger an email to the jstein (manager of jcooper, mtwain). jstein can either approve through email or approve from the sample StarLoanWithWFUI (http://{hostname}:9700/StarLoanWithWFUI).
    9. If the loan amount is greater than 100,000, on jstein's approval, the task would be routed to wfaulk (jstein's manager) who can either approve through email or approve from the sample StarLoanWithWFUI (http://{hostname}:9700/StarLoanWithWFUI).
  2. Worklist UI
    1. Login to the BPEL console for your server, select the StarLoan process, and go to the 'initiate' tab.
    2. Enter appropriate values in each of the fields and initiate a process instance.
    3. By default the loan application is assigned to a group 'LoanAgentGroup'. The users belonging to the LoanAgentGroup are jcooper, istone and mtwain. So, log into the worklist application at the URL http://{hostname}:9700/integration/worklistapp/Login as any of the users in the group with the password 'welcome'.
    4. Acquire the task.
    5. Go to the payload tab and set an APR
    6. Accept the loan application. If the loan amount is less than or equal to 100,000, the approval process is complete.
    7. If the loan amount is greater than 100,000, this should trigger an email to the jstein (manager of jcooper, mtwain). jstein can either approve through email or go the worklist application and approve.
    8. If the loan amount is greater than 100,000, on jstein's approval, the task would be routed to wfaulk (jstein's manager) who can either approve through email or go the worklist application and approve.