AnsweredAssumed Answered

why task query list is not working for receive tasks

Question asked by sakumar1 on Jan 14, 2016
Latest reply on Jan 21, 2016 by jbarrez
Below test case returns null attached bpmn file

   @Deployment(resources = {"org/activiti/test/my-process.bpmn20.xml"})
   public void test() {
      ProcessInstance processInstance = activitiRule.getRuntimeService().startProcessInstanceByKey("my-process");
      assertNotNull(processInstance);
      Task task = activitiRule.getTaskService().createTaskQuery().processInstanceId(processInstance.getProcessInstanceId()).list().get(0);
       assertEquals("Activiti is awesome!", task.getName());
   }

}
is this is a issue ?

Regards,
Sakumar

Attachments

Outcomes