01-19-2016 08:11 AM
@Rule
public ActivitiRule activitiRule = new ActivitiRule();
@Test
@Deployment(resources = {"org/activiti/test/my-process.bpmn20.xml"})
public void test() {
TaskService taskService = activitiRule.getTaskService();
Task task = taskService.newTask();
taskService.saveTask(task);
List<Task> tasks = taskService.createTaskQuery().or().taskId(task.getId()).processDefinitionKey("xyz").endOr().list();
assertTrue(!tasks.isEmpty());
}
01-21-2016 03:28 AM
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.