Trading Networks 10.3 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Task Folder | Summary of Elements in this Folder | wm.tn.task:getTaskOutput
 
wm.tn.task:getTaskOutput
Retrieves the output of a specified task.
Input Parameters
taskId
String The internal identifier of the task for which you want to retrieve output.
timeout
String (optional) The amount of time to wait for output from the task. Specify timeout in milliseconds. The default is 0.
Output Parameters
taskOutput
Document The output from the task. For the structure of taskOutput, see wm.tn.rec:ReliableServiceOutput.
Usage Notes
*To synchronously retrieve the output from the task, specify a value for timeout greater than 0. When you specify a value for timeout that is greater than 0, a block occurs until the task completes. If the task does not complete in the time you specify, the service throws an exception.
*To check the status of a task before you use this service, call wm.tn.task:getTaskStatus.