REST Interface for BPEL-related Task Resources - Task Instance Subtask List Resource - GET Method

Use this method to retrieve a list of subtasks.

Sample method invocation

GET /rest/bpm/htm/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


Schema
{  "description": "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.",
               "enum":
               [
                  "STATE_CLAIMED", 
                  "STATE_EXPIRED", 
                  "STATE_FAILED", 
                  "STATE_FINISHED", 
                  "STATE_FORWARDED", 
                  "STATE_INACTIVE", 
                  "STATE_READY", 
                  "STATE_RUNNING", 
                  "STATE_TERMINATED"
               ]
            },
            "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


Schema
{  "description": "Error Response", 
   "type": "object",
   "properties":
   {  "errorNumber": {"type": "string",
         "description": "Message ID of the exception."
      },
      "errorMessage": {"type": "string",
         "description": "Message text of the exception."
      },
      "errorMessageParameters": {"type": ["string"], "optional": true,
         "description":"Message text parameters 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. The requested data is returned. Note that the list might be empty.
400 Bad RequestThe parameters are not valid or they are missing.
401 UnauthorizedThe caller is not authorized for this request.
406 Not AcceptableThe requested content type or content encoding is not supported.
500 Internal Server ErrorA severe problem has occurred. Programmer's details are provided.

Available since

6.2

Parent topic: Task Instance Subtask List Resource