문제

I'm trying to fetch the list of all the tasks within the JBPM database. I'm using the following code :

 List<Task> liste = taskService.createTaskQuery().list();

But it gives me a list of the first task of each workflow... How could I get the other tasks?

Regards,

도움이 되었습니까?

해결책

To retrieve all task instances

    JbpmConfiguration conf = JbpmConfiguration.parseResource("jbpm.cfg.xml");
    JbpmContext context = conf.createJbpmContext();
    List<TaskInstance> taskList = context.getTaskList();

To retrieve task instances using actor

    JbpmConfiguration conf = JbpmConfiguration.parseResource("jbpm.cfg.xml");
    JbpmContext context = conf.createJbpmContext();
    List<TaskInstance> taskList = context.getTaskList("Head of Department");
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top