<?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 Exceptions and troubles when using time cycles in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/exceptions-and-troubles-when-using-time-cycles/m-p/108744#M76285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Activiti users &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to use Timer Catching Events with time cycles and I'm getting a lot of exceptions and problems &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, I implemented a very simple example of a workflow displaying on the standard ouput the current time every minute on the 30th second (the corresponding time cycle I used being &lt;/SPAN&gt;&lt;STRONG&gt;R/2010-01-01T12:00:30Z/PT60S&lt;/STRONG&gt;&lt;SPAN&gt;). I wrote a unit test that deploys this workflow and starts it 4 times, just to see if the correct output is coming.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I attached the workflow XML file and its picture, the JAVA unit test file and the output I get when running the test (with and without the exceptions).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the following problems:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- A lot of exceptions are raised (see stacktrace_with_exceptions.txt)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The timers are not always fired on the 30th second of each minute, they are sometimes too early or too late (see stacktrace_no_exceptions.txt)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Sometimes, only 2 or 3 of the 4 timers are fired (see stacktrace_no_exceptions.txt)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course I always clean the whole Activiti database before starting the test and I make sure that no other process is accessing it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I doing something wrong ? Did someone already have problems with these timers ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2012 15:33:48 GMT</pubDate>
    <dc:creator>billbaroud</dc:creator>
    <dc:date>2012-05-30T15:33:48Z</dc:date>
    <item>
      <title>Exceptions and troubles when using time cycles</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exceptions-and-troubles-when-using-time-cycles/m-p/108744#M76285</link>
      <description>Hi Activiti users &lt;IMG id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;I'm trying to use Timer Catching Events with time cycles and I'm getting a lot of exceptions and problems &lt;IMG id="smileysad" class="emoticon emoticon-smileysad" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;For example, I implemented a very simple example of a workflow displaying on the standard ouput the current time every minute on the 30th second (the corresponding time cyc</description>
      <pubDate>Wed, 30 May 2012 15:33:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exceptions-and-troubles-when-using-time-cycles/m-p/108744#M76285</guid>
      <dc:creator>billbaroud</dc:creator>
      <dc:date>2012-05-30T15:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exceptions and troubles when using time cycles</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exceptions-and-troubles-when-using-time-cycles/m-p/108745#M76286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The activiti JobExecutor is not meant to be used for realtime or even near real-time executions. The jobExecutor checks for jobs every 5 seconds and each job within that interval is selected, but if something is run, it is also selecting additional jobs that are due within the next period afaik.&amp;nbsp; So it could be a job is 0-5 seconds early or late. And the default number of threads for the jobExecutor is 3, might also have something to do with it…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But what a strange process if I may say so… (or I might miss something). You have a repeated timer, but the script task that is executed afterwards loops back to the same timer…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 22:13:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exceptions-and-troubles-when-using-time-cycles/m-p/108745#M76286</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-05-30T22:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Exceptions and troubles when using time cycles</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exceptions-and-troubles-when-using-time-cycles/m-p/108746#M76287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi and thanks a lot for the quick answer &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the 5 seconds interval explains the fact that timers are sometimes not perfectly fired on schedule.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I still don't get why I am getting so many exceptions and why some jobs are not executed anymore after a while… (in output_no_exceptions.txt, you can see that only 3 of the 4 process instances I started are triggered by the end). Do you have an idea about that ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for the process I posted, it is only a very simple subset of the complex workflow I'm using, so it doesn't really makes sens in this form. However, there is no reason for this simple example not to work, is there ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot for helping&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 06:32:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exceptions-and-troubles-when-using-time-cycles/m-p/108746#M76287</guid>
      <dc:creator>billbaroud</dc:creator>
      <dc:date>2012-05-31T06:32:41Z</dc:date>
    </item>
  </channel>
</rss>

