AnsweredAssumed Answered

problem with intermediateCatchEvent

Question asked by m2spring on Nov 28, 2012
Latest reply on Dec 4, 2012 by m2spring
I'm trying to have a 5 seconds "sleep" task in my workflow using the http://www.activiti.org/userguide/index.html#bpmnIntermediateCatchingEvent:
[img]http://www.springdot.org/files/20121128-1306.png[/img]


<?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.activiti.org/test">
  <process id="wfsleep" name="WfSleep" isExecutable="true">
    <startEvent id="startevent1" name="Start"></startEvent>
    <endEvent id="endevent1" name="End"></endEvent>
    <scriptTask id="scripttask1" name="1" scriptFormat="groovy">
      <script><![CDATA[System.out.println("script task 1");]]></script>
    </scriptTask>
    <scriptTask id="scripttask2" name="Script Task" scriptFormat="groovy">
      <script><![CDATA[System.out.println("script task 2");]]></script>
    </scriptTask>
    <intermediateCatchEvent id="timerintermediatecatchevent1" name="TimerCatchEvent">
      <timerEventDefinition>
        <timeDuration>PT5S</timeDuration>
      </timerEventDefinition>
    </intermediateCatchEvent>
    …
  </process>
  …
</definitions>
https://github.com/jenkinsci/jenkow-plugin/blob/master/activiti-tests/wfsleep/src/test/resources/diagrams/WfSleep.bpmn

The intermediateCatchEvent task never completes.

What am I doing wrong?

Here's how I invoke the workflow:
https://github.com/jenkinsci/jenkow-plugin/blob/master/activiti-tests/wfsleep/src/test/java/com/cisco/surf/activiti/tests/WfSleepTest.java

A full Maven project to reproduce this problem in a JUnit test is here:
https://github.com/jenkinsci/jenkow-plugin/tree/master/activiti-tests/wfsleep

Thanks!
-Max

Outcomes