Cancel Receive Event Task by Timer

Hello!
I’ve some issues with using the timer boundary event for Receive Event Task. When time duration is fired, Receive Event Task isn’t cancelled.
Property ‘Cancel activity’ of the timer is true. All sequence flows are connected.

I’ve attached an example of the model. Could you please help me to fix the case?

Hi,

I tried to implement your model, and it looks like it is working as expected (I am on 6.7), but maybe I missed what your problem exactly was. Here is my model.

Cheers,

Olivier

<?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.0">
  <process id="model-timer" name="model timer" isExecutable="true">
    <startEvent id="startEvent1" flowable:formFieldValidation="true"></startEvent>
    <userTask id="sid-AFBFCB47-2F83-4FE4-AD79-B56023867A9B" name="do that" flowable:assignee="$INITIATOR" flowable:formFieldValidation="true">
      <extensionElements>
        <modeler:activiti-idm-initiator xmlns:modeler="http://flowable.org/modeler"><![CDATA[true]]></modeler:activiti-idm-initiator>
      </extensionElements>
    </userTask>
    <endEvent id="sid-98C119CB-0EA5-4F5F-ADCB-05D8ABE9094D"></endEvent>
    <sequenceFlow id="sid-DF4C0724-9ADF-4974-9C9A-7DB23ED6A637" sourceRef="sid-05FC9F59-0F06-4FB2-AAA4-9012A1BAD382" targetRef="sid-AFBFCB47-2F83-4FE4-AD79-B56023867A9B"></sequenceFlow>
    <sequenceFlow id="sid-384B89FF-CF89-407E-BC3A-5F462C628663" sourceRef="sid-AFBFCB47-2F83-4FE4-AD79-B56023867A9B" targetRef="sid-98C119CB-0EA5-4F5F-ADCB-05D8ABE9094D"></sequenceFlow>
    <userTask id="sid-BA4877AB-AF5B-4001-BE58-01B9080101D3" name="too late" flowable:assignee="$INITIATOR" flowable:formFieldValidation="true">
      <extensionElements>
        <modeler:activiti-idm-initiator xmlns:modeler="http://flowable.org/modeler"><![CDATA[true]]></modeler:activiti-idm-initiator>
      </extensionElements>
    </userTask>
    <sequenceFlow id="sid-4F306A41-DA1A-458D-B33C-5EDD39D0D768" sourceRef="sid-81915CCE-D9A1-404A-996B-75EDF2741D34" targetRef="sid-BA4877AB-AF5B-4001-BE58-01B9080101D3"></sequenceFlow>
    <sequenceFlow id="sid-C57D15DB-1C44-4D54-ABC0-85F169319C25" sourceRef="sid-BA4877AB-AF5B-4001-BE58-01B9080101D3" targetRef="sid-98C119CB-0EA5-4F5F-ADCB-05D8ABE9094D"></sequenceFlow>
    <sequenceFlow id="sid-62B2DCE9-C2DB-44DD-A152-0653336ED75C" sourceRef="startEvent1" targetRef="sid-05FC9F59-0F06-4FB2-AAA4-9012A1BAD382"></sequenceFlow>
    <receiveTask id="sid-05FC9F59-0F06-4FB2-AAA4-9012A1BAD382" name="do this"></receiveTask>
    <boundaryEvent id="sid-81915CCE-D9A1-404A-996B-75EDF2741D34" attachedToRef="sid-05FC9F59-0F06-4FB2-AAA4-9012A1BAD382" cancelActivity="true">
      <timerEventDefinition>
        <timeDuration>PT10S</timeDuration>
      </timerEventDefinition>
    </boundaryEvent>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_model-timer">
    <bpmndi:BPMNPlane bpmnElement="model-timer" id="BPMNPlane_model-timer">
      <bpmndi:BPMNShape bpmnElement="startEvent1" id="BPMNShape_startEvent1">
        <omgdc:Bounds height="30.0" width="30.0" x="100.0" y="163.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-AFBFCB47-2F83-4FE4-AD79-B56023867A9B" id="BPMNShape_sid-AFBFCB47-2F83-4FE4-AD79-B56023867A9B">
        <omgdc:Bounds height="80.0" width="100.0" x="345.0" y="138.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-98C119CB-0EA5-4F5F-ADCB-05D8ABE9094D" id="BPMNShape_sid-98C119CB-0EA5-4F5F-ADCB-05D8ABE9094D">
        <omgdc:Bounds height="28.0" width="28.0" x="535.0" y="161.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-BA4877AB-AF5B-4001-BE58-01B9080101D3" id="BPMNShape_sid-BA4877AB-AF5B-4001-BE58-01B9080101D3">
        <omgdc:Bounds height="80.0" width="100.0" x="345.0" y="255.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-05FC9F59-0F06-4FB2-AAA4-9012A1BAD382" id="BPMNShape_sid-05FC9F59-0F06-4FB2-AAA4-9012A1BAD382">
        <omgdc:Bounds height="80.0" width="100.0" x="165.0" y="138.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-81915CCE-D9A1-404A-996B-75EDF2741D34" id="BPMNShape_sid-81915CCE-D9A1-404A-996B-75EDF2741D34">
        <omgdc:Bounds height="31.0" width="31.0" x="200.54089138985506" y="203.09476420434697"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="sid-384B89FF-CF89-407E-BC3A-5F462C628663" id="BPMNEdge_sid-384B89FF-CF89-407E-BC3A-5F462C628663" flowable:sourceDockerX="50.0" flowable:sourceDockerY="40.0" flowable:targetDockerX="14.0" flowable:targetDockerY="14.0">
        <omgdi:waypoint x="444.9499999999992" y="177.02597402597402"></omgdi:waypoint>
        <omgdi:waypoint x="535.0025986567299" y="175.27170283234014"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-62B2DCE9-C2DB-44DD-A152-0653336ED75C" id="BPMNEdge_sid-62B2DCE9-C2DB-44DD-A152-0653336ED75C" flowable:sourceDockerX="15.0" flowable:sourceDockerY="15.0" flowable:targetDockerX="50.0" flowable:targetDockerY="40.0">
        <omgdi:waypoint x="129.94999817301806" y="178.0"></omgdi:waypoint>
        <omgdi:waypoint x="164.999999999925" y="178.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-DF4C0724-9ADF-4974-9C9A-7DB23ED6A637" id="BPMNEdge_sid-DF4C0724-9ADF-4974-9C9A-7DB23ED6A637" flowable:sourceDockerX="50.0" flowable:sourceDockerY="40.0" flowable:targetDockerX="50.0" flowable:targetDockerY="40.0">
        <omgdi:waypoint x="264.9499999999431" y="178.0"></omgdi:waypoint>
        <omgdi:waypoint x="344.99999999997226" y="178.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-4F306A41-DA1A-458D-B33C-5EDD39D0D768" id="BPMNEdge_sid-4F306A41-DA1A-458D-B33C-5EDD39D0D768" flowable:sourceDockerX="16.0" flowable:sourceDockerY="16.0" flowable:targetDockerX="50.0" flowable:targetDockerY="40.0">
        <omgdi:waypoint x="219.81488257671595" y="234.70679520071707"></omgdi:waypoint>
        <omgdi:waypoint x="232.45728331687567" y="295.0"></omgdi:waypoint>
        <omgdi:waypoint x="344.9999999999816" y="295.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-C57D15DB-1C44-4D54-ABC0-85F169319C25" id="BPMNEdge_sid-C57D15DB-1C44-4D54-ABC0-85F169319C25" flowable:sourceDockerX="50.0" flowable:sourceDockerY="40.0" flowable:targetDockerX="14.0" flowable:targetDockerY="14.0">
        <omgdi:waypoint x="444.95000000000005" y="295.0"></omgdi:waypoint>
        <omgdi:waypoint x="549.0" y="295.0"></omgdi:waypoint>
        <omgdi:waypoint x="549.0" y="188.94993144428102"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>