Finally we need to set the task outcome for the current step (this is effectively the same as specifying a task action through the worklist application). In our case, we have defined two potential outcomes:
setShippingDetails (as with all of our operations), we want to set the task outcome to
COMPLETED, note this won't actually complete the task, rather it completes the current assignment, and in our case, as all our routing policies are single approver, it will complete the current step in the workflow and move the task on to the next step. Only once the final step is completed will the task complete and control be returned to the
OrderFulfillment BPEL process.
To set the task outcome, we only ...