Maciej Swiderski [
http://community.jboss.org/people/swiderski.maciej] replied to the
discussion
"Getting the last actor of the completed task"
To view the discussion, visit:
http://community.jboss.org/message/541133#541133
--------------------------------------------------------------
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
[
http://community.jboss.org/message/541133#541133]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]