The TaskQuery won't let search by Parent ProcessInstance.
getActiveActivityNames return the name of the active subprocess but not the ID.
So it's useless for querying with TaskQuery.
getExecutions() on the Parent ProcessInstance return empty since the execution
is in the sub-process
And I havn
I would try :
List 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 subp
Have you found a solution for this? We are have the same use case were we have
a process with a lot of subprocesses that create several tasks and we need a
simple way to query for all the tasks for the process including tasks generated
by its subprocesses. The interfaces have some limitations an