Filtering for Subprocesses of a Process
To filter for subprocesses of a process, the following elements can be declared:
Element | Description |
---|---|
ProcessFilterByParentProcess | Filter type Contains the following elements:
|
ProcessStatus | Process status, multiple declaration possible. Possible values:
|
CallingProcessReference | Filter definition Contains the following elements:
|
ProcessInstanceId | UUID of the process |
ActionId | ID of the process step
The
ActionId can be taken from the output of the Find Process Execution Detail operation.
|
Example
Input
XML
<?xml version="1.0" encoding="UTF-8"?>
<Query>
<ProcessFilterByParentProcess>
<ProcessStatus>FINISHED</ProcessStatus>
<CallingProcessReference>
<ProcessInstanceId>cc0f0227-6f91-414d-baac-090dbc883e31</ProcessInstanceId>
<ActionId>0</ActionId>
</CallingProcessReference>
</ProcessFilterByParentProcess>
</Query>
Output
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ProcessExecutions>
<Paginate offset="0" limit="1"/>
<ProcessExecution id="84af6605-601a-4a46-a708-ae32c3125c87" rootId="cc0f0227-6f91-414d-baac-090dbc883e31">
<HostName>SOFTPROJECT</HostName>
<ParentProcess>
<ProcessInstanceId>cc0f0227-6f91-414d-baac-090dbc883e31</ProcessInstanceId>
<ActionId>3</ActionId>
</ParentProcess>
<Process>1/MyProject/Processes/MyProcess.wrf/MySubProcess.wrf</Process>
<StartedAt>2021-09-06T10:59:28Z</StartedAt>
<FinishedAt>2021-09-06T10:59:29Z</FinishedAt>
<TotalTime>1006</TotalTime>
<Status>FINISHED</Status>
</ProcessExecution>
</ProcessExecutions>