Process never end in case of event sub-process triggered by a multi-instance sub-process

Hello,

Here the diagram of the sub-process that never ends.

It’s composed of a multi-instance subprocess and an event sub-process.
The multi-instance subprocess throw a HTTP404 BPMN error.
The event sub-process catch this error and do it’s job.

But the process never ends.

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:flowable="http://flowable.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.flowable.org/processdef" exporter="Flowable Open Source Modeler" exporterVersion="6.7.2">
  <process id="bug" name="BUG" isExecutable="true">
    <subProcess id="subProcessA" name="SubProcess A" flowable:async="true">
      <subProcess triggeredByEvent="true" id="eventSubProcessA" flowable:exclusive="true" name="catch errors">
        <startEvent id="sid-1ca63fd5-28c2-4dbf-a99e-ab31c3cbeed8">
          <errorEventDefinition flowable:errorVariableName="error_code"/>
        </startEvent>
        <scriptTask id="sid-d5ab03e1-b27b-4b4c-9643-2916e4d46635" name="Add error to report" scriptFormat="groovy" flowable:autoStoreVariables="false">
          <script><![CDATA[println("Unexpected error: ${error_code}")]]></script>
        </scriptTask>
        <endEvent id="sid-1efa9ba7-a2b8-4830-b8b8-976ec85fab70"/>
        <sequenceFlow id="sid-09026633-a7d5-4b27-911c-e3d93f1d5a0d" sourceRef="sid-1ca63fd5-28c2-4dbf-a99e-ab31c3cbeed8" targetRef="sid-d5ab03e1-b27b-4b4c-9643-2916e4d46635"/>
        <sequenceFlow id="sid-f2d2b885-1112-49c6-beb9-79ce05b73015" sourceRef="sid-d5ab03e1-b27b-4b4c-9643-2916e4d46635" targetRef="sid-1efa9ba7-a2b8-4830-b8b8-976ec85fab70"/>
      </subProcess>
      <startEvent id="subProcessAStart" flowable:formFieldValidation="true"/>
      <subProcess id="subProcessB" name="SubProcess B" flowable:async="true">
          <multiInstanceLoopCharacteristics isSequential="true" flowable:collection="${collection}" flowable:elementVariable="item">
              <extensionElements/>
          </multiInstanceLoopCharacteristics>
        <startEvent id="subProcessBStart"/>
        <endEvent id="sid-96e8ded1-7022-4d6d-ae8a-b5630412d4fb"/>
        <serviceTask id="http404" name="Throw HTTP404" flowable:parallelInSameTransaction="true" flowable:type="http">
          <extensionElements>
            <flowable:field name="requestMethod">
              <flowable:string><![CDATA[GET]]></flowable:string>
            </flowable:field>
            <flowable:field name="requestUrl">
              <flowable:expression><![CDATA[http://host.docker.internal:1080/http404]]></flowable:expression>
            </flowable:field>
            <flowable:field name="handleStatusCodes">
              <flowable:string><![CDATA[404]]></flowable:string>
            </flowable:field>
          </extensionElements>
        </serviceTask>
        <sequenceFlow id="sid-e831ae01-69cc-4396-a989-f1acd34fe661" sourceRef="http404" targetRef="sid-96e8ded1-7022-4d6d-ae8a-b5630412d4fb"/>
        <sequenceFlow id="sid-752ca84c-eae0-4565-9ebc-37461c5aee65" sourceRef="subProcessBStart" targetRef="http404"/>
      </subProcess>
      <endEvent id="subProcessAEnd"/>
      <sequenceFlow id="sid-70ba29e8-022e-483c-bda0-a0240f619e7b" sourceRef="subProcessB" targetRef="subProcessAEnd"/>
      <sequenceFlow id="sid-f614ce38-fe01-4ab2-a600-ad3fe6807290" sourceRef="subProcessAStart" targetRef="subProcessB"/>
    </subProcess>
    <startEvent id="sid-7766770f-9c11-4527-ae87-830057c1a1bf"/>
    <endEvent id="sid-707a62cd-5a11-45a6-a9d8-dcafe0bb9fa8"/>
    <sequenceFlow id="sid-1c6282c7-4baa-4147-a84b-75b87c1f42fb" sourceRef="sid-7766770f-9c11-4527-ae87-830057c1a1bf" targetRef="subProcessA"/>
    <sequenceFlow id="sid-06f41223-d13e-4649-a895-89421a135e47" sourceRef="subProcessA" targetRef="sid-707a62cd-5a11-45a6-a9d8-dcafe0bb9fa8"/>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_bug1">
    <bpmndi:BPMNPlane bpmnElement="bug1" id="BPMNPlane_bug1">
      <bpmndi:BPMNShape bpmnElement="subProcessA" id="BPMNShape_subProcessA">
        <omgdc:Bounds height="859.00006" width="1125.0" x="1225.0" y="129.99994"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="subProcessAStart" id="BPMNShape_subProcessAStart">
        <omgdc:Bounds height="30.0" width="30.0" x="1280.0" y="482.99994"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="http404" id="BPMNShape_http404">
        <omgdc:Bounds height="185.0" width="195.0" x="1712.5" y="430.49997"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="subProcessB" id="BPMNShape_subProcessB">
        <omgdc:Bounds height="354.00003" width="565.0" x="1517.5" y="320.9999"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="subProcessBStart" id="BPMNShape_subProcessBStart">
        <omgdc:Bounds height="30.0" width="30.0" x="1557.5" y="507.99997"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="subProcessAEnd" id="BPMNShape_subProcessAEnd">
        <omgdc:Bounds height="30.0" width="30.0" x="2305.0" y="482.99994"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="shape-d83e8bb3-327c-4557-b1bc-939c83e0bef9" bpmnElement="eventSubProcessA">
        <omgdc:Bounds x="1368.7499" y="739.24994" width="675.0" height="220.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="shape-468d0b10-121b-42c3-8514-da26903d5147" bpmnElement="sid-1ca63fd5-28c2-4dbf-a99e-ab31c3cbeed8">
        <omgdc:Bounds x="1433.7499" y="849.24994" width="30.0" height="30.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="shape-b8078867-9032-48db-a2db-3464cc4397b6" bpmnElement="sid-d5ab03e1-b27b-4b4c-9643-2916e4d46635">
        <omgdc:Bounds x="1533.7499" y="799.24994" width="335.0" height="130.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="shape-4acd3075-9d69-4e68-863b-d2b0805c5918" bpmnElement="sid-1efa9ba7-a2b8-4830-b8b8-976ec85fab70">
        <omgdc:Bounds x="1952.3184" y="849.24994" width="30.0" height="30.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="edge-f6910cc1-d525-48c4-aa12-ebd2e4dca6a4" bpmnElement="sid-09026633-a7d5-4b27-911c-e3d93f1d5a0d">
        <omgdi:waypoint x="1463.7499" y="864.24994"/>
        <omgdi:waypoint x="1533.7499" y="864.24994"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="shape-f7ce01a1-8166-4771-bb5b-31b749a8fdd2" bpmnElement="sid-96e8ded1-7022-4d6d-ae8a-b5630412d4fb">
        <omgdc:Bounds x="1997.5" y="508.0" width="30.0" height="30.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="edge-47ef4d5e-9702-4ada-b4f7-d97d3cb78fae" bpmnElement="sid-70ba29e8-022e-483c-bda0-a0240f619e7b">
        <omgdi:waypoint x="2082.5" y="497.99994"/>
        <omgdi:waypoint x="2305.0" y="497.99994"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="shape-8574abf3-2cc7-40a0-adb7-cdf8894a61a8" bpmnElement="sid-7766770f-9c11-4527-ae87-830057c1a1bf">
        <omgdc:Bounds x="1065.0" y="544.5" width="30.0" height="30.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="shape-858bd1e5-36e1-48d8-8e85-5dfbd0686fea" bpmnElement="sid-707a62cd-5a11-45a6-a9d8-dcafe0bb9fa8">
        <omgdc:Bounds x="2455.0" y="544.5" width="30.0" height="30.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="edge-4f5b89c6-9841-4ee1-9a05-85fd930ae76f" bpmnElement="sid-1c6282c7-4baa-4147-a84b-75b87c1f42fb">
        <omgdi:waypoint x="1095.0" y="559.5"/>
        <omgdi:waypoint x="1225.0" y="559.49994"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="edge-68fe6906-9df0-4d28-894c-7913f1429795" bpmnElement="sid-06f41223-d13e-4649-a895-89421a135e47">
        <omgdi:waypoint x="2350.0" y="559.49994"/>
        <omgdi:waypoint x="2454.9998" y="559.5"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="edge-557f0016-fcf5-4cc8-baa3-40dd43767d59" bpmnElement="sid-e831ae01-69cc-4396-a989-f1acd34fe661">
        <omgdi:waypoint x="1907.5" y="523.0"/>
        <omgdi:waypoint x="1997.5" y="523.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="edge-a4522753-ec1a-4c1b-990a-f2717610d954" bpmnElement="sid-f614ce38-fe01-4ab2-a600-ad3fe6807290">
        <omgdi:waypoint x="1310.0" y="497.99994"/>
        <omgdi:waypoint x="1517.5" y="497.99994"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="edge-a958b77a-05d9-410d-a67b-86c01dc3ed4b" bpmnElement="sid-752ca84c-eae0-4565-9ebc-37461c5aee65">
        <omgdi:waypoint x="1587.5" y="523.0"/>
        <omgdi:waypoint x="1712.5" y="523.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="edge-1f537690-9810-49f2-9c4b-79468ee86159" bpmnElement="sid-f2d2b885-1112-49c6-beb9-79ce05b73015">
        <omgdi:waypoint x="1868.7499" y="864.24994"/>
        <omgdi:waypoint x="1952.3184" y="864.24994"/>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>

What’s wrong with my process ?

Thanks

Vincent