Time for action – invoking a human task from the BPEL process
We proceed as follows to invoke a human task from the BPEL process:
- To invoke the human task, we simply drag Human Task from the SOA Components palette and drop it in the appropriate place in the BPEL process.
We have decided to place it at the end of the BPEL process, after the
<if>
activity and before the callback<invoke>
activity: - Next, we will double-click on the human task and a dialog for human task configuration will open. Here, we will select the BookstoreApproval human task definition:
- We can skip Task Title (in which case the default task name will be used) and proceed straight to Task Parameters. We need to provide the
BookData
andSelectedBookstore
parameters. We will use the appropriate variables for both parameters. - For BookData, we will use the BPEL variable with the same name—
BookData
. As this variable does not exist yet, we need to create it. Refer to Chapter 3, Variables, Data Manipulation...