Event Registry Boundary Event not working

HI All,

I have designed a flowable job like the below diagram

The service tasks inside the sub process has a timer event which keeps on looping if the service task does not set a condition. Now I attached a boundary event registry event to the sub process.

The whole flow is working except when I send the event nothing happens. I tried to debug a little more and i could find that Flowable is getting a notification of the event but the event counsumer list is coming as empty.

Also I could not find an entry for the event in “act_ru_event_subscr” table.

Here is the bpmn file

    <?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">
  <process id="marvel-shield-payment-response-process" name="marvel-shield-payment-response-process" isExecutable="true">
    <startEvent id="sid-D5B35182-6709-4A2F-8253-968E586CAF0A">
      <extensionElements>
        <flowable:eventType xmlns:flowable="http://flowable.org/bpmn"><![CDATA[paymentStatusEvent]]></flowable:eventType>
        <flowable:eventOutParameter xmlns:flowable="http://flowable.org/bpmn" source="SESSIONID" sourceType="string" target="sessionId"></flowable:eventOutParameter>
        <flowable:eventOutParameter xmlns:flowable="http://flowable.org/bpmn" source="STATUS" sourceType="string" target="status"></flowable:eventOutParameter>
        <flowable:eventOutParameter xmlns:flowable="http://flowable.org/bpmn" source="AMOUNT" sourceType="string" target="amount"></flowable:eventOutParameter>
        <flowable:channelKey xmlns:flowable="http://flowable.org/bpmn"><![CDATA[paymentStatusInboundChannel]]></flowable:channelKey>
        <flowable:channelType xmlns:flowable="http://flowable.org/bpmn"><![CDATA[kafka]]></flowable:channelType>
      </extensionElements>
    </startEvent>
    <exclusiveGateway id="sid-ECE18025-3450-4A35-8FFB-3D70685B7419" default="sid-4AE6A55A-2FAD-4206-9BDD-50134D48F47D"></exclusiveGateway>
    <endEvent id="sid-86564AAB-9B3C-4FC5-AAB8-A991CF07B2FB"></endEvent>
    <serviceTask id="sid-DF32C6DE-5FAD-4D5E-A4CF-5DEE143B1EBD" name="Save Payment Success Status" flowable:delegateExpression="${savePaymentStatusTask}"></serviceTask>
    <sequenceFlow id="sid-40ED970B-0020-40A2-98A5-6A5F0EEC5BCF" sourceRef="sid-DF32C6DE-5FAD-4D5E-A4CF-5DEE143B1EBD" targetRef="sid-98586D9A-B748-45CB-8C99-97F63A476334"></sequenceFlow>
    <serviceTask id="sid-60E1B792-681A-4D54-9747-30148EB7A9AA" name="Check Amount if Eligible for Defaulter Flow" flowable:delegateExpression="${checkAmountEligibleForDefaulterTask}"></serviceTask>
    <exclusiveGateway id="sid-98586D9A-B748-45CB-8C99-97F63A476334"></exclusiveGateway>
    <sequenceFlow id="sid-B0761492-5EEA-4118-AA03-563D337DA50D" sourceRef="sid-98586D9A-B748-45CB-8C99-97F63A476334" targetRef="sid-86564AAB-9B3C-4FC5-AAB8-A991CF07B2FB"></sequenceFlow>
    <sequenceFlow id="sid-27FE6FC0-B6B5-40D4-91B3-E1E9C43EA7C2" sourceRef="sid-60E1B792-681A-4D54-9747-30148EB7A9AA" targetRef="sid-988354FE-7415-480F-AD68-9C7E4067D3AA"></sequenceFlow>
    <serviceTask id="sid-988354FE-7415-480F-AD68-9C7E4067D3AA" name="Save Payment Failure Status" flowable:delegateExpression="${savePaymentStatusTask}"></serviceTask>
    <exclusiveGateway id="sid-60EA1DF4-67C3-4A7A-B71F-BA5120634446" default="sid-A0D54E52-9238-4982-B4FB-C5F5F704FF2F"></exclusiveGateway>
    <sequenceFlow id="sid-780F0095-DEB9-46D3-A17A-0622F3D3856D" sourceRef="sid-988354FE-7415-480F-AD68-9C7E4067D3AA" targetRef="sid-60EA1DF4-67C3-4A7A-B71F-BA5120634446"></sequenceFlow>
    <exclusiveGateway id="sid-31E10C34-5A3A-48FA-B766-9D9F07FE9ECF"></exclusiveGateway>
    <sequenceFlow id="sid-7BBD2FE0-4391-441E-9641-CB2336F212A6" sourceRef="sid-31E10C34-5A3A-48FA-B766-9D9F07FE9ECF" targetRef="sid-98586D9A-B748-45CB-8C99-97F63A476334"></sequenceFlow>
    <sequenceFlow id="sid-CA35D7CC-A82E-4305-88DB-E611E4C2A2DE" name="BYPASS DEFAULTER FLOW" sourceRef="sid-60EA1DF4-67C3-4A7A-B71F-BA5120634446" targetRef="sid-31E10C34-5A3A-48FA-B766-9D9F07FE9ECF">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${bypassDefaulterFlow}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="sid-0F90474C-AAC9-47EF-868D-6F51BF395D48" name="FAILURE" sourceRef="sid-ECE18025-3450-4A35-8FFB-3D70685B7419" targetRef="sid-60E1B792-681A-4D54-9747-30148EB7A9AA">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${status == 0}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="sid-4AE6A55A-2FAD-4206-9BDD-50134D48F47D" name="SUCCESS" sourceRef="sid-ECE18025-3450-4A35-8FFB-3D70685B7419" targetRef="sid-DF32C6DE-5FAD-4D5E-A4CF-5DEE143B1EBD"></sequenceFlow>
    <serviceTask id="sid-AF2821B1-9FEB-465C-9948-16E1843D1928" name="Get All Parking Sessions" flowable:delegateExpression="${getAllParkingTransactionsTask}"></serviceTask>
    <sequenceFlow id="sid-7D6A6FF2-7FB4-4524-8C19-7A28B7227C13" sourceRef="sid-AF2821B1-9FEB-465C-9948-16E1843D1928" targetRef="sid-ECE18025-3450-4A35-8FFB-3D70685B7419"></sequenceFlow>
    <sequenceFlow id="sid-05524BD1-F5AB-48CF-ADC7-2C1E1AFCCE1F" sourceRef="sid-D5B35182-6709-4A2F-8253-968E586CAF0A" targetRef="sid-AF2821B1-9FEB-465C-9948-16E1843D1928"></sequenceFlow>
    <subProcess id="sid-A318D1B5-22E2-4E1F-9BB0-BDC812B314FC" name="subProcess">
      <serviceTask id="sid-1BDB2A9F-8382-46CC-93AA-1FC8EAE3AD08" name="Send out 1st Advisory" flowable:delegateExpression="${sendFirstAdvisory}"></serviceTask>
      <exclusiveGateway id="sid-30B4D133-7766-4E0D-9E5E-409E6FAABDDC" default="sid-556EEDBE-0439-4BA0-B677-CE7EB50DC383"></exclusiveGateway>
      <serviceTask id="sid-3BC1C26D-A0CA-495C-8E1C-ADC99F655A18" name="Send out 2nd Advisory" flowable:delegateExpression="${sendFinalAdvisory}"></serviceTask>
      <intermediateCatchEvent id="sid-14EFC16A-ED05-40B2-9D93-5BC2B89A2597">
        <timerEventDefinition>
          <timeDuration>${duration}</timeDuration>
        </timerEventDefinition>
      </intermediateCatchEvent>
      <exclusiveGateway id="sid-93C2A695-688C-4379-9C20-A4E9ABEE67DF" default="sid-DADB7C79-B85B-475C-9431-9D00B6DA0B0B"></exclusiveGateway>
      <intermediateCatchEvent id="sid-C185C109-7D49-4C36-9DC2-DF6C80A18E14">
        <timerEventDefinition>
          <timeDuration>${duration}</timeDuration>
        </timerEventDefinition>
      </intermediateCatchEvent>
      <startEvent id="sid-DFFC1C3A-3BD7-460F-9E51-47545E6EDC8F" flowable:formFieldValidation="true"></startEvent>
      <endEvent id="sid-E8136BDF-A874-4BD7-9E4B-6C3F622A21F0"></endEvent>
      <boundaryEvent id="sid-3FF55121-B55F-4AA8-B600-AE5151AEAB10" attachedToRef="sid-A318D1B5-22E2-4E1F-9BB0-BDC812B314FC">
        <extensionElements>
          <flowable:eventType xmlns:flowable="http://flowable.org/bpmn"><![CDATA[waiveChargeEvent]]></flowable:eventType>
          <flowable:eventOutParameter xmlns:flowable="http://flowable.org/bpmn" source="SESSIONID" sourceType="string" target="sessionId"></flowable:eventOutParameter>
          <flowable:eventCorrelationParameter xmlns:flowable="http://flowable.org/bpmn" name="sessionId" type="string" value="${sessionId}"></flowable:eventCorrelationParameter>
          <flowable:channelKey xmlns:flowable="http://flowable.org/bpmn"><![CDATA[waiveChargeInboundChannel]]></flowable:channelKey>
          <flowable:channelType xmlns:flowable="http://flowable.org/bpmn"><![CDATA[kafka]]></flowable:channelType>
        </extensionElements>
      </boundaryEvent>
      <serviceTask id="sid-4583E84B-9673-4232-BE99-3D190DE6F957" name="waive off charge" flowable:delegateExpression="${waiveOffChargeTask}"></serviceTask>
      <sequenceFlow id="sid-92D5B1A2-B259-48EA-BB35-87325CFA2990" sourceRef="sid-1BDB2A9F-8382-46CC-93AA-1FC8EAE3AD08" targetRef="sid-30B4D133-7766-4E0D-9E5E-409E6FAABDDC"></sequenceFlow>
      <sequenceFlow id="sid-40F47559-361E-4B70-904C-24ABC1AF91DC" sourceRef="sid-14EFC16A-ED05-40B2-9D93-5BC2B89A2597" targetRef="sid-1BDB2A9F-8382-46CC-93AA-1FC8EAE3AD08"></sequenceFlow>
      <sequenceFlow id="sid-989BC7AA-4943-429F-9B01-95884062CD0A" sourceRef="sid-C185C109-7D49-4C36-9DC2-DF6C80A18E14" targetRef="sid-3BC1C26D-A0CA-495C-8E1C-ADC99F655A18"></sequenceFlow>
      <sequenceFlow id="sid-DADB7C79-B85B-475C-9431-9D00B6DA0B0B" name="Not Sent" sourceRef="sid-93C2A695-688C-4379-9C20-A4E9ABEE67DF" targetRef="sid-C185C109-7D49-4C36-9DC2-DF6C80A18E14"></sequenceFlow>
      <sequenceFlow id="sid-556EEDBE-0439-4BA0-B677-CE7EB50DC383" name="Not Sent" sourceRef="sid-30B4D133-7766-4E0D-9E5E-409E6FAABDDC" targetRef="sid-14EFC16A-ED05-40B2-9D93-5BC2B89A2597"></sequenceFlow>
      <sequenceFlow id="sid-7A711D35-1EFA-416A-A9D2-5814323260CC" sourceRef="sid-30B4D133-7766-4E0D-9E5E-409E6FAABDDC" targetRef="sid-3BC1C26D-A0CA-495C-8E1C-ADC99F655A18">
        <conditionExpression xsi:type="tFormalExpression"><![CDATA[${isFirstAdvisorySent}]]></conditionExpression>
      </sequenceFlow>
      <sequenceFlow id="sid-9B76C8F5-3A23-4C6A-B8F3-92206392D62E" sourceRef="sid-3BC1C26D-A0CA-495C-8E1C-ADC99F655A18" targetRef="sid-93C2A695-688C-4379-9C20-A4E9ABEE67DF"></sequenceFlow>
      <sequenceFlow id="sid-42C218B4-46FD-4FA8-B24E-2B8F030FCDDF" sourceRef="sid-DFFC1C3A-3BD7-460F-9E51-47545E6EDC8F" targetRef="sid-1BDB2A9F-8382-46CC-93AA-1FC8EAE3AD08"></sequenceFlow>
      <sequenceFlow id="sid-A0D5EDA2-4F41-48C0-AE36-F8E9D353FE08" sourceRef="sid-93C2A695-688C-4379-9C20-A4E9ABEE67DF" targetRef="sid-E8136BDF-A874-4BD7-9E4B-6C3F622A21F0">
        <conditionExpression xsi:type="tFormalExpression"><![CDATA[${isFinalAdvisorySent}]]></conditionExpression>
      </sequenceFlow>
      <sequenceFlow id="sid-07E42FDD-F40B-4E9E-81EE-39AC31B1A5E3" sourceRef="sid-30B4D133-7766-4E0D-9E5E-409E6FAABDDC" targetRef="sid-E8136BDF-A874-4BD7-9E4B-6C3F622A21F0">
        <conditionExpression xsi:type="tFormalExpression"><![CDATA[${bypassDefaulterFlow}]]></conditionExpression>
      </sequenceFlow>
      <sequenceFlow id="sid-8D2D1A28-444A-4A7F-8136-41B4865E514D" sourceRef="sid-3FF55121-B55F-4AA8-B600-AE5151AEAB10" targetRef="sid-4583E84B-9673-4232-BE99-3D190DE6F957"></sequenceFlow>
      <sequenceFlow id="sid-F1166395-9165-4084-B41D-B5998ABBF1EC" sourceRef="sid-4583E84B-9673-4232-BE99-3D190DE6F957" targetRef="sid-E8136BDF-A874-4BD7-9E4B-6C3F622A21F0"></sequenceFlow>
    </subProcess>
    <sequenceFlow id="sid-A0D54E52-9238-4982-B4FB-C5F5F704FF2F" sourceRef="sid-60EA1DF4-67C3-4A7A-B71F-BA5120634446" targetRef="sid-A318D1B5-22E2-4E1F-9BB0-BDC812B314FC"></sequenceFlow>
    <sequenceFlow id="sid-A1B8C4B0-B4CA-4182-AC0A-C1E4607E4B15" sourceRef="sid-A318D1B5-22E2-4E1F-9BB0-BDC812B314FC" targetRef="sid-31E10C34-5A3A-48FA-B766-9D9F07FE9ECF"></sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_marvel-shield-payment-response-process">
    <bpmndi:BPMNPlane bpmnElement="marvel-shield-payment-response-process" id="BPMNPlane_marvel-shield-payment-response-process">
      <bpmndi:BPMNShape bpmnElement="sid-D5B35182-6709-4A2F-8253-968E586CAF0A" id="BPMNShape_sid-D5B35182-6709-4A2F-8253-968E586CAF0A">
        <omgdc:Bounds height="30.0" width="30.5" x="0.0" y="150.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-ECE18025-3450-4A35-8FFB-3D70685B7419" id="BPMNShape_sid-ECE18025-3450-4A35-8FFB-3D70685B7419">
        <omgdc:Bounds height="40.0" width="40.0" x="195.0" y="145.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-86564AAB-9B3C-4FC5-AAB8-A991CF07B2FB" id="BPMNShape_sid-86564AAB-9B3C-4FC5-AAB8-A991CF07B2FB">
        <omgdc:Bounds height="28.0" width="28.0" x="1091.0" y="151.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-DF32C6DE-5FAD-4D5E-A4CF-5DEE143B1EBD" id="BPMNShape_sid-DF32C6DE-5FAD-4D5E-A4CF-5DEE143B1EBD">
        <omgdc:Bounds height="80.0" width="100.0" x="273.0" y="30.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-60E1B792-681A-4D54-9747-30148EB7A9AA" id="BPMNShape_sid-60E1B792-681A-4D54-9747-30148EB7A9AA">
        <omgdc:Bounds height="80.0" width="100.0" x="273.0" y="237.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-98586D9A-B748-45CB-8C99-97F63A476334" id="BPMNShape_sid-98586D9A-B748-45CB-8C99-97F63A476334">
        <omgdc:Bounds height="40.0" width="40.0" x="975.0" y="145.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-988354FE-7415-480F-AD68-9C7E4067D3AA" id="BPMNShape_sid-988354FE-7415-480F-AD68-9C7E4067D3AA">
        <omgdc:Bounds height="80.0" width="100.0" x="453.0" y="237.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-60EA1DF4-67C3-4A7A-B71F-BA5120634446" id="BPMNShape_sid-60EA1DF4-67C3-4A7A-B71F-BA5120634446">
        <omgdc:Bounds height="40.0" width="40.0" x="600.0" y="257.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-31E10C34-5A3A-48FA-B766-9D9F07FE9ECF" id="BPMNShape_sid-31E10C34-5A3A-48FA-B766-9D9F07FE9ECF">
        <omgdc:Bounds height="40.0" width="40.0" x="975.0" y="257.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-AF2821B1-9FEB-465C-9948-16E1843D1928" id="BPMNShape_sid-AF2821B1-9FEB-465C-9948-16E1843D1928">
        <omgdc:Bounds height="59.0" width="82.0" x="75.0" y="135.5"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-A318D1B5-22E2-4E1F-9BB0-BDC812B314FC" id="BPMNShape_sid-A318D1B5-22E2-4E1F-9BB0-BDC812B314FC">
        <omgdc:Bounds height="325.0" width="620.0" x="465.0" y="340.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-1BDB2A9F-8382-46CC-93AA-1FC8EAE3AD08" id="BPMNShape_sid-1BDB2A9F-8382-46CC-93AA-1FC8EAE3AD08">
        <omgdc:Bounds height="80.0" width="100.0" x="521.0" y="492.5"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-30B4D133-7766-4E0D-9E5E-409E6FAABDDC" id="BPMNShape_sid-30B4D133-7766-4E0D-9E5E-409E6FAABDDC">
        <omgdc:Bounds height="40.0" width="40.0" x="666.0" y="512.5"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-3BC1C26D-A0CA-495C-8E1C-ADC99F655A18" id="BPMNShape_sid-3BC1C26D-A0CA-495C-8E1C-ADC99F655A18">
        <omgdc:Bounds height="80.0" width="100.0" x="760.0" y="492.5"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-14EFC16A-ED05-40B2-9D93-5BC2B89A2597" id="BPMNShape_sid-14EFC16A-ED05-40B2-9D93-5BC2B89A2597">
        <omgdc:Bounds height="31.0" width="31.0" x="670.5" y="434.5"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-93C2A695-688C-4379-9C20-A4E9ABEE67DF" id="BPMNShape_sid-93C2A695-688C-4379-9C20-A4E9ABEE67DF">
        <omgdc:Bounds height="40.0" width="40.0" x="925.0" y="512.5"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-C185C109-7D49-4C36-9DC2-DF6C80A18E14" id="BPMNShape_sid-C185C109-7D49-4C36-9DC2-DF6C80A18E14">
        <omgdc:Bounds height="31.0" width="31.0" x="794.5" y="434.5"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-DFFC1C3A-3BD7-460F-9E51-47545E6EDC8F" id="BPMNShape_sid-DFFC1C3A-3BD7-460F-9E51-47545E6EDC8F">
        <omgdc:Bounds height="30.0" width="30.0" x="510.0" y="381.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-E8136BDF-A874-4BD7-9E4B-6C3F622A21F0" id="BPMNShape_sid-E8136BDF-A874-4BD7-9E4B-6C3F622A21F0">
        <omgdc:Bounds height="28.0" width="28.0" x="1005.0" y="518.5"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-3FF55121-B55F-4AA8-B600-AE5151AEAB10" id="BPMNShape_sid-3FF55121-B55F-4AA8-B600-AE5151AEAB10">
        <omgdc:Bounds height="30.0" width="30.0" x="733.5" y="642.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-4583E84B-9673-4232-BE99-3D190DE6F957" id="BPMNShape_sid-4583E84B-9673-4232-BE99-3D190DE6F957">
        <omgdc:Bounds height="40.0" width="76.0" x="840.0" y="600.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="sid-8D2D1A28-444A-4A7F-8136-41B4865E514D" id="BPMNEdge_sid-8D2D1A28-444A-4A7F-8136-41B4865E514D">
        <omgdi:waypoint x="748.5" y="642.0"></omgdi:waypoint>
        <omgdi:waypoint x="748.5" y="620.0"></omgdi:waypoint>
        <omgdi:waypoint x="840.0" y="620.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-DADB7C79-B85B-475C-9431-9D00B6DA0B0B" id="BPMNEdge_sid-DADB7C79-B85B-475C-9431-9D00B6DA0B0B">
        <omgdi:waypoint x="945.0" y="512.5"></omgdi:waypoint>
        <omgdi:waypoint x="945.0" y="450.0"></omgdi:waypoint>
        <omgdi:waypoint x="825.4499368114481" y="450.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-989BC7AA-4943-429F-9B01-95884062CD0A" id="BPMNEdge_sid-989BC7AA-4943-429F-9B01-95884062CD0A">
        <omgdi:waypoint x="810.0" y="465.4499972266749"></omgdi:waypoint>
        <omgdi:waypoint x="810.0" y="492.5"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-05524BD1-F5AB-48CF-ADC7-2C1E1AFCCE1F" id="BPMNEdge_sid-05524BD1-F5AB-48CF-ADC7-2C1E1AFCCE1F">
        <omgdi:waypoint x="30.44999810829037" y="165.0"></omgdi:waypoint>
        <omgdi:waypoint x="75.0" y="165.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-A1B8C4B0-B4CA-4182-AC0A-C1E4607E4B15" id="BPMNEdge_sid-A1B8C4B0-B4CA-4182-AC0A-C1E4607E4B15">
        <omgdi:waypoint x="995.0" y="340.0"></omgdi:waypoint>
        <omgdi:waypoint x="995.0" y="296.91534121764835"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-A0D54E52-9238-4982-B4FB-C5F5F704FF2F" id="BPMNEdge_sid-A0D54E52-9238-4982-B4FB-C5F5F704FF2F">
        <omgdi:waypoint x="620.5" y="296.44058151093446"></omgdi:waypoint>
        <omgdi:waypoint x="620.5" y="340.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-A0D5EDA2-4F41-48C0-AE36-F8E9D353FE08" id="BPMNEdge_sid-A0D5EDA2-4F41-48C0-AE36-F8E9D353FE08">
        <omgdi:waypoint x="964.5666552667433" y="532.8698630136987"></omgdi:waypoint>
        <omgdi:waypoint x="1005.0003147215357" y="532.5948959256123"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-40F47559-361E-4B70-904C-24ABC1AF91DC" id="BPMNEdge_sid-40F47559-361E-4B70-904C-24ABC1AF91DC">
        <omgdi:waypoint x="670.4999975382171" y="450.0"></omgdi:waypoint>
        <omgdi:waypoint x="571.0" y="450.0"></omgdi:waypoint>
        <omgdi:waypoint x="571.0" y="492.5"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-9B76C8F5-3A23-4C6A-B8F3-92206392D62E" id="BPMNEdge_sid-9B76C8F5-3A23-4C6A-B8F3-92206392D62E">
        <omgdi:waypoint x="859.9499999999327" y="532.5"></omgdi:waypoint>
        <omgdi:waypoint x="925.0" y="532.5"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-556EEDBE-0439-4BA0-B677-CE7EB50DC383" id="BPMNEdge_sid-556EEDBE-0439-4BA0-B677-CE7EB50DC383">
        <omgdi:waypoint x="686.0" y="512.5"></omgdi:waypoint>
        <omgdi:waypoint x="686.0" y="465.44994763187975"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-27FE6FC0-B6B5-40D4-91B3-E1E9C43EA7C2" id="BPMNEdge_sid-27FE6FC0-B6B5-40D4-91B3-E1E9C43EA7C2">
        <omgdi:waypoint x="372.9499999999431" y="277.0"></omgdi:waypoint>
        <omgdi:waypoint x="453.0" y="277.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-7BBD2FE0-4391-441E-9641-CB2336F212A6" id="BPMNEdge_sid-7BBD2FE0-4391-441E-9641-CB2336F212A6">
        <omgdi:waypoint x="995.0" y="257.0"></omgdi:waypoint>
        <omgdi:waypoint x="995.0" y="184.90886952636288"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-0F90474C-AAC9-47EF-868D-6F51BF395D48" id="BPMNEdge_sid-0F90474C-AAC9-47EF-868D-6F51BF395D48">
        <omgdi:waypoint x="215.0" y="184.9411016949152"></omgdi:waypoint>
        <omgdi:waypoint x="215.0" y="277.0"></omgdi:waypoint>
        <omgdi:waypoint x="273.0" y="277.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-40ED970B-0020-40A2-98A5-6A5F0EEC5BCF" id="BPMNEdge_sid-40ED970B-0020-40A2-98A5-6A5F0EEC5BCF">
        <omgdi:waypoint x="372.95000000000005" y="70.0"></omgdi:waypoint>
        <omgdi:waypoint x="995.0" y="70.0"></omgdi:waypoint>
        <omgdi:waypoint x="995.0" y="145.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-92D5B1A2-B259-48EA-BB35-87325CFA2990" id="BPMNEdge_sid-92D5B1A2-B259-48EA-BB35-87325CFA2990">
        <omgdi:waypoint x="620.9499999998727" y="532.5"></omgdi:waypoint>
        <omgdi:waypoint x="666.0" y="532.5"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-4AE6A55A-2FAD-4206-9BDD-50134D48F47D" id="BPMNEdge_sid-4AE6A55A-2FAD-4206-9BDD-50134D48F47D">
        <omgdi:waypoint x="215.0" y="145.0"></omgdi:waypoint>
        <omgdi:waypoint x="215.0" y="70.0"></omgdi:waypoint>
        <omgdi:waypoint x="273.0" y="70.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-7D6A6FF2-7FB4-4524-8C19-7A28B7227C13" id="BPMNEdge_sid-7D6A6FF2-7FB4-4524-8C19-7A28B7227C13">
        <omgdi:waypoint x="156.95" y="165.0"></omgdi:waypoint>
        <omgdi:waypoint x="195.0" y="165.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-B0761492-5EEA-4118-AA03-563D337DA50D" id="BPMNEdge_sid-B0761492-5EEA-4118-AA03-563D337DA50D">
        <omgdi:waypoint x="1014.9409400544698" y="165.0"></omgdi:waypoint>
        <omgdi:waypoint x="1091.0" y="165.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-780F0095-DEB9-46D3-A17A-0622F3D3856D" id="BPMNEdge_sid-780F0095-DEB9-46D3-A17A-0622F3D3856D">
        <omgdi:waypoint x="552.95" y="277.0"></omgdi:waypoint>
        <omgdi:waypoint x="600.0" y="277.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-07E42FDD-F40B-4E9E-81EE-39AC31B1A5E3" id="BPMNEdge_sid-07E42FDD-F40B-4E9E-81EE-39AC31B1A5E3">
        <omgdi:waypoint x="686.5" y="551.9303014553014"></omgdi:waypoint>
        <omgdi:waypoint x="686.5" y="581.0"></omgdi:waypoint>
        <omgdi:waypoint x="1019.0" y="581.0"></omgdi:waypoint>
        <omgdi:waypoint x="1019.0" y="546.4499554025007"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-CA35D7CC-A82E-4305-88DB-E611E4C2A2DE" id="BPMNEdge_sid-CA35D7CC-A82E-4305-88DB-E611E4C2A2DE">
        <omgdi:waypoint x="639.9473407091442" y="277.0"></omgdi:waypoint>
        <omgdi:waypoint x="975.0" y="277.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-7A711D35-1EFA-416A-A9D2-5814323260CC" id="BPMNEdge_sid-7A711D35-1EFA-416A-A9D2-5814323260CC">
        <omgdi:waypoint x="705.9419621270114" y="532.5"></omgdi:waypoint>
        <omgdi:waypoint x="760.0" y="532.5"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-F1166395-9165-4084-B41D-B5998ABBF1EC" id="BPMNEdge_sid-F1166395-9165-4084-B41D-B5998ABBF1EC">
        <omgdi:waypoint x="915.9499999999789" y="620.0"></omgdi:waypoint>
        <omgdi:waypoint x="1019.0" y="620.0"></omgdi:waypoint>
        <omgdi:waypoint x="1019.0" y="546.4499379613027"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-42C218B4-46FD-4FA8-B24E-2B8F030FCDDF" id="BPMNEdge_sid-42C218B4-46FD-4FA8-B24E-2B8F030FCDDF">
        <omgdi:waypoint x="525.0" y="410.94999810151654"></omgdi:waypoint>
        <omgdi:waypoint x="525.0" y="492.5"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>

@filiphr can you please take a look at this. I am not sure if i am using the boundary event registry event correctly.

Hey @sukalpo,

An entry in the act_ru_event_subscr table should be created when the timer events are reached, before that no subscription will be persisted since you are in the same transaction.

What state is your process in when the event for the boundary event arrives?

Your boundary event outgoing flows is not correct as well. It should be connected to an activity outside of the sub process. Otherwise I am not sure how it can work, because once it fires it will stop the sub process from executing further.

Cheers,
Filip

@filiphr - Thanks for the input. If the outgoing flow is outside the modeler gives me a validation error that the target is not correct as its not in the same scope. So i had put it inside the sub process. So when the event arrives the state can be at the timer event or in the service task. Basically there is a check that happens every 1 day. When the condition is met we exit the sub process. if the condition is not met and the state is within the sub process, the idea is when the event arrives it bypasses the checks and comes out of the sub process. So are you implying that if the state is waiting for the timer event, even if the event arrives nothing will happen?

It is weird to have that validation error.

No I am not implying that. I am saying that before the first timer event is reached the boundary event subscription is not created.

@filiphr oh got it. yes the first timer event is reached then only I send the event trigger as of now. But I still dont see anything in the event_subscr table.

@filiphr - so the use case I am trying is not possible with boundary event registry?

No, it should work - the event should be created when the subprocess is entered and when the process instance is in a wait state. In this case, I would say that happens when timers are reached.

Can you provide a simple unit test (replacing the service tasks with a simpler implementation), so we can validate and fix it if needed?

@joram Sure. I will do it as soon as I have some free time.