taskid | String Internal identifier of the delivery task to update. |
queue | String The name of the scheduled delivery queue in which the delivery task you want to update resides. |
status | String The status to assign to the delivery task. Valid values are: ![]() ![]() If the delivery task has not reached the retry limit, Trading Networks increments the retry count and sets the task status to QUEUED. If the delivery task reaches the retry limit, Trading Networks updates the task status to FAILED and the document status to FAILED. |
statusMsg | String (optional) The message that the transport service returns after attempting to deliver the document. |
timeDequeued | Object (optional) A timestamp indicating when the task was dequeued using the wm.tn.queuing:getQueuedTask service. The wm.tn.queuing:getQueuedTask service placed this value into the pipeline. Trading Networks uses this value to determine how long it took to deliver the document associated with the delivery task. For Java developers, this is an instance of java.lang.Long. |
serviceOutput | Document (optional) Data to save to the database. Specify the data as key/value pairs. The data type of serviceOutput is com.wm.data.IData. This is useful when a scheduled delivery service has a very large output pipeline. When you use wm.tn.queuing:getQueuedTask to dequeue a delivery task from a scheduled delivery queue, wm.tn.queuing:getQueuedTask might throw an OutOfMemoryError if the scheduled delivery service has a very large output pipeline. To avoid this error, place the pipeline data from the scheduled delivery service into the serviceOutput parameter of wm.tn.queuing:updateQueuedTask. Data in the serviceOutput parameter is saved to the database. |