AnsweredAssumed Answered

Timer bondary event does not trigger

Question asked by chantme on Oct 17, 2012
Latest reply on Oct 18, 2012 by chantme
Hello

I made a test for discovering the timer boundary event

DC complete task01, Brian is assigned task02
If he does not complete it in 1 minute, Joe will be assigned on task03.

To test it, I put a Thread.sleep() during 65 secondes juste after the completion of task01

But it seems that the timer boundary never triggers, and Joe never gets assigned …

Could you tell what is wrong, or what I do not understand  :?

Thank you…

André


<?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:activiti="http://activiti.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.bpmnwithactiviti.org/loanrequest">
  <process id="loanrequest" name="Process to handle a loan request">
    <startEvent id="theStart"></startEvent>
    <userTask id="task01" name="First Task" activiti:candidateGroups="DC"></userTask>
    <userTask id="task02" name="Second Task" activiti:assignee="Brian"></userTask>
    <boundaryEvent id="mytestTimer" name="My Test Timer" cancelActivity="true" attachedToRef="task02">
      <timerEventDefinition>
        <timeDuration>PT1M</timeDuration>
      </timerEventDefinition>
    </boundaryEvent>
    <userTask id="task03" name="Third Task" activiti:assignee="Joe" ></userTask>
    <exclusiveGateway id="finalGateway"></exclusiveGateway>
    <endEvent id="theEnd"></endEvent>
    <sequenceFlow id="_2" name="" sourceRef="theStart" targetRef="task01"></sequenceFlow>
    <sequenceFlow id="_5" name="" sourceRef="task02" targetRef="finalGateway"></sequenceFlow>
    <sequenceFlow id="_6" name="" sourceRef="mytestTimer" targetRef="task03"></sequenceFlow>
    <sequenceFlow id="_7" name="" sourceRef="task03" targetRef="finalGateway"></sequenceFlow>
    <sequenceFlow id="flow1" name="" sourceRef="task01" targetRef="task02"></sequenceFlow>
    <sequenceFlow id="flow2" name="" sourceRef="finalGateway" targetRef="theEnd"></sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_mytest">
      …
  </bpmndi:BPMNDiagram>
</definitions>

Outcomes