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:
- For the REJECT outcome and the
for else
branch, we will copy the corresponding text (Rejected or Error) toSelectedBookstoreLocation
in theoutput
variable. - 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...