WebSphere Process Server, Version 6.2.0.1 Operating Systems: AIX, HP-UX, Linux, Solaris, Windows, i5/OS, z/OS


Human Task Manager REST Interface - Task Instance Subtask List Resource - GET Method

Use this method to retrieve a list of subtasks.

Resource URI

GET /v1/task/{tkiid}/subtasks

Parameters

None.

Request Content

None.

Response Content

List of subtasks.

The default content-type is application/json.

MIME Type: application/json


+ View Schema
{  "description": "HTM Task List", 
   "type": "object",
   "properties":
   {  "identifier": {"type": "string"},
      "items": 
      [
         {  "activationTime": {"type": "string","format": "date-time",
               "description": "Time the task instance is set into the ready state - this also happens when the task is restarted or when a claim is canceled."
            },
            "description": {"type": "string",
               "description": "Description of the task."
            },
            "displayName": {"type": "string",
               "description": "Display name of the task."
            },
            "dueTime": {"type": "string", "format": "date-time",
               "description": "Time when the task is due."
            },
            "durationUntilExpires": {"type": "string",
               "description": "Duration when the task expires once it is activated."
            },
            "firstActivationTime": {"type": "string","format": "date-time",
               "description": "Time the task instance is set into the ready state for the first time."
            },
            "isWaitingForSubTask": {"type": "boolean",
               "description": "States whether the task is waiting for the completion of a subtask."
            },
            "kind": {"type": "string",
               "description": "Kind of the task."
            },
            "name": {"type": "string",
               "description": "Name of the task instance."
            },
            "originator": {"type": "string",
               "description": "ID of the user that created the task instance or on whose behalf the task instance was created."
            },
            "owner": {"type": "string",
               "description": "Owner of the task instance."
            },
            "positionInHierarchy": {"type": "string", 
               "description": "Position in a possible task instance hierarchy.",
               "enum":
               [
                  "HIERARCHY_POSITION_FOLLOW_ON_TASK",
                  "HIERARCHY_POSITION_SUB_TASK",
                  "HIERARCHY_POSITION_TOP_TASK"
               ]
            },
            "priority": {"type": "integer",
               "description": "Priority of the task instance."
            },
            "starter": {"type": "string",
               "description": "Starter of the task instance."
            },
            "startTime": {"type": "string", "format": "date-time",
               "description": "Time when the task was claimed or when an invocation task enters the running state."
            },
            "state": {"type": "string",
               "description": "State of the task instance."
            },
            "taskTemplateID": {"type": "string",
               "description": "ID of the task template this instance is derived from."
            },
            "tkiid": {"type": "string",
               "description": "Task instance ID."
            },
            "type": {"type": "string",
               "description": "Type of the task."
            }
         }
      ]
   }
}

Error Response Content

Detailed error information.

The default content-type is application/json.

MIME Type: application/json


+ View Schema
{  "description": "HTM Error Response", 
   "type": "object",
   "properties":
   {  "errorNumber": {"type": "string",
         "description": "Message ID of the exception."
      },
      "errorMessage": {"type": "string",
         "description": "Message text of the exception."
      },
      "programmersDetails": {"type": "object", "optional": true,
         "description":"Additional, exception details, for example, a stack trace."
      }
   }
} 

Status Codes

The method returns one of the following status codes:
CodeDescription
200 OK
Successful completion - requested data returned. Note that the list may be empty.
400 Bad RequestThe parameters are not valid or they are missing.
401 UnauthorizedThe caller is not authorized for this request.
500 Internal Server ErrorA severe problem has occurred, programmer's details are provided.

Available Since

6.2

Parent Topic: Task Instance Subtask List Resource