Table of Contents

Search

  1. Preface
  2. Part 1: Using Process Developer
  3. Part 2: Creating and Modifying Processes
  4. Part 3: Functions, Events, Errors, and Correlation
  5. Part 4: Testing and Deployment
  6. Part 5: Process Central and Process Server (On-Premises)

Process Developer

Process Developer

Adding an onEvent Event Handler

Adding an onEvent Event Handler

The
onEvent
element indicates that the event specified waits for a message to arrive. This element is very similar to a receive activity, except that a message event cannot create a new process instance. Also, an
onEvent
must contain a scope activity and optionally uses a variable local to the event handler that contains the message received from a partner.
An incoming message can correspond to a request/response or one-way operation in a WSDL. When the operation is a request/response type, the event handler is expected to use a reply to send back the response.
Required Properties
Optional Properties
Participant
Variable
Operation
Port Type
Correlations. See Correlation
Message Exchange. See Message Exchange Declaration
Extension Attributes and Extension Elements. See Declaring Extension Elements and Attributes.
To add an onEvent event handler for the process:
Ensure that you have added a participant for the event handler before you can complete the properties for it.
  1. Click on the Event Handlers tab of the Process Editor.
  2. Drag a
    Message catch event
    to the Event Handlers canvas.
  3. From the Properties view, select a participant, operation, and optionally select a Variable Definition and type in a Variable name. This variable is an implicit scope variable that can be used by other activities.
  4. Drag an activity into the
    onEven
    t's scope to respond to the event, such as a reply or exit.
  5. Fill in the properties for the activity that handles the event.
The following illustration shows an example of an onEvent event handler added for the process. If you collapse the event handler, you can add a background color in the Properties view.
Example of an onMessage event handler
To add an onEvent event handler for a scope:
  1. Ensure that you have added a WSDL file to Project Explorer containing the participant information needed.
  2. Display a BPEL file in the Process Editor, and select a scope.
  3. Drag a
    Message catch event
    to the scope.
  4. Fill in the properties of the
    onEvent
    , including the participant, operation and optionally type in a variable. This variable is an implicit scope variable that can be used by other activities.
  5. Drag an activity into the
    onEven
    t's scope to respond to the event, such as a reply or exit.
  6. Fill in the properties for the activity that handles the event.
The following illustration shows an example of an
onEvent
and an
onAlarm
event handler added for a scope. The activity responding to each event is a reply.
Example of scope with an onMessage and an onAlarm event handler, with callouts

0 COMMENTS

We’d like to hear from you!