AnsweredAssumed Answered

subProcessInstanceId filter for HistoricProcessInstance

Question asked by andregs on Sep 16, 2011
Hi,

This is what I do when I want to find the parent process of a call activity:

getRuntimeService().createProcessInstanceQuery().subProcessInstanceId(parentId).singleResult()

This works when the process excecution is not finished. When it's over, I have to search in History, right? But there's not a method like getHistoryService().createHistoricProcessInstanceQuery().subProcessInstanceId(parentId)…

How can I do such query?

My goal: given a parent process instance, I need to find all its call activities.

Vice-versa would also be usefull: find parent process instance given a call activity instance id.

How can I do that?

Thanks in advance,

Outcomes