Community

Getting the last actor of the completed task

reply from Al Nadein in jBPM - View the full discussion

Thanks Maceij,

 

I went with a work-around:

 

I made transitions to the tasks match tasks names: if a task is called 'task-1', then transition is 'to-task-1'. Holding the pattern, i can do:

 

processEngine.getHistoryService().createHistoryTaskQuery().executionId(executionId+".to-"+activityName).state(Task.STATE_COMPLETED).uniqueResult();

where activityName is 'task-1'

 

Thanks again for help!

Reply to this message by going to Community

Start a new discussion in jBPM at Community