Version 3.0 - September, 2006
Using a Pick Activity with an Alarm to Abort Waiting for a Message
Introduction
Deploying the Process
Running the Process

Using a Pick Activity with an Alarm to Abort Waiting for a Message

Introduction

This sample demonstrates how to use a BPEL pick activity with an onMessage handler to wait for a message and an onAlarm handler stop waiting after a specified duration.

The process, illustrated below, consists of:

pick alarm example

Note: The onMessage icon is annotated with a warning because it's not correlated. Likewise for the receive in the diagran below. The above pick and its contents are functionally equivalent to a scope containing:

equivalent scope
The flow is automatically added to the BPEL source by ActiveBPEL Designer when a second activity (i.e., the assign) is added to the scope's primary activity area. The flow is hidden in the diagram to save space in the process editing canvas.

Deploying the Process

See Deploying the Samples.

Running the Process

See Running the Samples. The service name to use is pick_alarmProcessService.The sample data file orderMessage.xml can be used as input for this example.