Submitted on October 11, 2009 - 21:07.

This tutorial is written for eclipse 3.5 (Eclipse Galileo) and eclipse BPEL Designer plugin v. 0.4.0.
Contents
Business Process Execution Language (BPEL), is an OASIS standard executable language for specifying interactions with Web Services. Processes in Business Process Execution Language export and import information by using Web Service interfaces exclusively. BPEL is an XML based Orchestration language. In an orchestration language, message exchange sequences are controlled by the orchestration designer.
WSO2 Business Process Server (WSO2 BPS) and Apache Orchestration Director Engine(ODE) are two BPEL compliant business process executable work-flow engines, which support composition of Web services by orchestrating service interactions.
Eclipse BPS BPEL Exporter plugin is to export a bpel project that was created by Eclipse BPEL Designer plugin. Artifact which is created from exporter plugin can be deployed in WSO2 BPS or in ODE.
3.1 Write a simple helloworld application using eclipse BPEL Designer plugin
Now lets focus on how to develop a simple helloworld application using Eclipse Bpel designer plugin.
After successfully installing eclipse BPEL Designer Plugin, you will have the option of selecting BPEL project as you select other types of projects in eclipse environment.
Step 1:
Before you start step 1, please make sure you run the ODE server at least for once. If not, it may not be visible in the Target Runtime window.
Go to new → other → Bpel 2.0 → Bpel Project and then click next.




And the workspace will be as follows.

When you select each UI component, you are able to view properties of each component by Properties window. If you cannot find properties window, go to Window → Show View → Properties. You may need to click other if you could not find properties window in the Show View pane.
Step 3:
Click on recieveInput and view at the Properties window and leave them as before.
Step 4:
Add an Assign activity in between Receive and Reply. Expand the Palette window and click Actions option and select the Assign action. Drag and drop it in between the Receive and Reply, as shown below.

Step 5:
In the Assign properties window select Details tab and click New. Then in the From attribute select Variable and 'input-paylaod-input:string'. At the To attribute also select Variable and 'output-payload-result:string' as showed in the image. Save the process.

3.1.1 Binding the Process
Step 1:
Now open the WSDL file in the Design view and add a New Service and a New Binding by right clicking on the design view. Select the Binding element in the properties window and in the General tab click Generate Binding Contents. Then you will see Binding Wizard will appear. At the Binding Details page select the Port Type as helloworldport and Protocol as SOAP and SOAP Binding Option as document literal. Give the Binding Name as helloworldbinding.
Step 2:
Then select the New Service in the properties window and change the name of the service as helloworldService. Then select the NewPort and at the properties window give the name as helloworldPort, select the helloworldbinding for the Binding from the Specify Binding window. For the Address field type “http://localhost:8080/ode/processes/helloworld” and select Protocol as SOAP. Now the design view of the WSDL file will be as follows.

3.1.2 Designing Deployment Descriptor
Step 1:
To deploy the process in ODE, you have to create a deployment descriptor file. For that right click on the HelloWorld bpel project and go to new → other → BPEL 2.0 → Apache ODE Deployment Descriptor and click next. In the pop up wizard, check whether the correct BPEL project (i.e. HelloWorld) is selected and then click finish.
Step 2:
Open the deployment descriptor file (deploy.xml) in the editor and at the Inbound Interfaces section under the Associated Port tab select helloworldport from the drop down list that will appear. Just click on the other tabs and you will see necessary details are filled automatically. Now deploy.xml will be as follows.

Now your process is ready to be deployed in ODE. To deploy it in WSO2 BPS, you have to make it a zip file. For that Eclipse BPS BPEL plugin will be helpful.

Step 1:
Import the created BPEL project into the workspace if your workspace does not include needed BPEL project already. This can be done by clicking file → import → General → Existing Projects into Workspace and click next. Select the directory of BPEL project and click finish.
Step 2:
Right click on the BPEL project and select Export. In the Export window select WSO2 BPS Bpel Artifact under WSO2 Exporter and click next.

Select the BPEL project and location where you want to save the created artifact and click finish.

Now you will have the BPEL artifact that can be deployed in WSO2 BPS.
Chathuri Wimalasena, Software Engineer, WSO2, chathuri@wso2.com
| Attachment | Size |
|---|---|
| image1.png | 5.08 KB |
| image2.png | 98.37 KB |
| image3.png | 6.31 KB |
| image4.png | 41.53 KB |
| image5.png | 20.99 KB |
| image6.png | 42.1 KB |
| image7.png | 68.74 KB |
| image8.png | 32.7 KB |
| image9.png | 18.74 KB |
| image10.png | 35.35 KB |
| image11.png | 61.87 KB |
| image12.png | 41.69 KB |