Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
WS-BPEL 2.0 Beginner's Guide

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

Arrow left icon
Product type Paperback
Published in Sep 2014
Publisher
ISBN-13 9781849688963
Length 388 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (14) Chapters Close

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

Time for action – adding an alarm event for callback

To add an alarm event to our <pick> activity, we will do the following:

  1. Add an <onAlarm> branch to the <pick> activity. We will achieve this by clicking on the Add OnAlarm icon next to the <pick> activity icon. We should see the following:
    Time for action – adding an alarm event for callback
  2. By double-clicking on the OnAlarm icon, we will specify the deadline to 1 day:
    Time for action – adding an alarm event for callback
  3. Next, we need to add the activity that will perform if the deadline is reached. In our example, we will simply throw a fault. We will name the fault Timeout. We should see the following:
    Time for action – adding an alarm event for callback

What just happened?

We have added the <onAlarm> branch of the <pick> activity for the timeout, which we have set to 1 day. This way we have limited the time our process waits for the book warehousing success confirmation callback. The following BPEL code has been generated:

What just happened?

With this, we have concluded our discussion of the <pick> activity. We now understand how to handle events with asynchronous...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image