Trading Networks 10.7 | Building Services with Trading Networks | Route Folder | Summary of Elements in this Folder | wm.tn.route:getAnyTask
 
wm.tn.route:getAnyTask
Retrieves information about a task. If your Integration Server is in a clustered environment, the service can retrieve a task associated with any server in the cluster.
Input Parameters
taskId
String The internal identifier for the task that you want to retrieve.
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.
*The service retrieves any task regardless of the server on which the task was started.
*The service might run slower than wm.tn.task:getTask because it might have to retrieve the information from the Trading Networks database.
*If you do not need errors in Envelope, set the includeBizDocErrors parameter to false to decrease the retrieval time and memory usage.