Timer bondary event does not trigger

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2012 06:20 PM
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é
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>
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2012 09:22 PM
Set jobExecutorActivate to true, and try it.
<property name="jobExecutorActivate" value="true" />

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2012 03:13 AM
It works, thank you
I was confused by a sentence in page 120 of the Activiti book which tells "By default, the job executor is active in th Activiti Engine. This can be overridden by defining a jobExecutorActivate property with a value of false on the engine configuration", so I disregarded this parameter….
I should not rely on default behaviour :?
I was confused by a sentence in page 120 of the Activiti book which tells "By default, the job executor is active in th Activiti Engine. This can be overridden by defining a jobExecutorActivate property with a value of false on the engine configuration", so I disregarded this parameter….
I should not rely on default behaviour :?
