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
![*](chapterTOC_bullet.png)
If
taskId is not valid, this service throws an exception.
![*](chapterTOC_bullet.png)
If the status of the specified task is not “FAILED” or “STOPPED,” this service throws an exception.
![*](chapterTOC_bullet.png)
Each task is associated with a single server.
taskId must be associated with the same server on which the task was started.
![*](chapterTOC_bullet.png)
You can only restart a failed or stopped task on the same server on which it was started.
![*](chapterTOC_bullet.png)
This service is set to disable service redirection. For more information, see
pub.cluster:disableServiceRedir in
webMethods Integration Server Built-In Services Reference.