Updating a task instance

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

Get Oracle SOA Suite 11g R1 Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.