Community

Getting the last actor of the completed task

reply from Maciej Swiderski in jBPM - View the full discussion

Hi,

 

sorry, I gave you wrong examples. It should be:

 

List<HistoryTask> history = historyService.createHistoryTaskQuery().executionId(processInstance.getId()).list();

 

Unfortunately there is no way to narrow down the search by activity name but you can either use task id or outcome.

 

In the worst case you will get all completed task for execution and the filter it manually.

 

Cheers,

Maciej

Reply to this message by going to Community

Start a new discussion in jBPM at Community