Unify and manage your data

Get historic task details by ID

Learn how you can use the Get historic task details by ID endpoint to retrieve the details of a closed or historic workflow task by its task ID.

Use the Workflow to retrieve the details of a closed workflow task using its unique task ID.

Make sure you are assigned the ROLE_WORKFLOW role before you use this API.

HTTP method and endpoint

Use the following HTTP method and endpoint path to submit the request for retrieving a historic task by ID:


GET {workflowPath}/workflow/{tenantId}/tasks/history/{taskId}
            

Replace:

  • {workflowPath} with your Workflow API base path. For example https://prod-workflow.reltio.com/workflow-adapter
  • {tenantId} with your tenant ID.
  • {taskId} with the ID of the historic task.

Request headers

The following request headers must be included.

HeaderValueRequired
AuthorizationBearer <accessToken>. For more details, see Authentication API.Yes
EnvironmentURLReltio environment URLYes

Query parameters

The following query parameters can be included in the request.

ParameterTypeRequiredDescription
showTaskVariablesBooleanNo

true or false.

If set to true, returns the task-level variables, which are workflow process variables available at task scope. The default value is false.

showTaskLocalVariablesBooleanNo

true or false.

If set to true, returns the task local variables, which are variables specific to the individual task instance. The default value is false.

Example request

Use the following example to see how a complete request is structured with headers.


GET {workflowPath}/workflow/{tenantId}/tasks/history/23164197?showTaskVariables=true
Authorization: Bearer <access_token>
EnvironmentURL: https://dev.reltio.com
    

Response fields

The following table describes the fields returned in the response body.

FieldTypeDescription
taskIdStringUnique identifier of the task.
assigneeStringUser assigned to the task.
processInstanceIdStringIdentifier of the associated process instance.
processTypeStringType of the process definition.
objectURIsArray<String>List of object URIs associated with the task.
createdByStringUser who created the task.
priorityClassStringPriority classification (for example, Low, Medium, High, or Urgent).
taskTypeStringType of the task definition defined during process design time.
createTimeNumberTimestamp (epoch milliseconds) when the task was created.
dueDateNumberTimestamp (epoch milliseconds) representing the task due date.
displayNameStringDisplay name of the task.
processDefinitionDisplayNameStringDisplay name of the process definition.
priorityNumberNumeric priority value of the task.
repeatingTaskBooleanIndicates whether the task is configured as a repeating task.
isOpenBooleanIndicates whether the task is still open (true) or closed (false).
completeTimeNumberTimestamp (epoch milliseconds) when the task was completed.
completedByStringUser who completed the task.
validBooleanIndicates whether the task is valid.
taskVariablesObjectTask-level variables returned when showTaskVariables=true.
taskLocalVariablesObjectTask local variables returned when showTaskLocalVariables=true.

Example response

The following example shows a response returned for a closed task.


{
  "assignee": "user1",
  "processInstanceId": "23164186",
  "processType": "dataChangeRequestReview",
  "objectURIs": [
    "changeRequests/AeFAoBPn",
    "entities/16lJbKKs"
  ],
  "createdBy": "user2",
  "priorityClass": "Low",
  "taskType": "dcrReview",
  "createTime": 1606292473723,
  "dueDate": 1606465273724,
  "taskId": "23164197",
  "displayName": "DCR Review",
  "processDefinitionDisplayName": "Data Change Request Review",
  "priority": 1,
  "repeatingTask": false,
  "isOpen": false,
  "completeTime": 1607002013680,
  "completedBy": "user1",
  "valid": true
}