Book Image

WS-BPEL 2.0 Beginner's Guide

By : Matjaz B Juric
Book Image

WS-BPEL 2.0 Beginner's Guide

By: Matjaz B Juric

Overview of this book

If you are a software architect, a designer, a software developer, an SOA and BPM architect, a project manager, or a business process analyst who is responsible for the design and development of business processes, composite applications, and BPM/SOA solutions, then this book is for you. You should have a clear grasp of general SOA concepts including business processes and web services, but no prior knowledge of the BPEL language is required.
Table of Contents (14 chapters)
13
Index

Time for action – adding onEvent to the callback interface

To add the onEvent operation to the callback WSDL interface, we will proceed as follows:

  1. Open the BookWarehousingBPEL.wsdl interface.
  2. Scroll down to the declaration of the BookWarehousingBPELCallback port type. We can see that the port type specifies a single onResult operation:
    Time for action – adding onEvent to the callback interface
  3. We will add another operation, onEvent, which we will use to signal that an event has happened on the BPEL process. In our example, we will use the same input message as in the onResult operation. Let's add the onEvent operation declaration:
    Time for action – adding onEvent to the callback interface

What just happened?

We have added an onEvent operation declaration to the WSDL callback interface of the BPEL process. We will use this callback operation to signal to the client that an event has happened on the BPEL process.