Get a Task
get
/process/api/v1/tasks/{id}
Get task detail by ID.
Request
Path Parameters
-
id(required): string
Task ID
Query Parameters
-
totalResultsGrouped: boolean
Boolean flag to fetch total, open, closed, and overdue count of child tasks.Default Value:
false
Header Parameters
-
Accept-Language:
Accept-Language header in IETF BCP 47
-
oci-original-url:
Endpoint that the customer requested.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Successful operation
Nested Schema : Task-allOf[1]
Type:
Show Source
object
-
activityInstanceId: string
-
applicationName: string
-
applicationTitle: string
-
assignedDate: string
(date)
Assigned date in the format YYYY-MM-DDTHH:MM:SS[.sss]Z
-
assignee:
User
-
availableActions: object
taskActions
-
businessKey: string
-
candidateGroups: array
candidateGroups
-
candidateUsers: array
candidateUsers
-
completedDate: string
(date)
Time when the task was deleted or completed in format YYYY-MM-DDTHH:MM:SS[.sss]Z
-
createdBy:
UserOrAppClient
-
createdDate: string
(date)
The time the task was created in the format YYYY-MM-DDTHH:MM:SS[.sss]Z
-
description: string
-
dpDefinitionDescription: string
-
dpDefinitionId: string
-
dpDefinitionKey: string
-
dpDefinitionTitle: string
-
dpExecutionId: string
-
dpInstanceId: string
-
dpName: string
-
dueDate: string
(date)
Due date in the format YYYY-MM-DDTHH:MM:SS[.sss]Z
-
expirationDate: string
(date)
Expiry date in the format yyyy-MM-dd'T'HH:mm:ss.
-
externalFormUrl: string
-
finishedDate: string
(date)
Time when the task was deleted or completed in format YYYY-MM-DDTHH:MM:SS[.sss]Z
-
formURL: string
-
fromUser:
UserOrAppClient
-
id: string
-
isAdhoc: boolean
Specifies whether it is an adhoc task or not.
-
isEscalated: boolean
This will be true if the Task got Escalated.
-
isSuspended: boolean
This will be true if the process is suspended.
-
lastUpdatedDate: string
(date)
Last updated date in the format YYYY-MM-DDTHH:MM:SS[.sss]Z
-
originalAssignee:
User
-
outcome: string
-
parentTask: object
ParentTaskDetail
-
priority: integer
(int32)
Allowed Values:
[ "1", "2", "3" ]
-
processDefinitionDescription: string
-
processDefinitionId: string
-
processDefinitionKey: string
-
processDefinitionTitle: string
-
processExecutionId: string
-
processInstanceId: string
-
processName: string
-
reason: object
Reason
-
reasonText: string
Single line description of the latest life-cycle operation for this task with user provided comment if applicable.
-
rootInstanceId: string
-
rootProcessId: string
-
state: string
Allowed Values:
[ "ASSIGNED", "UNASSIGNED", "WITHDRAWN", "COMPLETED", "DELEGATED", "FAULTED" ]
-
substate: string
Allowed Values:
[ "INITIATED", "CLAIMED", "RELEASED", "INFO_REQUESTED", "INFO_SUBMITTED", "REASSIGNED", "ESCALATED", "WITHDRAWN", "WITHDRAWN_TERMINATION", "EXPIRED" ]
-
summary: string
-
tags: array
tags
-
taskDefinitionKey: string
-
title: string
-
totalResultsGrouped: object
TaskTotalResultsGrouped
Nested Schema : Link
Type:
object
Defines Link
Show Source
-
code: integer
Minimum Value:
100
Maximum Value:600
-
href(required): string
-
hreflang: string
-
length: integer
(int32)
-
mediaType: string
-
message: string
-
rel(required): string
-
title: string
-
type: string
Nested Schema : UserOrAppClient
Match All
Show Source
-
object
IdentityCommon
-
object
Discriminator: type
Discriminator:
{ "propertyName":"type" }
Nested Schema : Reason
Type:
Show Source
object
-
action: string
Allowed Values:
[ "INITIATE", "CLAIM", "RELEASE", "REASSIGN", "INFO_REQUEST", "INFO_SUBMIT", "COMPLETE", "WITHDRAW", "ESCALATE", "EXPIRED" ]
-
assignee:
User
-
candidateGroups: array
candidateGroups
-
candidateUsers: array
candidateUsers
-
comment: string
-
date: string
(date)
Date in the format yyyy-MM-dd'T'HH:mm:ssZ.
-
errorMessage: string
-
outcome: string
-
subaction: string
Allowed Values:
[ "TERMINATED", "FAULTED" ]
-
user:
User
Nested Schema : taskAction
Type:
Show Source
object
-
actionId: string
-
isCommentMandatory: boolean
Default Value:
false
Specifies if comment is mandatory while performing task action. -
title: string
Nested Schema : GroupAndRole
Match All
Show Source
-
object
IdentityCommon
-
object
Discriminator: type
Discriminator:
{ "propertyName":"type" }
Nested Schema : Discriminator: type
Type:
Show Source
object
-
type: string
Allowed Values:
[ "GROUP", "ROLE" ]
Nested Schema : Discriminator: type
Type:
Show Source
object
-
type: string
Allowed Values:
[ "USER", "APPCLIENT" ]
401 Response
Unauthorized
404 Response
Task not found for given ID
429 Response
Too many requests
500 Response
Internal server error
503 Response
Too many exceptions or too slow requests
Examples
Example: Get list of
The following example shows how to get details of a task by submitting a GET request on the REST resource using cURL. For more information about cURL, see cURL Access. For more information about endpoint URL structure, see Send Requests.
curl -X 'GET' \
'https://oracle.com/process/api/v1/tasks/asdfgh1234asdfgh?totalResultsGrouped=false' \
-H 'accept: application/json' \
-H 'Accept-Language: en' \
-H 'oci-original-url: oracle'
Example Format of 200 Operation Successful Response
{
"links": [
{
"href": "http://oracle.com:9020/process/api/v1/tasks/1f15bc3a-5948-11ef-873e-0242ac15001b",
"rel": "self"
},
{
"href": "http://oracle.com:9020/process/api/v1/tasks",
"rel": "parent"
},
{
"href": "http://oracle.com:9020/process/api/v1/tasks/1f15bc3a-5948-11ef-873e-0242ac15001b/comments",
"rel": "comments"
},
{
"href": "http://oracle.com:9020/process/api/v1/tasks/1f15bc3a-5948-11ef-873e-0242ac15001b/documents",
"rel": "documents"
},
{
"href": "http://oracle.com:9020/process/api/v1/tasks/1f15bc3a-5948-11ef-873e-0242ac15001b/payload",
"rel": "payload"
}
],
"id": "1f15bc3a-5948-11ef-873e-0242ac15001b",
"title": "User task V1",
"isAdhoc": false,
"priority": 2,
"state": "COMPLETED",
"substate": "EXPIRED",
"isEscalated": false,
"reason": {
"user": {
"id": "8100030d-f312-4204-8f37-bd4d1c779ddb",
"name": "System"
},
"candidateUsers": [
{
"id": "077acfe8-fc17-4ceb-8216-e03286aab802",
"name": "hael"
},
{
"id": "50a6480d-ae57-41e8-9346-df7639b513b0",
"name": "wake"
},
{
"id": "20c0862f-fd35-40ca-a70d-03d0faac45a9",
"name": "ssaInstanceAdmin"
}
],
"candidateGroups": [],
"action": "EXPIRED",
"date": "2024-08-13T07:51:16.117+00:00"
},
"reasonText": "Task got expired at task expiration date by System on Tue Aug 13 07:51:16 GMT 2024",
"fromUser": {
"id": "20c0862f-fd35-40ca-a70d-03d0faac45a9",
"name": "ssaInstanceAdmin",
"type": "USER"
},
"createdBy": {
"id": "20c0862f-fd35-40ca-a70d-03d0faac45a9",
"name": "ssaInstanceAdmin",
"type": "USER"
},
"createdDate": "2024-08-13T07:46:16.582+00:00",
"dueDate": "2024-08-13T07:51:16.000+00:00",
"lastUpdatedDate": "2024-08-13T07:51:16.117+00:00",
"finishedDate": "2024-08-13T07:51:16.193+00:00",
"completedDate": "2024-08-13T07:51:16.193+00:00",
"assignedDate": "2024-08-13T07:46:16.596+00:00",
"processName": "HTProcess",
"activityInstanceId": "1f0e4229-5948-11ef-873e-0242ac15001b",
"processInstanceId": "1eede8d8-5948-11ef-873e-0242ac15001b",
"processDefinitionId": "HTApp--1.0--HTProcess:1:157df837-4dae-11ef-a741-0242ac15001f",
"processDefinitionKey": "HTApp--1.0--HTProcess",
"processExecutionId": "1eede8d8-5948-11ef-873e-0242ac15001b",
"rootInstanceId": "1eede8d8-5948-11ef-873e-0242ac15001b",
"rootProcessId": "1eede8d8-5948-11ef-873e-0242ac15001b",
"taskDefinitionKey": "flow_6cb9a1bc-9ecd-b1d6-4dd1-e5d0cade43dd",
"applicationName": "HTApp",
"applicationTitle": "HTApp",
"businessKey": "testBKey",
"candidateUsers": [],
"candidateGroups": [],
"availableActions": {
"system": [
{
"title": "VIEW_TASK_PAYLOAD",
"actionId": "VIEW_TASK_PAYLOAD"
},
{
"title": "VIEW_TASK",
"actionId": "VIEW_TASK"
},
{
"title": "ADD_DOCUMENT",
"actionId": "ADD_DOCUMENT"
},
{
"title": "ADD_COMMENT",
"actionId": "ADD_COMMENT"
}
],
"custom": []
},
"expirationDate": "2024-08-13T07:51:16.000+00:00",
"tags": []
}