Book Image

WS-BPEL 2.0 Beginner's Guide

Book Image

WS-BPEL 2.0 Beginner's Guide

Overview of this book

Table of Contents (19 chapters)
WS-BPEL 2.0 Beginner's Guide
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – configuring human task case branches


To configure the human task case branches, an <if> activity needs to be added to the BPEL process. Fortunately, the JDeveloper has done this for us. If we look at our BPEL code, we will see that the <if> activity with the appropriate branches has been added:

All we need to do is specify the corresponding activities for each branch. We have to specify the activities for the APPROVE outcome, the REJECT outcome, and for all other situations where the outcome is not selected (for example, if a human task has expired).

In our process, we will do the following:

  1. For the REJECT outcome and the for else branch, we will copy the corresponding text (Rejected or Error) to SelectedBookstoreLocation in the output variable.

  2. For the APPROVED outcome, we will not do anything, as the output is already prepared.

What just happened?

We have added the activities to handle the human task outcomes. In our case, we have added the assign activities to...