< Previous | Next >

Generating the mainProcess component starting implementation

The mainProcess component contains the business logic for the loan application.

You will use the process editor to create and edit the loan application business process, represented visually as a series of activities, and modeled using Business Process Execution Language (BPEL). This will include implementing the following steps in the loan application process:
  • Receiving the loan request
  • Performing a check of the applicant's credit rating (< 750)
  • Performing an automatic approval request (<= $50,000)
  • Processing the request with a bank employee
  • Sending an acknowledgment to the bank customer
To generate the mainProcess component, which is the process in this application, follow these steps:
  1. Right-click the mainProcess component.
  2. From the pop-up menu, select Generate Implementation. The Generate Implementation window opens.
  3. In the navigation tree, click LoanApplicationModule and click OK. The process editor opens with a basic business process.
    mainProcess
  4. Click File > Save.
Recall that the mainProcess component has an interface, mainProcessInterface, with a single operation named applyOnline. The business process displayed was generated based on this operation.

The applyOnline operation defines one input and one output. The input is mapped to the Receive activity. When mainProcessInterface transfers the data for the bank customer's loan request, it arrives at the Receive activity and is stored in the request variable, ApplicationInformation. The output is mapped to the Reply activity. The response message stored in the Response variable is transferred back to the bank customer using the Reply activity, informing the customer about the status of the loan request.

Next you will create the variables to hold the business object data used in the process.

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