<?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: BPM Timer Expiry in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/bpm-timer-expiry/m-p/241739#M194869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I test my code in tomcat using&amp;nbsp; Activiti - Explorer, then the timer does expire automatically&amp;nbsp; after 10 seconds, but in my junit, I have to write a snippet of code. Are you implying that in tomcat, the 'asyncExecutor' is automatically started on the server start whereas in J-Unit, I start the 'asyncExecutor' by calling the below code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;JobTestHelper.waitForJobExecutorToProcessAllJobs(processEngine.getProcessEngineConfiguration(), processEngine.getManagementService(), 10000L, 25L);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Apr 2016 12:46:49 GMT</pubDate>
    <dc:creator>samsmith</dc:creator>
    <dc:date>2016-04-08T12:46:49Z</dc:date>
    <item>
      <title>BPM Timer Expiry</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bpm-timer-expiry/m-p/241737#M194867</link>
      <description>Hi,I have got a BPM process that has got an 'Timer Intermediate Catch Event' with duration set to 10 seconds [PT10S]. When I try to unit test the BPM process, I noticed that&amp;nbsp; the timer doesn't get expired at all. 'asyncExecutorActivate' property is set to true.But when I write the following code in</description>
      <pubDate>Fri, 08 Apr 2016 10:50:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bpm-timer-expiry/m-p/241737#M194867</guid>
      <dc:creator>samsmith</dc:creator>
      <dc:date>2016-04-08T10:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: BPM Timer Expiry</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bpm-timer-expiry/m-p/241738#M194868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Sam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;explanation could be&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; public static void waitForJobExecutorToProcessAllJobs(ProcessEngineConfiguration processEngineConfiguration, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ManagementService managementService, long maxMillisToWait, long intervalMillis, boolean shutdownExecutorWhenFinished) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; JobExecutor jobExecutor = null;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AsyncExecutor asyncExecutor = null;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (processEngineConfiguration.isAsyncExecutorEnabled() == false) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; jobExecutor = processEngineConfiguration.getJobExecutor();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; jobExecutor.start();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; asyncExecutor = processEngineConfiguration.getAsyncExecutor();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; asyncExecutor.start();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 12:29:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bpm-timer-expiry/m-p/241738#M194868</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-04-08T12:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: BPM Timer Expiry</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bpm-timer-expiry/m-p/241739#M194869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I test my code in tomcat using&amp;nbsp; Activiti - Explorer, then the timer does expire automatically&amp;nbsp; after 10 seconds, but in my junit, I have to write a snippet of code. Are you implying that in tomcat, the 'asyncExecutor' is automatically started on the server start whereas in J-Unit, I start the 'asyncExecutor' by calling the below code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;JobTestHelper.waitForJobExecutorToProcessAllJobs(processEngine.getProcessEngineConfiguration(), processEngine.getManagementService(), 10000L, 25L);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 12:46:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bpm-timer-expiry/m-p/241739#M194869</guid>
      <dc:creator>samsmith</dc:creator>
      <dc:date>2016-04-08T12:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: BPM Timer Expiry</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bpm-timer-expiry/m-p/241740#M194870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Sam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it all depends on your process engine configuration. (By default job executor is not started in jUnit test)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 07:09:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bpm-timer-expiry/m-p/241740#M194870</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-04-11T07:09:08Z</dc:date>
    </item>
  </channel>
</rss>

