Hey,
I was wondering if there is a way to create a query able to return a list of the tasks which are in wait state.
This is what I was able to produce:
TaskService taskService = processEngine.getTaskService();
TaskQuery query = taskService.createTaskQuery()
.processInstanceId(processInstance.getId())
. // not able to find a proper method to retrive the tasks in wait state;
List<Task> tasks = query.list();
Task task1 = tasks.get(0);
LOGGER.info(task1.getName());
But Still I am not able to find the right method able to filter dei tasks in the way that I want.
Do you have any ideas?