<?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 Re: problem with intermediateCatchEvent in Alfresco Archive</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>
    <dc:creator>trademak</dc:creator>
    <dc:date>2012-11-29T11:00:43Z</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>

