Creating Sample Processes in the BPEL Designer

See Also

The best way to get acquainted with constructing BPEL diagrams is to create sample processes. You can design your BPEL process by modifying existing sample processes.

For samples, the New Project wizard automatically generates both types of projects, BPEL Module and Composite Application, so you do not need to create each of these projects separately. However, to deploy the sample application, you need to manually add the BPEL Module as a JBI module to the Composite Application project.

In the BPEL Designer, you can create the following sample processes:

A Synchronous Sample Process

A synchronous process refers to a conversation style in which the client sends a message to the process, waits for a reply, and continues only when the reply comes back. When you create a synchronous sample process, the IDE generates a skeletal process with a single synchronous operation and the required WSDL and XML schema files.

An Asynchronous Sample Process

An asynchronous process applies to long-running conversations in which the client does not wait for a reply from the process before continuing its work. Instead of returning the result synchronously to the client, this process accepts the client's request, performs work that might be long-running, and then asynchronously calls back to the client when the work is done. When you create an asynchronous process, the IDE generates a skeletal process with one incoming and one outgoing asynchronous operations and the required WSDL and XML schema files.

Note that any particular process can consist of an arbitrary collection of synchronous and asynchronous interactions with one or more conversational partners.

Travel Reservation Service Sample

This sample is a real-world BPEL process sample constructed using the majority of BPEL elements and several partner web services.

Together with the Travel Reservation Service sample, the wizard creates two other projects, ReservationPartnerServicesApplication and ReservationPartnerServices. These two projects both need to be deployed to the bundled Application Server in order to provide partner web services for the Travel Reservation Service process. See the Understanding the Travel Reservation Service guide for detailed information about how to work with this sample project.

To create a sample BPEL project:

  1. Choose File > New Project (Ctrl-Shift-N).
  2. In the Categories list, expand the Samples node and select the SOA node.
  3. In the Projects list, select the sample project you want to create and click Next.
  4. In the Name and Location page, name the project and specify the location of project files.
  5. Click Finish.
    The wizard creates two types of projects for the selected sample: a sample BPEL Module project and a sample Composite Application project. You are free to modify the sample business process or add additional BPEL processes to the BPEL Module project. To deploy, test-run, and debug the process, add the sample BPEL project as a JBI module to the Composite Application project.
See Also
Creating a BPEL Diagram
About Composite Application Projects
Adding JBI Modules to Composite Application Projects
Understanding Service Oriented Architecture Projects
Deploying and Performing Test Runs of BPEL Processes

Legal Notices