开发者

JBPM - Get the list of all the tasks

I'm trying to fetch the list of all the开发者_JAVA百科 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");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜