Created test to check the assignee value of the first task on the process you submitted here.
The assignee value is null.
<code>
public class TaskAssignmentTest extends BaseSpringRestTestCase {
public void testOneTaskProcessInstance() throws Exception {
try {
// Upload a valid BPMN-file using multipart-data
HttpPost httpPost = new HttpPost(SERVER_URL_PREFIX + RestUrls.createRelativeResourceUrl(RestUrls.URL_DEPLOYMENT_COLLECTION));
httpPost.setEntity(HttpMultipartHelper.getMultiPartEntity("ProcessInstanceResourceTest.oneTaskProcess.bpmn20.xml", "application/xml",
ReflectUtil.getResourceAsStream("org/activiti/rest/service/api/runtime/ProcessInstanceResourceTest.oneTaskProcess.bpmn20.xml"), null));
CloseableHttpResponse response = executeBinaryRequest(httpPost, HttpStatus.SC_CREATED);
JsonNode responseNode = objectMapper.readTree(response.getEntity().getContent());
closeResponse(response);
httpPost = new HttpPost(SERVER_URL_PREFIX + RestUrls.createRelativeResourceUrl(RestUrls.URL_PROCESS_INSTANCE_COLLECTION));
ProcessInstanceCreateRequest data = new ProcessInstanceCreateRequest();
data.setBusinessKey("myBusinessKey");
data.setProcessDefinitionKey("oneTaskProcess");
ObjectNode requestNode = (ObjectNode) objectMapper.readTree(objectMapper.writeValueAsString(data));
httpPost.setEntity(new StringEntity(requestNode.toString()));
response = executeRequest(httpPost, HttpStatus.SC_CREATED);
responseNode = objectMapper.readTree(response.getEntity().getContent());
closeResponse(response);
List<Task> tasks = taskService.createTaskQuery().processInstanceId(responseNode.get("id").asText()).list();
HttpGet httpGet = new HttpGet(SERVER_URL_PREFIX + RestUrls.createRelativeResourceUrl(RestUrls.URL_TASK, tasks.get(0).getId()));
response = executeRequest(httpGet, HttpStatus.SC_OK);
responseNode = objectMapper.readTree(response.getEntity().getContent());
closeResponse(response);
assertNotNull(responseNode);
assertTrue(responseNode.get("assignee") == null);
} finally {
// Always cleanup any created deployments, even if the test failed
List<org.activiti.engine.repository.Deployment> deployments = repositoryService.createDeploymentQuery().list();
for (org.activiti.engine.repository.Deployment deployment : deployments) {
repositoryService.deleteDeployment(deployment.getId(), true);
}
}
}
}
</code>