Book Image

WS-BPEL 2.0 Beginner's Guide

Book Image

WS-BPEL 2.0 Beginner's Guide

Overview of this book

Table of Contents (19 chapters)
WS-BPEL 2.0 Beginner's Guide
About the Authors
About the Reviewers

Time for action – specifying alarm event handler activities

Let's now add the activities that will execute within the alarm event handler. As we have already said, we will notify the client that an event handler has been invoked on the BPEL process.

To achieve this, we will perform the following steps:

  1. Open the BookWarehousingBPEL.bpel process.

  2. Before we can add the <invoke> activity, we will prepare the variable for the response message. To achieve this, we add the <assign> activity into the event handler body (using drag-and-drop).

  3. Rename the <assign> activity as AssignAlarmEventCallback, as shown in the following screenshot:

  4. By double-clicking on the <assign> activity, we will copy the literal string Alarm Event – 15 Minutes Timeout into outputVariable. As some web services can take longer than expected to return a response, it is important that a BPEL process is able to take time out and continue with the rest of the flow after a period of time:

  5. Next, we will drag-and...