JBoss.orgCommunity Documentation

Chapter 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

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.