Hi,
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:
[java]
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
[/java]
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
[java]
List<Task> taskList = taskService.createTaskQuery().processInstanceId(processInstance.getProcessInstanceId()).list();
[/java]
But I want to do something like this:
[java]
List<Task> taskList = taskService.createTaskQuery().pool("pool1").lane("role1").list();
[/java]
Why this functionality is not supported? With the XML hierarchy in mind this classes and functions are absolutely logical.