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:
OS Home directory Mac OS /Library/WSO2/EnterpriseIntegrator/6.5.0
Windows C:\Program Files\WSO2\EnterpriseIntegrator\6.5.0\
Ubuntu /usr/lib/wso2/EnterpriseIntegrator/6.5.0
CentOS /usr/lib64/EnterpriseIntegrator/6.5.0
Select and download the relevant WSO2 Integration Studio ZIP file depending on your operating system from here, and then extract the ZIP file.
- For more detailed installation instructions, see Installing WSO2 Integration Studio.
- For information on any error messages you get, see the troubleshooting tips given under Troubleshooting WSO2 Integration Studio.
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.
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>
.Right click on the
bpelContent
folder under the BankLoanProcess and click Import .Select WSDL and click Next .
Click Browse, and select the
<LOAN_PROCESS_HOME>/
CustomerInfo.wsdl
file and click Finish to upload it.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.