02-07-2012 08:56 PM
@Deployment(
"org/activiti/examples/bpmn/usertask/FinancialReportProcess.bpmn20.xml"})
public void testDelegate() {
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("financialReport");
List<Task> tasks = taskService.createTaskQuery().taskCandidateUser("fozzie").list();
assertEquals(1, tasks.size());
Task task = tasks.get(0);
String taskId = taks.getId();
task.setOwner("fozzie");
//taskService.cliam(taskId, "fozzie");
task.setAssignee("fozzie");
task.delegate("kermit");
assertEquals(DelegationState.PENDING, task.getDelegationState());
//taskService.resolveTask(taskId);
taskService.complete(taskId);
fail();
}
the method taskService.complete(taskId) return with no error.
02-07-2012 09:23 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.