Trading Networks 10.7 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Task Folder | Summary of Elements in this Folder | wm.tn.task:restartTask
 
wm.tn.task:restartTask
Restarts a failed or stopped task.
Input Parameters
taskId
String The internal identifier of the task to restart.
Output Parameters
None.
Usage Notes
*If taskId is not valid, this service throws an exception.
*If the status of the specified task is not “FAILED” or “STOPPED,” this service throws an exception.
*Each task is associated with a single server. taskId must be associated with the same server on which the task was started.
*You can only restart a failed or stopped task on the same server on which it was started.
*To move a task to another server, use the wm.tn.task:changeServerForTask service.
*This service is set to disable service redirection. For more information, see pub.cluster:disableServiceRedir in webMethods Integration Server Built-In Services Reference.