taskService.setVariableLocal(task.getId(), "local", "test");
taskService.setOwner(task.getId(), "test");
taskService.setDueDate(task.getId(), new GregorianCalendar(2013, 0, 1).getTime());
// Set tenant on deployment
managementService.executeCommand(new ChangeDeploymentTenantIdCmd(deploymentId, "myTenant"));
ProcessInstance processInstance2 = runtimeService.startProcessInstanceByKeyAndTenantId("oneTaskProcess", processVariables, "myTenant");
Task task2 = taskService.createTaskQuery().processInstanceId(processInstance2.getId()).singleResult();
String url = RestUrls.createRelativeResourceUrl(RestUrls.URL_HISTORIC_TASK_INSTANCES);