cancel
Showing results for 
Search instead for 
Did you mean: 

Get subprocess that contain the a FlowNode.

minhquankq
Champ in-the-making
Champ in-the-making
Hi all, I have a FlowNode and I'd like to get the SubProcess (get subprocess id) which contain that FlowNode. How can I query it.

Thanks
Quan Vo
1 REPLY 1

minhquankq
Champ in-the-making
Champ in-the-making
Example:
I have a subprocess:

<subProcess id="sid-2A924BB8-E952-4F01-AF96-A721C3FB88C2" name="Change VLAN">
      <serviceTask id="sid-7FFB6E05-A88F-4856-84CC-7D1AA1976A0B" name="Request change VLAN" activiti:class="sdk.activiti.CloudV2SendingRequest">
        <extensionElements>
          <activiti:executionListener event="start" class="org.activiti.engine.impl.bpmn.listener.ScriptExecutionListener">
            <activiti:field name="language">
              <activiti:string><![CDATA[groovy]]></activiti:string>
            </activiti:field>
            <activiti:field name="script">
              <activiti:string><![CDATA[execution.setVariable("status", "waiting_for_changing_vlan_execution");]]></activiti:string>
            </activiti:field>
          </activiti:executionListener>
        </extensionElements>
      </serviceTask>
</subProcess>
Now I have id "sid-7FFB6E05-A88F-4856-84CC-7D1AA1976A0B" (Id of service task), how can I get the subProcess id ("sid-2A924BB8-E952-4F01-AF96-A721C3FB88C2")