com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.

Simulating a Loan Approval Processes

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,

  • Download the product installer from here, and run the installer.
    Let's call the installation location of your product the <EI_HOME> directory.

    Note that if you used the product installer to install your product, the <EI_HOME> is located in a place specific to your OS as shown below:

    OSHome directory
    Mac OS/Library/WSO2/EnterpriseIntegrator/6.3.0
    WindowsC:\Program Files\WSO2\EnterpriseIntegrator\6.3.0\
    Ubuntu/usr/lib/wso2/EnterpriseIntegrator/6.3.0
    CentOS/usr/lib64/EnterpriseIntegrator/6.3.0
  • Select and download the relevant WSO2 EI tooling ZIP file based on your operating system from here and then extract the ZIP file.
    The path to this folder is referred to as <EI_TOOLING>throughout this tutorial.

    Getting an error message? See the troubleshooting tips given under Installing Enterprise Integrator Tooling.

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.

com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links' is unknown.