Book Image

WS-BPEL 2.0 for SOA Composite Applications with Oracle SOA Suite 11g

Book Image

WS-BPEL 2.0 for SOA Composite Applications with Oracle SOA Suite 11g

Overview of this book

Business Process Execution Language (BPEL, aka WS-BPEL) has become the de-facto standard for orchestrating services in SOA composite applications. BPEL reduces the gap between business requirements and applications and allows for better alignment between business processes and underlying IT architecture. BPEL is for SOA what SQL is for databases. Therefore learning BPEL is essential for the successful adoption of SOA or the development of composite applications. Although BPEL looks simple at first sight, it hides its large potential and has many interesting and advanced features. If you can get familiar with these features - you can maximize the value of SOA. This book provides a comprehensive and detailed coverage of BPEL, one of the centerpieces of SOA. It covers basic and advanced features of BPEL 2.0 and provides several real-world examples. In addition to BPEL specification the book provides comprehensive coverage of BPEL support in Oracle SOA Suite 11g, including security, transactions, human workflow, process monitoring, automatic generation of BPEL from process models, dynamic processes, and more. This book starts with an introduction to BPEL, its role with regard to SOA and the process-oriented approach to SOA. The authors give short descriptions of the most important SOA platforms and BPEL servers—the run time environments for the execution of business processes specified in BPEL—and compare BPEL to other business process languages. The book will then move on to explain core concepts such as invoking services, synchronous and asynchronous processes, partner links, role of WSDL, variables, flows, and more.Moving ahead you will become familiar with fault handling, transaction management and compensation handling, scopes, events and event handlers, concurrent activities and links. The authors also discuss the business process lifecycle, correlation of messages, dynamic partner links, abstract business processes and mapping from BPMN to BPEL. The book presents in detail, how to use BPEL with Oracle SOA Suite 11g PS2. It explains the development of BPEL and SCA assemblies, and demonstrates different approaches with some practical examples. It addresses security, transaction handling, and human workflow. Then, the book addresses entity variables, notification services, fault management framework, and business events in BPEL. It provides exhaustive coverage of monitoring BPEL processes and developing dashboards with Oracle BAM. It explains how to use BPEL processes with Oracle Service Bus and Oracle Service Registry. Using examples, the book also demonstrates how to transform business process models in BPMN (using Business Modeler) to BPEL, how to achieve round-tripping using BPA Suite and BPM Suite, and how to use Oracle Enterprise Repository to govern BPEL processes. The book also covers the complete BPM lifecycle from modeling through implementation, execution, monitoring, and optimization and presents advanced, real-world examples.
Table of Contents (17 chapters)
WS-BPEL 2.0 for SOA Composite Applications with Oracle SOA Suite 11g
Credits
Foreword
About the Authors
About the Reviewers
Preface

Preface

Business Process Execution Language for Web Services (BPEL, WS-BPEL, or BPEL4WS) is the commonly accepted standard for defining business processes with composition of services. It is the cornerstone of Service-Oriented Architecture (SOA). With its ability to define executable and abstract business processes, it plays an important role in business process management. BPEL is supported by a majority of software vendors including Oracle, IBM, Microsoft, SAP, and others.

This book explains the role of BPEL when building SOA composite applications with Oracle SOA Suite 11g. It explains the BPEL 2.0 standard, the role of BPEL in SOA, and provides a step-by-step guide to designing and developing BPEL processes. The book also covers several related technologies and products, such as Oracle Business Activity Monitoring (Oracle BAM), Oracle Service Bus (OSB), Oracle Service Registry (OSR), Oracle Business Process Analysis Suite (Oracle BPA Suite), and Oracle Business Process Management Suite (Oracle BPM Suite).

What this book covers

Chapter 1, Introduction to BPEL and SOA, provides a detailed introduction to BPEL and Service-Oriented Architecture (SOA). It discusses business processes and their automation, explains the role of BPEL, Web Services, and Enterprise Service Bus (ESB) in SOA, provides insight into business process composition with BPEL, and explains the most important features.

Chapter 2, Service Composition with BPEL, discusses the composition of Web Services with BPEL. The chapter introduces the core concepts of BPEL and explains how to define synchronous and asynchronous business processes with BPEL. The reader gets familiar with the BPEL process structure, partner links, sequential and parallel service invocation, variables, conditions, and so on.

Chapter 3, Advanced BPEL, goes deeper into BPEL specifications and covers advanced features for implementing complex business processes. Advanced activities, scopes, fault handling, compensations, event handling, correlation sets, concurrent activities and links, process lifecycle, dynamic partner links, and other BPEL 2.0 features are covered in detail.

Chapter 4, Using BPEL with Oracle SOA Suite 11g, explains how to develop, deploy, test and manage BPEL processes as part of SOA composite applications in Oracle SOA Suite 11g using Oracle SOA Composite Editor, Oracle BPEL Component Designer, and Oracle Enterprise Manager Console.

Chapter 5, BPEL Extensions, Dynamic Parallel Flow, Dynamic Partner Links, Notification Service, Java Embedding, and Fault Management Framework and Chapter 6, Entity Variables, Master and Detail Processes, Security, and Business Events in BPEL, take a detailed look at several advanced topics of using BPEL with Oracle SOA Suite 11g, such as dynamic parallel flows, dynamic partner links, Java embedding, fault management framework, entity variables, master and detail processes, security policies, business events, and more.

Chapter 7, Human Interactions in BPEL, explains how to enable human interaction in BPEL processes using the Human Task service component. The chapter discusses Oracle Human Workflow architecture and features. The reader gets familiar with how to design a human task, how to create ADF-based human task web forms, and how to access and act on tasks using the Oracle BPM Worklist Application.

Chapter 8, Monitoring BPEL Processes with BAM, discusses how to capture and monitor real-time information about the execution of business activities to improve business process effectiveness. It explains the Oracle BAM architecture and features. The chapter also discusses how to use data objects, sensors, sensor actions, monitoring objects, and how to build BAM dashboard.

Chapter 9, BPEL with Oracle Service Bus and Service Registry, explains how to ensure loose coupling between different components of the SOA architecture by using the Oracle Service Bus (OSB) and Oracle Service Registry (OSR). The chapter explains the OSB and OSR architecture and features. The reader gets familiar with how to publish business entities and services to OSR using the Registry Control console, how to import and export resources between OSB and OSR using the Oracle Service Bus Console, how to create OSB projects, business and proxy services. The chapter also covers some advanced features of OSB, such as service-result caching and monitoring.

Chapter 10, BPMN to BPEL Round-tripping with BPA Suite and SOA Suite, explains how to eliminate the semantic gap between IT and process models through automated translation between BPMN and BPEL using Oracle Business Process Analysis Suite (Oracle BPA Suite) and Oracle SOA Suite. The chapter discusses Oracle BPA Suite architecture and features and how various constructs map between BPMN and BPEL. The reader gets familiar with how to model a BPMN business process, how to convert a BPMN model into a BPEL Blueprint, how to import the generated BPEL code in JDeveloper, and how to propagate changes from BPEL code back to the BPMN model.

Chapter 11, Integrating BPEL with BPMN using BPM Suite, presents an interesting new feature provided by Oracle Business Process Management Suite 11g (Oracle BPM Suite 11g) - the BPMN 2.0 service engine. It allows direct execution of BPMN 2.0 processes, without the need to transform them to BPEL. The chapter discusses Oracle BPM Suite architecture and features, and demonstrates how both, BPMN and BPEL processes can be used inside a single SOA composite application.

Appendix A, WS-BPEL 2.0 Syntax Reference, provides a syntax reference for the WS-BPEL Web Services Business Process Execution Language Version 2.0, OASIS Standard as defined in the specification dated April 11, 2007.

Appendix B, BPEL 1.1 Syntax Reference, provides a syntax reference for the BPEL (BPEL4WS) version 1.1 as defined in the specification dated May 5th, 2003.

Note

Appendix A, WS-BPEL 2.0 Syntax Reference and Appendix B, BPEL 1.1 Syntax Reference are not present in the book but are available as a free download from the following links:

What you need for this book

To develop and test the examples in this book, you need to have Oracle SOA Suite 11g Patch Set 2 (11.1.1.3) installed on your system. For Chapter 9, you also need Oracle Service Bus 11g (11.1.1.3) and Oracle Service Registry 11g (11.1.1.2), and for Chapter 10, you need Oracle BPA Suite 11g (11.1.1.2).

Who this book is for

This book is aimed at SOA architects and developers involved in the design, implementation, and integration of composite applications and end-to-end business processes. The book provides comprehensive coverage of WS-BPEL 2.0 for implementing business processes and developing SCA composite applications, dealing with the issues of composition, orchestration, transactions, coordination, and security. This book uses Oracle SOA Suite 11g and related Oracle products. To follow this book, you need to have basic a knowledge of XML, Web Services, and Java EE.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "For example, if we select the Business Process simulator filter, we only see information related to performing business process simulations."

A block of code is set as follows:

<assign>
<copy>
<from variable="InsuranceBResponse" />
<to variable="InsuranceSelectionResponse" />
</copy>
</assign>

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

<process ...>
<sequence>
<!-- Wait for the incoming request to start the process -->
<receive ... />
<!-- Invoke a set of related services, one by one -->
<invoke ... />
<invoke ... />
<invoke ... />
...
</sequence>
</process>

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "The Create database dialog opens".

Note

Warnings or important notes appear in a box like this.

Note

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to, and mention the book title via the subject of your message.

If there is a book that you need and would like to see us publish, please send us a note in the SUGGEST A TITLE form on www.packtpub.com or e-mail.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Note

Downloading the example code for this book

You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books maybe a mistake in the text or the code we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.