I would try :
List<Task> currentTasks = yourProcessEngine.getTaskService()
| .createTaskQuery()
| .processInstanceId(yourProcessInstanceId)
| .list()
You can also add various filters and/or order them by Name/ Priority, etc ...
(
http://docs.jboss.com/jbpm/v4/javadocs/)
If you want all the subprocesses, you could also look at the following methods in
org.jbpm.api.Execution
| getExecutions()
| findActiveActivityNames()
| getExecutionsMap()
|
hope this helps.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259547#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...