Community

Getting the last actor of the completed task

reply from Maciej Swiderski in jBPM - View the full discussion

Hi,

 

in general you can do it using TaskService and TaskQuery, as follows:

 

List<Task> tasks = taskService.createTaskQuery().
               processInstanceId(processInstance.getId()).activityName("activityName").list();

You can use as well orderByDesc or Asc to sort the result.

 

HTH

Maciej

Reply to this message by going to Community

Start a new discussion in jBPM at Community