JBoss.orgCommunity Documentation

JBoss BPEL User Guide

Grid Qian

Version: 1.0.0.trunk


1. JBoss BPEL project Overview
1.1. Key Features of JBoss BPEL project
2. Installation JBoss BPEL Tools
2.1. Installation JBoss BPEL editor
2.2. Prerequisites
2.3. Installation JBoss BPEL Runtime
3. Tasks
3.1. Creating and editing a BPEL project
3.1.1. Creating a BPEL project
3.1.2. Creating a BPEL process
3.1.3. Editing a BPEL process file
3.1.4. Adding Service to WSDL file
3.2. Deploy a JBoss BPEL project to JBoss BPEL Runtime
3.2.1. Creating a deploy.xml file
3.2.2. Creating JBoss BPEL Server
4. Reference
4.1. Wizards
4.1.1. New BPEL project Wizard
4.1.2. Apache ODE Deployment Descriptor Wizard
4.1.3. New BPEL Process file Wizard
4.2. Editors
4.2.1. Business Process Editor
4.2.2. ODE Deployment Descriptor Editor
5. Summary
5.1. Other relevant resources on the topic

JBoss BPEL is based on WS-BPEL 2.0 to provide a way to create, edit, validate and deploy BPEL files to JBoss BPEL runtime. It is based on Eclipse BPEL project.

It improves the Eclipse BPEL project in the following way:

  • Implements close integration with JBoss BPEL runtime. Adds a new project type for the deployment to JBoss BPEL runtime.

  • Supports two ways of deployment. The first way is to deploy a BPEL project directly to JBoss BPEL runtime. The second way is to deploy BPEL files in JBoss ESB project to JBoss BPEL runtime.

  • Improves the BPEL validator and improves the quality of the Eclipse BPEL editor.

WS-BPEL 2.0 stands for Web Service Business Process Execution Language. Like EAI, BPEL is an XML-based language, but BPEL is more specific and targeted. A programmer uses BPEL to join sometimes disparate functions into an integrated process, resulting in a seamless use of the Internet to conduct business transactions ranging from simple money exchanges to complex calculations and asset reallocation.

To begin you need a copy of Eclipse 3.6. You can get it from Eclipse Web Site.

The JBoss BPEL editor is included with JBoss Tools. There are a number of different JBoss Tools installation methods. See Installing JBoss Tools for more information.

If you want to install only the JBoss BPEL editor, you can install it from JBoss Tools page separately. Please note that only JBoss Tools 3.1 or higher version includes JBoss BPEL editor.

In this chapter we describe the necessary steps to create a new BPEL project and edit the BPEL files. You can get the example source code from riftsaw/samples/quickstart/hello_world. In this guide we will create a simple echo example, used to respond to a sent message with a modified version of the request message.

The first step is to create a BPEL project.

Now you should create a BPEL process. You can create it by selecting NewOthers...BPEL 2.0New BPEL Process File.


Click the Next button. Enter the following information:



Click the Next button. On the second page, you can custom your WSDL service details. Enter the following information:



Click the Next button. On the third page, you can choose a folder for the process file from the projects in your workspace. If not choose, The default folder HelloWorld/bpelContent is selected. Click the Finish button.

Note

All of your files that are used in your BPEL project must be under the bpelContent folder of a BPEL project. Only in this case these files can be deployed to JBoss server.

Up to now, you have got a simple BPEL process as on the screen below.


In the next step, you can edit the BPEL process file and then deploy it to JBoss server.

If the Properties view and Palette view are not opened, you can open the views by right-clicking the BPEL editor and selecting Show in Properties, Show Palette in Palette view. Then you should have the view like this:


In the Palette view, you can drag a BPEL element to the BPEL editor and drop it in the place you want.

In the Properties view, you can get the information about every element of the BPEL process. In the BPEL editor select any element you want,and then the element's properties will be shown in the Properties view. The table below describes the tabs of the Properties view:


In order to see how a simple BPEL process works in action, you should do some steps as below:

The HelloWorldArtifacts.wsdl file has been added a service when you create a BPEL process file. You have a default service in this WSDL file. But if you want to add a service by yourself, you can follow the steps as below:

Now you have finished creating a simple BPEL process. As a next step, you can deploy the BPEL project to JBoss BPEL Runtime.

This chapter includes detailed reference information about all BPEL tools wizards and editors.

Using the New BPEL Process file Wizard it is possible to create a BPEL process file and a WSDL file. The wizard includes several pages:

Business Process Editor is intended to facilitate the process of changing and adding new logic to BPEL process file. You can open .bpel in this editor by right click the file in the project explorer and selecting Open With...Business Process Editor


The editor consists of two tabs:Design tab and Source tab.

To deploy your process in ODE you need to create a simple deployment descriptor with basic information, using the ODE Deployment Descriptor Editor to facilitate the process of descriptor configuration. You can see how the descriptor file opened in the editor looks like in the picture below:


The table below describes the configuration options of the ODE Deployment Descriptor Editor:


This document highlights the capabilities of BPEL Tools, as well as providing the steps required to create and configure BPEL process and deployment descriptor files. If you have questions or suggestions concerned both the documentation and tools behavior, you are welcome to JBoss Tools Users forum. Please, use Jira to report bugs and requests on documentation.