JBoss Community

Getting the last actor of the completed task

reply from Al Nadein in jBPM - View the full discussion

Found a better way to get a history task via HistoryActivityInstance:

 

HistoryActivityInstance hai = historyService.createHistoryActivityInstanceQuery().processInstanceId(pid).activityName(activityName).uniqueResult();

if (hai.getClass() == HistoryTaskInstanceImpl.class)

     HistoryTask ht = ((HistoryTask)hai).getHistoryTask();

 

Reply to this message by going to Community

Start a new discussion in jBPM at Community