Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
WS-BPEL 2.0 Beginner's Guide
WS-BPEL 2.0 Beginner's Guide

WS-BPEL 2.0 Beginner's Guide: Design and develop WS-BPEL executable business processes using Oracle SOA Suite 12c

Arrow left icon
Profile Icon Matjaz B Juric
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.8 (5 Ratings)
Paperback Sep 2014 388 pages 1st Edition
eBook
$32.99 $36.99
Paperback
$60.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Matjaz B Juric
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.8 (5 Ratings)
Paperback Sep 2014 388 pages 1st Edition
eBook
$32.99 $36.99
Paperback
$60.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$32.99 $36.99
Paperback
$60.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

WS-BPEL 2.0 Beginner's Guide

Chapter 2. Service Invocation

Services are self-contained units of functionality. BPEL processes specify the exact order in which participating services should be invoked—this is called orchestration. We can do this sequentially or in parallel. With BPEL, we can also express conditional behavior; for example, a service invocation can depend on the return value of a previous invocation. We will see that BPEL processes are essentially graphs of activities.

In this chapter, we will learn how to use BPEL for service invocations using sequential flows. We will develop a BPEL process, which will invoke other services and orchestrate them. This way, the BPEL process will consume services, thus building a composite application.

In traditional programming languages, we used to invoke operations sequentially, one by one. In business processes, however, we often need to execute activities in parallel. We will see that BPEL provides a relatively easy way to invoke services and execute...

Service invocation and orchestration

In the previous chapter, we learned the basics of BPEL. We learned that BPEL processes can be synchronous or asynchronous. BPEL processes consist of activities. A process usually begins with a <receive> activity, which is responsible for receiving the request from the process client. Then, the BPEL process executes some logic. So far, we have become familiar with the <assign> activity for manipulating variables and with the <if> activity for conditions.

We have also learned that BPEL is a programming-in-the-large language, meaning that we do not program distinct functionalities in BPEL. Rather, we use BPEL to orchestrate services—in other words, it invokes several services in a specific order to perform a certain business process.

In a typical scenario, the BPEL business process receives a request. To fulfill it, the process then invokes the involved services and finally responds to the original caller. Every BPEL process specifies...

Developing the book warehousing process

To develop the book warehousing process, we will start with the JDeveloper project from the previous chapter. In this project, we already have two BPEL processes that return the stock quantity for Bookstore A and Bookstore B.

We will create a new BPEL process, called BookWarehousingBPEL, simply by dragging-and-dropping the process to the SOA composite. As the BookWarehousingBPEL process will invoke the BookstoreA and BookstoreB BPEL processes, we will need to connect the BookWarehousingBPEL process with the other two processes. This way, we will create a partner link between them and will enable the service invocation. Connecting BPEL processes in JDeveloper is very easy as we only need to draw a wire between them.

In this example, we will use a synchronous BPEL, which we have become familiar with in Chapter 1, Hello BPEL. The synchronous request/response operation semantics is appropriate for this example. We will learn about asynchronous BPEL processes...

Time for action – creating the book warehousing process

Let's create the BookWarehousingBPEL BPEL process:

  1. We will open the SOA composite by double-clicking on the Bookstore in the process tree. In the composite, we can see both Bookstore BPEL processes and their WSDL interfaces.
  2. We will add a new BPEL process by dragging-and-dropping the BPEL Process service component from the right-hand side toolbar.
  3. An already-familiar dialog window will open, where we will specify the BPEL 2.0 version, enter the process name as BookWarehousingBPEL, modify the namespace to http://packtpub.com/Bookstore/BookWarehousingBPEL, and select Synchronous BPEL Process. We will leave all other fields to their default values:
    Time for action – creating the book warehousing process
  4. Next, we will wire the BookWarehousingBPEL component with the BookstoreABPEL and BookstoreBBPEL components. This way, we will establish a partner link between them. First, we will create the wire to the BookstoreBBPEL component (although the order doesn't matter). To do this, you...

Time for action – developing the book warehousing process

Let's start with the implementation of the BookWarehousingBPEL process. We should follow these steps:

  1. We will start with the XML schema definition. To do this, we need to double-click on the BookWarehousingBPEL.xsd file (in the Schemas folder) and write the following schema, as shown:
    Time for action – developing the book warehousing process
  2. Now we can switch back to the BPEL tab (BookWarehousingBPEL.bpel). First, we will add an <assign> activity to prepare a request for both the bookstore BPEL processes. In <assign>, we will copy the whole BookData element from inputVariable to a new variable, which we will create on the fly. We should do the following:
    1. Drag-and-drop <assign> to the BPEL process between the <receive> and <reply> activities.
    2. Double-click on the <assign> activity to open the dialog window.
    3. To hold and store the request for both bookstore BPEL processes, we need a new variable. Therefore, we will right-click on Variable and select...

Understanding sequential invocation

Within the <process> element, a BPEL process will usually have the top-level <sequence> element. Within the sequence, the process will first wait for the incoming message to start the process. This wait is usually modeled with the <receive> construct. It could also be modeled with the <pick> activity, if we expect more than one incoming message. We will explain the <pick> activity in Chapter 10, Events and Event Handlers.

Then, the process will invoke the related services using the <invoke> construct. Such invocations can be done sequentially or in parallel. If we want to make them sequential, we simply write an <invoke> activity for each invocation, and the services will be invoked in that order. Finally, the process will return a response using <reply>. This is shown in the following code excerpt:

<process ...> 
  ... 
  <sequence> 
    <!-- Wait for the incoming request to start the process...

Understanding partner links

When invoking services, we have often mentioned partner links. Partner links denote all the interactions that a BPEL process has with the external services. There are two possibilities:

  • The BPEL process invokes operations on other services.
  • The BPEL process receives invocations from clients. One of the clients is the user of the BPEL process, who makes the initial invocation. Other clients are services, for example, those that have been invoked by the BPEL process, but may return replies.

Links to all the parties that BPEL interacts with are called partner links. Partner links can be links to services that are invoked by the BPEL process. These are sometimes called invoked partner links. Partner links can also be links to clients, and can invoke the BPEL process. Such partner links are sometimes called client partner links. Note that each BPEL process has at least one client partner link, because there has to be a client that first invokes the BPEL process. Usually...

Service invocation and orchestration


In the previous chapter, we learned the basics of BPEL. We learned that BPEL processes can be synchronous or asynchronous. BPEL processes consist of activities. A process usually begins with a <receive> activity, which is responsible for receiving the request from the process client. Then, the BPEL process executes some logic. So far, we have become familiar with the <assign> activity for manipulating variables and with the <if> activity for conditions.

We have also learned that BPEL is a programming-in-the-large language, meaning that we do not program distinct functionalities in BPEL. Rather, we use BPEL to orchestrate services—in other words, it invokes several services in a specific order to perform a certain business process.

In a typical scenario, the BPEL business process receives a request. To fulfill it, the process then invokes the involved services and finally responds to the original caller. Every BPEL process specifies the...

Developing the book warehousing process


To develop the book warehousing process, we will start with the JDeveloper project from the previous chapter. In this project, we already have two BPEL processes that return the stock quantity for Bookstore A and Bookstore B.

We will create a new BPEL process, called BookWarehousingBPEL, simply by dragging-and-dropping the process to the SOA composite. As the BookWarehousingBPEL process will invoke the BookstoreA and BookstoreB BPEL processes, we will need to connect the BookWarehousingBPEL process with the other two processes. This way, we will create a partner link between them and will enable the service invocation. Connecting BPEL processes in JDeveloper is very easy as we only need to draw a wire between them.

In this example, we will use a synchronous BPEL, which we have become familiar with in Chapter 1, Hello BPEL. The synchronous request/response operation semantics is appropriate for this example. We will learn about asynchronous BPEL processes...

Time for action – creating the book warehousing process


Let's create the BookWarehousingBPEL BPEL process:

  1. We will open the SOA composite by double-clicking on the Bookstore in the process tree. In the composite, we can see both Bookstore BPEL processes and their WSDL interfaces.

  2. We will add a new BPEL process by dragging-and-dropping the BPEL Process service component from the right-hand side toolbar.

  3. An already-familiar dialog window will open, where we will specify the BPEL 2.0 version, enter the process name as BookWarehousingBPEL, modify the namespace to http://packtpub.com/Bookstore/BookWarehousingBPEL, and select Synchronous BPEL Process. We will leave all other fields to their default values:

  4. Next, we will wire the BookWarehousingBPEL component with the BookstoreABPEL and BookstoreBBPEL components. This way, we will establish a partner link between them. First, we will create the wire to the BookstoreBBPEL component (although the order doesn't matter). To do this, you have to click on...

Time for action – developing the book warehousing process


Let's start with the implementation of the BookWarehousingBPEL process. We should follow these steps:

  1. We will start with the XML schema definition. To do this, we need to double-click on the BookWarehousingBPEL.xsd file (in the Schemas folder) and write the following schema, as shown:

  2. Now we can switch back to the BPEL tab (BookWarehousingBPEL.bpel). First, we will add an <assign> activity to prepare a request for both the bookstore BPEL processes. In <assign>, we will copy the whole BookData element from inputVariable to a new variable, which we will create on the fly. We should do the following:

    1. Drag-and-drop <assign> to the BPEL process between the <receive> and <reply> activities.

    2. Double-click on the <assign> activity to open the dialog window.

    3. To hold and store the request for both bookstore BPEL processes, we need a new variable. Therefore, we will right-click on Variable and select the Create...

Left arrow icon Right arrow icon

Description

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.

What you will learn

  • Design and develop BPEL 2.0 executable business processes Become familiar with BPEL 2.0 activities and the most important usage scenarios Learn how to invoke and orchestrate services, manipulate data and use variables Implement conditions and loops, and recognize fault-handling capabilities to avoid unexpected states Understand message exchange patterns and learn about asynchronous communication channels and dynamic parallel invocations Learn about human interactions, human tasks, events and event handling, and compensations

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Sep 22, 2014
Length: 388 pages
Edition : 1st
Language : English
ISBN-13 : 9781849688963
Category :
Languages :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Sep 22, 2014
Length: 388 pages
Edition : 1st
Language : English
ISBN-13 : 9781849688963
Category :
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 192.97
BPEL and Java Cookbook
$65.99
Applied SOA Patterns on the Oracle Platform
$65.99
WS-BPEL 2.0 Beginner's Guide
$60.99
Total $ 192.97 Stars icon

Table of Contents

13 Chapters
1. Hello BPEL Chevron down icon Chevron up icon
2. Service Invocation Chevron down icon Chevron up icon
3. Variables, Data Manipulation, and Expressions Chevron down icon Chevron up icon
4. Conditions and Loops Chevron down icon Chevron up icon
5. Interaction Patterns in BPEL Chevron down icon Chevron up icon
6. Fault Handling and Signaling Chevron down icon Chevron up icon
7. Working with Scopes Chevron down icon Chevron up icon
8. Dynamic Parallel Invocations Chevron down icon Chevron up icon
9. Human Tasks Chevron down icon Chevron up icon
10. Events and Event Handlers Chevron down icon Chevron up icon
11. Compensations Chevron down icon Chevron up icon
A. Pop Quiz Answers Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.8
(5 Ratings)
5 star 80%
4 star 20%
3 star 0%
2 star 0%
1 star 0%
Thilini Ishaka Nov 06, 2014
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is an excellent book. It's very well explained and organized. BPEL is a complex and hardly understandable subject are for many students & industry users. If you are to understand the concepts in WS-BPEL specification, you might need to read it couple of times. But this book makes it easy for the beginners to grab the concepts very easily.The author has used several sample use-cases to explain the concepts. More complex scenarios are explained using step-by-step approach.This is more of a practical book rather than just theoretical.The chapter based quiz given at the end of the book is really helpful to check your knowledge.I'd recommend this book for all BPEL & related enthusiastic users to have a look.
Amazon Verified review Amazon
Tolulope Adeniji Nov 11, 2014
Full star icon Full star icon Full star icon Full star icon Full star icon 5
If you are looking for a book to get you started quickly on BPEL, your best bet is WS-BPEL 2.0 Beginner's Guide.With this book you can definitely hit the ground running and start development on BPEL 2.0 using Oracle SOA Suite 12c.This book also simplifies difficult concepts in BPEL by providing hands-on examples that are not too complex to followand at the same time sufficiently demonstrates the concepts.The Beginner's guide in the title does not mean it's for beginners alone; it can also serve as a quick reference for Senior developers as well as Architects, Project Managers and Business Analyst.
Amazon Verified review Amazon
Mike Coons Jul 09, 2017
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Excellent step-by-step guide to learning BPEL. The author covers slightly more than I learned in a week long Oracle course that I took on building 12c BPEL applications with the updated SOA suite.
Amazon Verified review Amazon
Has1 Oct 16, 2014
Full star icon Full star icon Full star icon Full star icon Full star icon 5
As name suggest, This is a good reading for who wants to learn BPEL concepts from beginning. Authors start book with a very simple BPEL sample. They give details instructions from setting up IDE, creating schema and wsdl, etc. They finish their first sample giving instructions to how you can test your first BPEL process using a BPEL engine. That is why I recommend this book as a true beginner guide.BPEL specifications is so long and even BPEL 2.0 primer is very hard to understand without prior knowledge on BPEL. But authors have structured book chapters from simple to complex BPEL concepts, so that beginners can easily understand. It contains chapters for fault handling, compensation, parallel processing asynchronous invocation etc. Best part is authors have given samples for each section including guidance how you can do it in IDE.This book contains special chapter for Humantask with samples. That adds a true value to this book.Even BPEL 2.0 is published in 2007, (Nearly 7 years ago) it is usage is increasing in enterprise world. It is an widely used industrial standard for Business process management (BPM). I think knowing BPEL is an added advantage for a programmer, architect and students; and this is the best book to start with.
Amazon Verified review Amazon
Amazon Customer Jul 11, 2018
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Me hubiera gustado recibir el pedido el Lunes, tal como era previsto, pero una y otra vez los transportistas hacen lo que le da la gana. Es imposible que no haya forma de mejorar esto, de que se valore solo al vendedor, cuando de hecho estos intermediarios fallan y lo dejan en tan mal lugar.No es la culpa de los vendedores, sino que el sistema no valore de ninguna manera, y castigue también, a las empresas transportistas de alguna manera.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.