Skip to Content
Essential Business Process Modeling
book

Essential Business Process Modeling

by Michael Havey
August 2005
Intermediate to advanced
350 pages
10h 29m
English
O'Reilly Media, Inc.
Content preview from Essential Business Process Modeling

BPEL in a Nutshell

The following sections examine the essential language constructs designers will need to understand to create a BPEL process: the basic process structure, variables and assignments, exception handling and compensation, split and join, loops, participant exchange, transactions, and extensions.

Basic Process Structure: Start, End, Activities, Sequence

A developer’s first BPEL process is not easy to write. Two puzzles face the beginner:

  • A BPEL process has exactly one activity (which, of course, can consist of any number of subactivities to any level of hierarchy). Which activity should that be? Which are allowed? Which are disallowed? Which are recommended?

  • How is the initial inbound event handler set up? Where do you place the receive or pick in the activity described in the first problem?

The simplest approach, and the one recommended to most developers, is to use a sequence whose first activity is a receive with createInstance="yes", as in the following code example :

    <sequence>
       <receive . . . createInstance="yes" . . .> . . . </receive>
       <!-- other activities -->
    </sequence>

This process starts when the receive triggers, then executes the remaining steps sequentially, and exits when the last activity has completed. Error handling complicates the processing, of course; see the section "Exception Handling and Compensation" for a discussion.

Another approach is to use a receive within a flow. The receive should not have any inbound links. For example:

 <flow> <receive . ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Business Process Modeling, Simulation and Design

Business Process Modeling, Simulation and Design

Manuel Laguna, Johan Marklund

Publisher Resources

ISBN: 0596008430Errata Page