Unknown macro: {next_previous_links}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

The following scenario simulates the first step of a loan processing business process, in which the Bank receives a request for a loan from the client, retrieves the history of the client and decides on the credit rating of the client.

 

A client goes to a bank with the required documents in order to request a loan. The service party (the bank) first retrieves the customer information and his history. Depending on that data, it will calculate the credit rating for the loan request. Considering both the calculated credit rating and the client history data, the bank will update the client with the final decision on the loan request.

Before you begin,

  • Install Oracle Java SE Development Kit (JDK) version 1.8.* and set the JAVA_HOME environment variable.
  • Download the product installer from here, and run the installer.
    Let's call the installation location of your product the <EI_HOME> directory.

    If you installed the product using the installer, this is located in a place specific to your OS as shown below:

    OSHome directory
    Mac OS/Library/WSO2/EnterpriseIntegrator/6.5.0
    WindowsC:\Program Files\WSO2\EnterpriseIntegrator\6.5.0\
    Ubuntu/usr/lib/wso2/EnterpriseIntegrator/6.5.0
    CentOS/usr/lib64/EnterpriseIntegrator/6.5.0

Let's get started! Follow the sections below to start implementing the below loan approval BPEL Workflow.



Creating the BPEL Workflow

Create a new BPEL Workflow using the below details.

  • Project Name: BankLoanProcess
  • Process Name: BankLoanProcess
  • Template: Synchronous BPEL Process

For instructions, see Creating a BPEL Workflow.

Importing the external service definitions

Follow the steps below to import the external service definitions, which are required to be invoked by the BPEL Workflow of the loan approval process.

  1. Unzip the  <EI_HOME>/samples/business-process/bpel/LoanProcess.zip file to a preferred location. Let's refer the extracted directory as <LOAN_PROCESS_HOME>.

  2. Right click on the bpelContent folder under the BankLoanProcess and click Import .

  3. Select WSDL and click Next .

     

  4. Click Browse, and select the  <LOAN_PROCESS_HOME>/ CustomerInfo.wsdl file and click Finish to upload it.

  5. Repeat step 3 to 5 above to upload the below files.

    • LoanService.wsdl
    • CreditRating.wsdl 

According to this scenario, this entire process is a combination of other Synchronous and Asynchronous Processes.

Let's create the artifacts of the two Synchronous Processes next. For instructions, see Step 1 - Creating the Synchronous Processes.

  • No labels