Task Engine 10.11 | Task Engine Webhelp | webMethods Task Engine API and Service Reference | Using the Task Engine Built-in Services | pub.task:TaskCompletionInfo
 
pub.task:TaskCompletionInfo
WmTaskClient. Document type containing information about the completion of a task. The Task Engine uses this document type to return data about the completion of a task to a callback service.
Parameters
taskID
String The identifier of the task that ended.
status
String The state of the task. Will be one of the following:
*completed. Task has been successfully completed and is no longer available in the user's inbox queue. Completed tasks continue to appear in the Task Management Results list.
*cancelled. Task has been canceled and is no longer available in the user's inbox queue. Canceled tasks continue to appear in the Task Management Results list.
*expired. Task has expired and is no longer available in the user's inbox queue. Expired tasks continue to appear in the Task Management Results list.
*error. Task has failed or an unrecoverable error occurred during the processing of the task. This is often due to an incorrect task rule. The errorCode and errorMessage fields generally contain additional information about the error.
lastAcceptedBy
String The user ID (on My webMethods Server) of the last user that accepted the task. The field is set to null if no user has accepted the task, or when acceptedByList is reset to null.
assignedToList
String List The IDs of the principals (users, groups, or roles on My webMethods Server) to which this task has been assigned.
errorCode
String A code that identifies the error condition that caused the task to end. This field is usually present when the value in status is "error." However, the Task Engine does not require an application to report an error code, so this field might be null even if the task ends with an error.
errorMessage
String A message describing the error condition that caused the task to end. This field is usually present when the value in status is "error." However, the Task Engine does not require an application to report an error message, so this field might be null even if the task ends with an error.