Trading Networks 10.15 | Building Services with Trading Networks | Task Folder | Summary of Elements in this Folder | wm.tn.task:getTask
 
wm.tn.task:getTask
Retrieves a specified task that is associated with this server (the server on which the wm.tn.task:getTask service executes).
Input Parameters
taskId
String The internal identifier for the task to retrieve.
content
String Whether to retrieve the content of the document that is associated with the task. Valid values are:
*true - Retrieves document content.
*false - Default. Does not retrieve document content.
includeBizDocErrors
String Prevents the Envelope (see wm.tn.rec:BizDocEnvelope) associated with the task from having the Errors ( wm.tn.rec:BizDocErrorSet) field populated with Activity Log error messages. Valid values are:
*true - Default. Envelope is loaded with errors from the Activity Log.
*false - Envelope is not loaded with errors from the Activity Log.
Output Parameters
task
Document The task identified by taskId that this service retrieved. For the structure of task, see wm.tn.rec:Task.
Usage Notes
*If taskId is not valid, the service throws an exception.
*Each task is associated with a single server, so taskId must be associated with the same server on which the task was started.
*To get a task that was started on another server, see the wm.tn.task:getAnyTask service.
*If you do not need the document content, set content to false to decrease retrieval time.
*If you do not need errors in Envelope, set the includeBizDocErrors parameter to false to decrease the retrieval time and memory usage.