Get Task Details
This operation gets task details.
Request
Operation Endpoint:
GET {workflowPath}/workflow/{tenantId} /tasks/{taskId}
| Parameter | Required | Description | |
|---|---|---|---|
| Headers | Authorization |
Yes | Access Token in format "Bearer <accessToken>
(see details in Authentication API. |
EnvironmentURL |
Yes | Reltio Environment URL. | |
| Query | showTaskVariables |
No |
If |
showTaskLocalVariables |
No |
If |
|
Response
Response Structure:
assignee: task assigneecreateTime: task creation timecreatedBy: task creatordueDate: due date for the process instance-
processInstanceComments: comments for the process instance, array with results for each element returned. Each result will have the following properties:id: comment IDmessage: comment messageauthor: comment authortime: comment time
displayName: task nameprocessInstanceId: process instance IDprocessType: process definition typeprocessDefinitionDisplayName: process definition display nametaskType: task definition type (provided during process design time)suspended: is suspended (true/false)objectURIs: object URIs for the task, the list contains two entities for potential matches or one entity/relation otherwise-
possibleActions: possible user actions on the taskaction: action namelabel: display value for the action
-
preferredAction: preferred possible user action on the taskaction: action namelabel: display value for the action
priority: task prioritypriorityClass: Urgent/High/Medium/Low based on the priority value-
repeatingTask: indicates whether the task has been repeated or not (true/false). Thetruevalue means that a task of the same task type was created earlier in the process. Default isfalse validationMessage: validation messagetaskLocalVariables-task local variablestaskVariables-task variableserror: returned if an error is encountered, contains details of the issue:errorCode: 5-digit error codeerrorMessage: error messageerrorData: details of the error:exception: exception messagestack: stack trace
innerError: details of the error from Reltio API:errorMessage: Reltio API error messageerrorCode: Reltio API error codeinnerErrorData:Reltio API inner error data
warning: returned if the operation is completed with some minor issuesstatus: result of the operation; possible values are "OK" or "failed"
Sample Response JSON (entity update review for Entity e1):
{
"assignee": "aflegler_dcr_rewiew",
"processInstanceId": "9757822",
"processType": "dataChangeRequestReview",
"objectURIs": [
"changeRequests/3FJnsSGF",
"entities/16ihMXZT",
"entities/xJWSm5f",
"entities/xJWSabC"
],
"suspended": false,
"createdBy": "aflegler_dcr_ini",
"priorityClass": "Medium",
"taskType": "dcrInternalReview",
"createTime": 1519803223049,
"dueDate": 1520408023049,
"processInstanceComments": [
{
"id": "9817798",
"message": "Reassigned to user2",
"author": "alexey.kononenko",
"time": 1521087459507
}
],
"taskId": "9757836",
"displayName": "Internal DS Review",
"processDefinitionDisplayName": "Data Change Request Review",
"possibleActions": [
{
"action": "Approve",
"label": "Approve"
},
{
"action": "Reject",
"label": "Reject"
}
],
"priority": 50,
"preferredAction": {
"action": "Approve",
"label": "Approve"
},
"repeatingTask": false,
"validationMessage": "Change request changeRequests/3FJnsSGF doesn't exist",
"status": "OK",
"valid": false
}
Sample Response JSON (potential match review for Entity e1 with e2):
{
"assignee" : "user1",
"createTime" : 1234567890,
"createdBy" : "user5",
"dueDate" : 1234567890,
"displayName" : "Review Match",
"processInstanceId" : "1234",
"processType" : "potentialMatchReview",
"processDefinitionDisplayName" : "Review potential match",
"suspended" : false,
"priority" : 5,
"priorityClass" : "Low",
"taskType" : "reviewMatch",
"valid" : "true",
"objectURIs" : ["entities/e1", "entities/e2"],
"possibleActions" : [{
"action": "Merge",
"label": "Merge
},
{
"action": "Not a Match",
"label": "Not a Match"
}],
"preferredAction" :{
"action": "Merge",
"label": "Merge"
},
"status":"OK"
}