Book Image

WS-BPEL 2.0 Beginner's Guide

By : Matjaz B Juric
Book Image

WS-BPEL 2.0 Beginner's Guide

By: Matjaz B Juric

Overview of this book

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.
Table of Contents (14 chapters)
13
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:

Time for action – configuring human task case branches

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...