Learn how to define event handlers using WebSphere Integration Developer.
To define an 'on event' event handler, you have to specify a message. In this sample, correlation is defined for the message. The following BPEL snippet shows the 'on event' event handler for this sample. The implementation of the event handler is enclosed in a sequence activity.
JobPostingProcess.bpel:
To define a 'timeout' event handler, you have to specify a time event, and optionally a repeating time event. The following BPEL snippet shows the 'timeout' event handler for this sample. Note that the timer event is specified in Java code, so it is not shown here. The invoke activity illustrates the implementation of the event handler.
JobPostingProcess.bpel:
The next two sections describe how to define an 'on event' event handler and a 'timeout' event handler.
To add an 'on event' event handler to a scope, perform the following steps:
.
The event handler is added:


.To add a 'timeout' event handler to a scope, perform the following steps:

The on alarm event handler is added:


Note: For more detailed information about expressions, refer to the information center.
.To add a repeating timeout to your on alarm event handler, perform the following steps:

.