Retrieve Closed/Open Tasks for an Object URI
This operation retrieves open or closed tasks for an object URI.
Request
Operation Endpoint:
GET {workflowPath}/workflow/{tenantId}/tasks?objectURI={objectURI}&offset={offset}&max={max}
| Parameter | Required | Description | |
|---|---|---|---|
| Headers | Authorization |
Yes | Access Token in format "Bearer
(see details
in Authentication API). |
EnvironmentURL |
Yes | Reltio Environment URL. | |
| Query | showTaskVariables |
No |
If |
showTaskLocalVariables |
No |
If |
|
Response
Response Structure:
offset: start position of recordssize:number of records returned-
data: Array with results for each element returned. Each result will have the following properties: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
taskID: task IDdisplayName: 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 task (for open tasks only)action: action namelabel: display value for the action
-
preferredAction: preferred possible user action on the task (for open tasks only)action: action namelabel: display value for the action
isOpen: true/false to indicate if the task is open/closedvalidationMessage: validation messagepriority: task prioritypriorityClass: Urgent/High/Medium/Low based on the priority valuelastActionTime: time of the last update on the task-
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 taskLocalVariables-task local variablestaskVariables-task variables
error: 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:
{
"data": [{
"assignee" : "user1",
"createTime" : 1234567890,
"createdBy":"user3",
"dueDate" : 1234567890,
"processInstanceComments" : [{
"id" : "123",
"message" : "Reassigned to user2",
"author":"manager",
"time" : 1234567890
}],
"taskId" : "8",
"valid" : "true",
"displayName" : "Review Entity to Delete",
"processInstanceId" : "5",
"processType" : "recommendForDelete",
"processDefinitionDisplayName" : "Recommend for Delete",
"taskType" : "reviewEntityToDelete",
"objectURIs" : ["entities/e1"],
"possibleActions" :[{
"action": "Accept",
"label": "Accept"
},
{
"action": "Ignore",
"label": "Ignore"
}],
"preferredAction" :{
"action": "Accept",
"label": "Accept"
},
"suspended" : false,
"isOpen" : true,
"priority" : 100,
"priorityClass" : "High",
"lastActionTime" : 1134567890,
},
{
"assignee" : "user2",
"createTime" : 1234567890,
"createdBy":"user4",
"dueDate" : 2345678901,
"processInstanceComments" : [{
"id" : "456",
"message" : "Reassigned to user2",
"author":"manager",
"time" : 1324567890
}],
"taskId" : "5",
"displayName" : "Review Potential Match",
"processInstanceId" : "3",
"processType" : "potentialMatchReview",
"processDefinitionDisplayName" : "Potential Match Review",
"taskType" : "reviewPotentialMatch",
"objectURIs" : ["entities/e1","entities/e2"],
"isOpen" : false,
"validationMessage" : "Change request changeRequests/dcr1 doesn't exist",
"priority" : 5,
"priorityClass" : "Low",
"lastActionTime" : 1214567890
}],
"offset": 0,
"size": 2,
"status":"OK"
}