Not able to complete a task with Rest API. I get this message.
{ "type": "RestException", "message": "Cannot complete task aa291bcd-ce6d-11eb-a651-00505690521a: no processes deployed with key 'null' and tenant-id 'null': processDefinition is null" }
Task is very much there and I can close it with cockpit. This is the detail with Get task/{id}
{
"_links": {
"assignee": {
"href": "/user/demo"
},
"execution": {
"href": "/execution/9dd04003-ce6d-11eb-a651-00505690521a"
},
"identityLink": {
"href": "/task/aa291bcd-ce6d-11eb-a651-00505690521a/identity-links"
},
"processDefinition": {
"href": "/process-definition/CollectionTopFlow:8:96d8a672-ce6d-11eb-a651-00505690521a"
},
"processInstance": {
"href": "/process-instance/9dd04003-ce6d-11eb-a651-00505690521a"
},
"self": {
"href": "/task/aa291bcd-ce6d-11eb-a651-00505690521a"
}
},
"_embedded": {
"identityLink": [
{
"_links": {
"task": {
"href": "/task/aa291bcd-ce6d-11eb-a651-00505690521a"
},
"user": {
"href": "/user/demo"
}
},
"_embedded": null,
"type": "assignee",
"userId": "demo",
"groupId": null,
"taskId": "aa291bcd-ce6d-11eb-a651-00505690521a"
}
],
"processDefinition": [
{
"_links": {
"deployment": {
"href": "/deployment/96d60e60-ce6d-11eb-a651-00505690521a"
},
"resource": {
"href": "/deployment/96d60e60-ce6d-11eb-a651-00505690521a/resources/CollectionTopFlow.bpmn"
},
"self": {
"href": "/process-definition/CollectionTopFlow:8:96d8a672-ce6d-11eb-a651-00505690521a"
}
},
"_embedded": null,
"id": "CollectionTopFlow:8:96d8a672-ce6d-11eb-a651-00505690521a",
"key": "CollectionTopFlow",
"category": "http://bpmn.io/schema/bpmn",
"description": null,
"name": "Collection Top Flow",
"versionTag": null,
"version": 8,
"resource": "CollectionTopFlow.bpmn",
"deploymentId": "96d60e60-ce6d-11eb-a651-00505690521a",
"diagram": null,
"suspended": false,
"contextPath": null
}
],
"user": [
{
"_links": {
"self": {
"href": "/user/demo"
}
},
"_embedded": null,
"id": "demo",
"firstName": "XYZ",
"lastName": "User",
"email": "demo@demo.com"
}
]
},
"id": "aa291bcd-ce6d-11eb-a651-00505690521a",
"name": "Review Demo",
"assignee": "demo",
"created": "2021-06-16T02:39:56.651-0400",
"due": null,
"followUp": null,
"delegationState": null,
"description": null,
"executionId": "9dd04003-ce6d-11eb-a651-00505690521a",
"owner": null,
"parentTaskId": null,
"priority": 50,
"processDefinitionId": "CollectionTopFlow:8:96d8a672-ce6d-11eb-a651-00505690521a",
"processInstanceId": "9dd04003-ce6d-11eb-a651-00505690521a",
"taskDefinitionKey": "review-details",
"caseExecutionId": null,
"caseInstanceId": null,
"caseDefinitionId": null,
"suspended": false,
"formKey": null,
"tenantId": null
}```