<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic problem with intermediateCatchEvent in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediatecatchevent/m-p/122659#M86375</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to have a 5 seconds "sleep" task in my workflow using the &lt;/SPAN&gt;&lt;A href="http://www.activiti.org/userguide/index.html#bpmnIntermediateCatchingEvent" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/userguide/index.html#bpmnIntermediateCatchingEvent&lt;/A&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A href="http://www.springdot.org/files/20121128-1306.png" rel="nofollow noopener noreferrer"&gt;http://www.springdot.org/files/20121128-1306.png&lt;/A&gt;&lt;SPAN&gt;[/img]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;definitions xmlns="&lt;A href="http://www.omg.org/spec/BPMN/20100524/MODEL" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL&lt;/A&gt;" xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;" xmlns:activiti="&lt;A href="http://activiti.org/bpmn" rel="nofollow noopener noreferrer"&gt;http://activiti.org/bpmn&lt;/A&gt;" xmlns:bpmndi="&lt;A href="http://www.omg.org/spec/BPMN/20100524/DI" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/DI&lt;/A&gt;" xmlns:omgdc="&lt;A href="http://www.omg.org/spec/DD/20100524/DC" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/DD/20100524/DC&lt;/A&gt;" xmlns:omgdi="&lt;A href="http://www.omg.org/spec/DD/20100524/DI" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/DD/20100524/DI&lt;/A&gt;" typeLanguage="&lt;A href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;" expressionLanguage="&lt;A href="http://www.w3.org/1999/XPath" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/1999/XPath&lt;/A&gt;" targetNamespace="&lt;A href="http://www.activiti.org/test" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/test&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;process id="wfsleep" name="WfSleep" isExecutable="true"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;startEvent id="startevent1" name="Start"&amp;gt;&amp;lt;/startEvent&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;endEvent id="endevent1" name="End"&amp;gt;&amp;lt;/endEvent&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;scriptTask id="scripttask1" name="1" scriptFormat="groovy"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;&amp;lt;![CDATA[System.out.println("script task 1");]]&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/scriptTask&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;scriptTask id="scripttask2" name="Script Task" scriptFormat="groovy"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;&amp;lt;![CDATA[System.out.println("script task 2");]]&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/scriptTask&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;intermediateCatchEvent id="timerintermediatecatchevent1" name="TimerCatchEvent"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timerEventDefinition&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timeDuration&amp;gt;PT5S&amp;lt;/timeDuration&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/timerEventDefinition&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/intermediateCatchEvent&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; …&lt;BR /&gt;&amp;nbsp; &amp;lt;/process&amp;gt;&lt;BR /&gt;&amp;nbsp; …&lt;BR /&gt;&amp;lt;/definitions&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;A href="https://github.com/jenkinsci/jenkow-plugin/blob/master/activiti-tests/wfsleep/src/test/resources/diagrams/WfSleep.bpmn" rel="nofollow noopener noreferrer"&gt;https://github.com/jenkinsci/jenkow-plugin/blob/master/activiti-tests/wfsleep/src/test/resources/diagrams/WfSleep.bpmn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The intermediateCatchEvent task never completes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's how I invoke the workflow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/jenkinsci/jenkow-plugin/blob/master/activiti-tests/wfsleep/src/test/java/com/cisco/surf/activiti/tests/WfSleepTest.java" rel="nofollow noopener noreferrer"&gt;https://github.com/jenkinsci/jenkow-plugin/blob/master/activiti-tests/wfsleep/src/test/java/com/cisco/surf/activiti/tests/WfSleepTest.java&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A full Maven project to reproduce this problem in a JUnit test is here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/jenkinsci/jenkow-plugin/tree/master/activiti-tests/wfsleep" rel="nofollow noopener noreferrer"&gt;https://github.com/jenkinsci/jenkow-plugin/tree/master/activiti-tests/wfsleep&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Max&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Nov 2012 21:16:53 GMT</pubDate>
    <dc:creator>m2spring</dc:creator>
    <dc:date>2012-11-28T21:16:53Z</dc:date>
    <item>
      <title>problem with intermediateCatchEvent</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediatecatchevent/m-p/122659#M86375</link>
      <description>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]&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;definitions xmlns="http://www.omg.org/spec/BPMN/2</description>
      <pubDate>Wed, 28 Nov 2012 21:16:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediatecatchevent/m-p/122659#M86375</guid>
      <dc:creator>m2spring</dc:creator>
      <dc:date>2012-11-28T21:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: problem with intermediateCatchEvent</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediatecatchevent/m-p/122660#M86376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Max,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is not the best way to test functionality that use jobs (using Thread.sleep)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can look in the Activiti unit tests how this is implemented.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But what's an easy solution for your test is to do a job query and execute the intermediate timer job.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 11:00:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediatecatchevent/m-p/122660#M86376</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-11-29T11:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: problem with intermediateCatchEvent</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediatecatchevent/m-p/122661#M86377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tijs,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my code snippet is not meant as a real test. Instead it is meant to demonstrate my problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want my workflow to wait (sleep) for some time, before it automatically continues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking through all the unit test code of the Activiti engine I can't find an example where the intermediateCatchEvent would be tested.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to &lt;/SPAN&gt;&lt;A href="http://www.activiti.org/userguide/index.html#bpmnIntermediateCatchingEvent" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/userguide/index.html#bpmnIntermediateCatchingEvent&lt;/A&gt;&lt;SPAN&gt;, the timer should fire after the specified internal, but this is not happening for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Max&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Dec 2012 01:12:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediatecatchevent/m-p/122661#M86377</guid>
      <dc:creator>m2spring</dc:creator>
      <dc:date>2012-12-01T01:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: problem with intermediateCatchEvent</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediatecatchevent/m-p/122662#M86378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/event/timer/IntermediateTimerEventTest.java" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/event/timer/IntermediateTimerEventTest.java&lt;/A&gt;&lt;SPAN&gt; for a unit test.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The class to use is the ClockUtil which changes the internal clock of the engine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That being said, I checked your test and I saw that you are using the &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;ProcessEngine eng = ProcessEngineConfiguration&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .createStandaloneInMemProcessEngineConfiguration()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .buildProcessEngine();&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;To get the process engine. That will give you a default engine, with the job executor disabled. The job executor is needed for timer execution. Add following line to building the process engine to make it work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;setJobExecutorActivate(true)&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 12:59:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediatecatchevent/m-p/122662#M86378</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-12-03T12:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: problem with intermediateCatchEvent</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediatecatchevent/m-p/122663#M86379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Now it works as expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Max&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 01:52:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-intermediatecatchevent/m-p/122663#M86379</guid>
      <dc:creator>m2spring</dc:creator>
      <dc:date>2012-12-04T01:52:36Z</dc:date>
    </item>
  </channel>
</rss>

