AnsweredAssumed Answered

boundary timer not working..

Question asked by shiva.arunachala on Apr 16, 2015
Latest reply on Apr 21, 2015 by jbarrez
I am facing issues getting boundary timer work. i deployed the "Helpdesk process" given in examples and deployed it through code using..
runtimeService.startProcessInstanceByKey("escalationExample", variableMap);

runtimeService.startProcessInstanceByKey("myProcess", variableMap);

and it worked fine.
Next i tried myProcess very similar to Helpdesk process the only difference is i replaced human tasks with service tasks. the service task has just some print statements and a
Thread.sleep(50000);//sleep for 50 seconds 
and boundary timer is set for 30 seconds as in Helpdesk process. But the boundary timer is never triggered.
I show the xml for the BPMN. Please assist.

I am not sure where i am going wrong. why is my boundary timer not getting triggered.???

<process id="myProcess" name="My process" isExecutable="true">
    <startEvent id="startevent1" name="Start">
        <activiti:formProperty id="element1" name="claimNumber" type="string" variable="claimNumber"></activiti:formProperty>
   <sequenceFlow id="flow15" sourceRef="startevent1" targetRef="servicetask2"></sequenceFlow>
    <serviceTask id="servicetask2" name="EmailTask" activiti:class=""></serviceTask>
    <sequenceFlow id="flow14" sourceRef="servicetask2" targetRef="endevent1"></sequenceFlow>
    <endEvent id="endevent1" name="End"></endEvent>
    <boundaryEvent id="boundarytimer1" name="Timer" attachedToRef="servicetask2" cancelActivity="true">
    <sequenceFlow id="flow10" sourceRef="boundarytimer1" targetRef="servicetask3"></sequenceFlow>
    <serviceTask id="servicetask3" name="Boundary timer task"  activiti:class=""></serviceTask>
    <sequenceFlow id="flow16" sourceRef="servicetask3" targetRef="endevent2"></sequenceFlow>
    <endEvent id="endevent2" name="End"></endEvent>