124 Using BPEL Processes in WebSphere Business Integration Server Foundation - Business Process Integration and Supply Chain Solutions
5.6.4 Tasks
This section provides an overview of some of the common tasks you can perform
using the BPEL editor.
Create a new business process
To create a new business process:
1. Switch to the Business Integration Perspective in WebSphere Studio
Application Developer Integration Edition.
2. Create a Service project by clicking File
New Service Project from the
main menu.
3. Select this newly created Service project and click File
New Business
Process.
4. In the New Business Process window, specify a package and a name for the
new process, and click Next.
5. In the Choose Process Type window choose from the options listed below,
and click Finish.
Flow-based BPEL process - Use this setting if you want that control
dictated by control links.
Sequence-based BPEL process - Use this setting if you want your process
controlled by structured activities.
This creates a process, and launches it in a new process editor. It also generates
a few files that you can view in the Services view. The file with the .bpel
extension contains the code that describes this process, and the WSDL file
describes the service interface.
Screenshots of this task can be seen in the sample BPEL section in “Common
tasks” on page 165.
Partner links
This section provides an overview of how to work with partner links in the BPEL
editor.
Tip: The activity type can be changed by right-clicking the activity in the
process editor and selecting the Change Type menu item. Use this facility
with caution; changing the type of a structured activity such as sequence or
flow will delete the contents of that block.
Chapter 5. Using WebSphere Studio 125
Create a partner link
To create a partner link:
1. In the Partner Links area on the canvas, click the plus icon (+).
2. Give the partner link an appropriate name.
3. Click the Implementation tab in the Details area.
Figure 5-27 shows where you can find these fields and icons in the editor.
Figure 5-27 Create and name a new partner link
Figure 5-28 shows the fields in the implementation tab of the new partner link.
Figure 5-28 Implementation tab for a partner link
4. If you would like to reference a WSDL interface file (such as the one that was
automatically created by the Process editor), click Browse.
Type name in either
field
Click PLUS
to create a
new partner
Implementation tab
126 Using BPEL Processes in WebSphere Business Integration Server Foundation - Business Process Integration and Supply Chain Solutions
5. To launch the New Partner Link Type window, either click New, or select a
Partner Link Type from the drop-down list and click Edit. You will see a
dialog, as in Figure 5-29.
Figure 5-29 New partner link type window
6. Modify the fields in the New Partner Link Type window as follows:
If this is a new partner link, then you can choose to reference an existing
WSDL interface file (click Browse), or create a new one (click New).
Select the number of roles that this partner link will expose.
Name the roles, browse to the WSDL interface file that defines the port
type that you want to associate with the role, and select it.
7. Click OK.
Variables
This section provides an overview of how to work with variables in the BPEL
editor.
Create a variable
To create a variable:
1. In the Variables area on the canvas, click the plus symbol.
2. Give the variable an appropriate name.
Chapter 5. Using WebSphere Studio 127
Figure 5-30 shows where these fields can be found in the editor.
Figure 5-30 Create a new variable
Configure it as follows:
1. Click the Message tab in the Details area.
2. Browse to a WSDL file that has at least one message type and part defined.
3. Select an appropriate Message type and part.
Figure 5-31 shows the Message tab fields.
Figure 5-31 Message tab fields
Activities
This section provides an overview of how to work with activities in the BPEL
editor.
Click PLUS
to create a
new variable
Type name in
either field
Message tab

Get Using BPEL Processes in WebSphere Business Integration Server Foundation Business Process Integration and Supply Chain Solutions now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.