pub.task.taskclient:updateTask
WmTaskClient. This service modifies a task on the Task Engine that is connected to the Integration Server. You use this service to change information in the task's TaskInfo and TaskData documents. This service applies only to tasks with status Active, Error, and Suspended. For information about updating tasks with other statuses, see Usage Notes.
To end a task, you use this service to change the status field in the task's TaskInfo document to "closed" or "cancelled" as appropriate.
Input Parameters
|
Output Parameters
None.
Usage Notes
When you use this service to update information in the task's TaskInfo document, the Task Engine modifies only the fields that have assigned values in TaskInfo. All other fields in the target task retain their existing values. For example, to change just the name assigned to a task, set only the name field in the TaskInfo document that you pass to this service.
When you use this service to update information in the task's TaskData document, the TaskData document that you pass to the service replaces the task's existing TaskData document in its entirety.
- If the current status of the task is Error, you can change it only to Completed.
- If the current status of the task is Suspended, you cannot set it to Completed or Expired.
This service applies only to tasks with status Active, Error, and
Suspended. To enable the service to update tasks with other statuses, set the
additional JVM property
-Dupdate.completed.task
to
true
, as described in
IBM webMethods Task Engine User’s Guide.
Tasks with status Error that belong to a process instance cannot be updated, regardless of Task Engine optional settings.
You can edit the
taskScheduleDate field only
when the task is in
scheduled
state.
You cannot edit the schedules of task instances
created using
Task Engine 9.9 or earlier because
those task instances will be in
active
state.