AnsweredAssumed Answered

Tasks in Lanes in Pools

Question asked by tzaenker on Jan 7, 2016
Latest reply on Jan 20, 2016 by jbarrez
I am new with Activiti.

I really like the idea of Workflow engines and the BPMN 2.0 standard.

At the moment I try to find out how I can work with pools and swimmlanes in Java.

The XML is hierarchical. So I am wondering why the corresponding Java API does not reflect this.

1) I would expect something like this:
    Task t1 = ….
     Lane l1 = t1.getLane();  //  Lane class is not existent in the API and also Task.getLane() does not exist
     Pool p1 = l1.getPool();  // Pool class does not exists in the API
     How I can determine in which Lane and Pool my Task is?

2) How I can filter my tasks by pool or lane?
        I can get a task for specific processId
                 List<Task> taskList = taskService.createTaskQuery().processInstanceId(processInstance.getProcessInstanceId()).list();
      But I want to do something like this:
                         List<Task> taskList = taskService.createTaskQuery().pool("pool1").lane("role1").list();

     Why this functionality is not supported? With the XML hierarchy in mind this classes and functions are absolutely logical.