Our second category of task-based Business Service is one that allows the buyer or seller to perform actions against the workflow task. For the purpose of this section, we will look at the implementation of the
setShippingDetails operation, though the other operations
submitInvoice, notifyPaymentMade, confirmPaymentReceived, notifyItemShipped, and
confirmItemReceived all follow the same basic pattern.
setShippingDetails is used to complete the first step in the workflow, namely, updating the task payload to contain the shipping name and address of the buyer as well as providing any additional shipping instructions. Finally, it needs to set the
outcome of the current step to
COMPLETED so that the task moves on to the next ...