JBoss Community

How to retrieve unfinished tasks from process instance in jbpm 5

created by Mdu Keswa in jBPM Development - View the full discussion

I've seen a couple of examples using BAM (I think jbpm graph uses this approach). There's also a Drools Fusion approach for more control. There used to be a way in jBPM 3.x:

 

ProcessInstance processInstance= getProcessInstance();

//get the task management instance of the process instance

TaskMgmtInstance taskManagementInstance = processInstance.getTaskMgmtInstance();

//find the unfinished tasks

Collection taskInstances = taskManagementInstance.getUnfinishedTasks(processInstance.getRootToken());

 

 

Is there a similar way in jBPM5?

Reply to this message by going to Community

Start a new discussion in jBPM Development at Community