Fetch subprocess instance id using parent process instance

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2011 02:02 PM
How can we fetch sup process process instance id(s) using parent processs intance id.?
Is there any way to fetch using history or execution services?
Is there any way to fetch using history or execution services?
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2011 03:30 AM
ProcessInstanstanceQuery
/**
* Select the process instances which are a sub process instance of the given
* super process instance.
*/
ProcessInstanceQuery superProcessInstanceId(String superProcessInstanceId);

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-15-2011 12:25 PM
Thanks for the reply.
Is there a way to query subprocess of a process that are completed execution?
I didn't find any method in historyService
Is there a way to query subprocess of a process that are completed execution?
I didn't find any method in historyService

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2011 03:25 AM
Looks like that is not available in the history. As a workaround, you could write the ID of the parent process in a variable when the sub-process ends. This way, you can use the processVariableValueEquals("parentProcId", "1234"); to find this out…
