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?