cancel
Showing results for 
Search instead for 
Did you mean: 

Assignee null when complete task

thysmichels
Champ in-the-making
Champ in-the-making
I am using the REST interface and I am seeing something strange. I have a human task created and assignee a user:

JSONStringer jsAssignee = new JSONStringer();
jsAssignee.object().key("assignee").value(actorName);
jsAssignee.endObject();
JsonRepresentation jsonAssigneeRepresentation = new JsonRepresentation(jsAssignee);
Representation assigneeResponse = getClientResource("http://localhost:8080/activiti/runtime/tasks/21").put(jsonAssigneeRepresentation);

It works and I can see assignee has changed from null to actorName.

Then I complete the task:

JSONStringer jsComplete = new JSONStringer();
jsComplete.object().key("action").value("complete");
jsComplete.endObject();
JsonRepresentation jsonCompleteRepresentation = new JsonRepresentation(jsComplete);
Representation completeResponse = getClientResource(uri).post(jsonCompleteRepresentation, MediaType.APPLICATION_JSON);

The complete action works BUT I see that assignee has changed from actorName to null.

Do I need to set the assignee every time after I do a complete?                      

1 REPLY 1

jbarrez
Star Contributor
Star Contributor
No, that shouldn't be the case - but you might have hit a bug.

Feel free to create a jira (or even better - a pull request 😉 )