Powered By Blogger

Thursday, August 4, 2011

Getting the Tasks from WorkflowInstance

WorkflowTaskQuery tasksQuery = new WorkflowTaskQuery();
tasksQuery.setTaskState(null);
tasksQuery.setActive(null);
tasksQuery.setProcessId(workflowInstance.id);
List tasks = workflowService.queryTasks(tasksQuery);


From the WorkflowTask get the id and make the query to get all the tasks.

1 comment: