BPEL Designer: Adding On Event Elements
See Also
The On Event element indicates that the specified event is waiting for a
message to arrive. The interpretation of this element and its attributes is very similar to a Receive activity.
The On Event element is created inside an Event Handlers
container. Thus, before adding On Event, be sure an Event Handler container element exists in either the Process or Scope elements.
To add and configure the On Event activity:
- If you have not already added an Event Handlers container, in the Design view of the BPEL Designer, right-click the Scope or Process element and choose Add > Add Event Handlers.
- Right-click the Event Handlers container and choose Add > On Event.
- From the Palette, drag one or several activities that will be executed and place them inside the On Event branch. Configure the properties of each activity.
Note that the BPEL Designer implicitly adds a Scope container activity for handling activities that will be executed concurrently upon the arrival of a message.
- To configure the message properties, select the On Event element on the diagram.
The
Properties window shows the On Event properties (Ctrl-Shift-7).
- In the Properties window, click Property Editor to configure the following properties:
- Partner Link. Select a Partner Link that will send an inbound message. The Partner Link should contain the myRole
endpoint reference on which the request is expected to arrive; the <partnerLink> must be defined in the <partnerLinks> section.
- Operation. Select the operation name. The operation is already defined in the partner WSDL file, so you can only select it from the drop-down list.
- Event Variable. Enter the name of the variable that will
contain the message received from the partner.
- (Optional) In the Property Editor window, you can add a correlation set. See Understanding Correlation. Using the Correlation Wizard or Adding Correlation Sets Manually for details.
- See Also
- Adding Fault Handlers
- About Variables in the BPEL Designer
Legal Notices