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. This is located in a place specific to your OS as shown below:
OS Home directory Mac OS
Select and download the relevant WSO2 Integration Studio ZIP file depending on your operating system from here, and then extract the ZIP file.
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:
- Process Name:
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.
<EI_HOME>/samples/business-process/bpel/LoanProcess.zipfile to a preferred location. Let's refer the extracted directory as
Right click on the
bpelContentfolder under the BankLoanProcess and click Import .
Select WSDL and click Next .
Click Browse, and select the
CustomerInfo.wsdlfile and click Finish to upload it.
Repeat step 3 to 5 above to upload the below files.
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.