O'Reilly logo

WS-BPEL 2.0 for SOA Composite Applications with IBM WebSphere 7 by Gregor Srdic, Matjaz B. Juric, Ales Frece, Swami Chandrasekaran, Matej Hertis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Managing events

A business process may have to react to certain events. We already know that a business process specified in BPEL usually waits for an incoming message using the<receive> activity. This incoming message is the event that activates the whole process. A business process also often invokes web service operations asynchronously. For such operations, results are returned using callbacks. The BPEL process often waits for callback messages, which are also events.

Using the<receive> activity, we can wait for an exactly specified message on a certain port type. Often, however, it is more useful to wait for more than one message, of which only one will occur. Let us go back to our example, where we invoked the FlightAvailability operation ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required