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 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 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.
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: