Adding BPEL Extensibility Elements
See Also
You can add the following BPEL extensibility elements to the WSDL file:
Adding a Partner Link Type
Before you can add a partner link to a BPEL process,
you must add a partner link type to the WSDL file.
In a BPEL process, a partner link represents the interaction between the BPEL process and a partner service.
Each partner link is associated with a partner link type.
A partner link type characterizes the conversational relationship between two services.
The partner link type can have one or two roles.
A role describes the function that a service has in the relationship.
Examples of roles are loanRequestor and loanProcessor.
Each role must specify the port type that the service will use to receive messages.
To add a partner link type automatically
- When you do either of the following tasks, a partner link type is automatically generated.
The partner link type has a default role.
- Create a WSDL file from scratch.
- Create a port type.
- (Optional) To add a second role, do the following:
- Right-click the partner link type node and choose Add > role.
- If the Properties window is not visible, choose Window > Properties.
- Select the role.
- (Optional) Change the default name.
- Specify the port type.
To add a partner link type manually:
- In the WSDL view, right-click the root node and choose Add > PartnerLinkType.
A partner link type node appears under the Extensibility Elements node.
The partner link type has a default role.
- (Optional) To add a second role, right-click the partner link type node and choose Add > role.
- If the Properties window is not visible, choose Window > Properties.
- For each role, do the following:
- Select the role.
- (Optional) Change the default name.
- Specify the port type.
Defining Properties and Property Aliases
The BPEL Service Engine runtime uses a mechanism called correlation to track the multiple, stateful, long-running exchanges of messages
that typically take place between a BPEL process and its partner services.
The procedure for enabling correlation in a BPEL process includes the following initial steps,
which must be performed in the WSDL file:
- Define one or more properties in the WSDL file.
A property creates an association between business data and a name that can play an important role
in the global context of the BPEL process.
Each property consists of a globally unique name (for example, claimNumberProperty)
and a type (for example, xsd:string).
- Define property aliases in the WSDL file.
A property alias maps a specific property to a specific element or attribute in a message part.
When you create a property alias, you must specify the property and the message.
Once you perform these steps in the WSDL file, you can define a correlation set in the BPEL process.
The correlation set references one or more properties.
The correlation set can then be used by message activities (Invoke, Reply, and Receive)
and by the onMessage branches of Pick elements.
To define a property:
- In the WSDL view, right-click the root node and choose Add > Property.
A property node appears under the Extensibility Elements node.
- If the Properties window is not visible, choose Window > Properties.
- Select the property node.
- (Optional) Change the default name.
- You can set the Element or Type property to a built-in simple type, such as string or date.
To define a property alias:
- In the WSDL view, right-click the root node and choose Add > Property Alias.
A property alias node appears under the Extensibility Elements node.
- If the Properties window is not visible, choose Window > Properties.
- Select the property alias node.
- Specify values for the Property Name and Message Type properties.
These properties enable you to map data from a message into a property value.
- You can specify a value for the following optional property: Part.
- To add a query, right-click the property alias node and choose Add query.
A query node appears.
The query node enables you to set the following optional attribute: queryLanguage.
- See Also
- Configuring WSDL File Components
- Partner Link
Legal Notices