<?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: Timer start event not starting all process instances in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/timer-start-event-not-starting-all-process-instances/m-p/110280#M77452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's always good to upgrade to the latest version of Activiti. We're working very hard to make it better with every release &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess the policy might work, but if the jobs were rejected because of an overload, you're just making the problem worse …&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A more elegant solution would be to put them on a waiting queue and retry a bit later on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or, just use the CallerRunsRejectedJobsHandler. That one will definitly execute the job, using the current thread (which might slow down the job execution … which is a good thing if the system is saturated).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Oct 2012 09:44:27 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2012-10-16T09:44:27Z</dc:date>
    <item>
      <title>Timer start event not starting all process instances</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-start-event-not-starting-all-process-instances/m-p/110275#M77447</link>
      <description>Hi,I would like to know what happens if a timer start event tries to start a process instance when the number of job executor threads specified by the corePoolSize are exhausted.&amp;nbsp; I observed that in such a case, the timer start event failed to start a process instance.&amp;nbsp; I now describe my experiment</description>
      <pubDate>Thu, 11 Oct 2012 00:09:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-start-event-not-starting-all-process-instances/m-p/110275#M77447</guid>
      <dc:creator>tushard</dc:creator>
      <dc:date>2012-10-11T00:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Timer start event not starting all process instances</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-start-event-not-starting-all-process-instances/m-p/110276#M77448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the thead-pool is exhausted, an implementation of the following class is consulted:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;/**&lt;BR /&gt; * &amp;lt;p&amp;gt;Strategy for handling jobs that were acquired but cannot be &lt;BR /&gt; * executed at this point (queue-size exceeded).&amp;lt;/p&amp;gt; &lt;BR /&gt; * &lt;BR /&gt; * @author Daniel Meyer&lt;BR /&gt; */&lt;BR /&gt;public interface RejectedJobsHandler {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; public void jobsRejected(JobExecutor jobExecutor, List&amp;lt;String&amp;gt; jobIds);&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;By default (CallerRunsRejectedJobsHandler), the calling thread is used to run the job that should have been run by the pool. In most cases, this is the job-aquisition-thread. So any subsequent jobs that need to be executed (while the aquire-jobs thread is busy executing the job) WON'T be executed or added to the pool until the aquisition-thread is freed up again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As this is sometimes not required behavior, you can implement your custom strategy and plug in in using the ProcessEngineConfiguration.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 13:01:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-start-event-not-starting-all-process-instances/m-p/110276#M77448</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-11T13:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Timer start event not starting all process instances</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-start-event-not-starting-all-process-instances/m-p/110277#M77449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You said that &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;By default (CallerRunsRejectedJobsHandler), the calling thread is used to run the job that should have been run by the pool. In most cases, this is the job-aquisition-thread.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;&amp;nbsp; Does this mean that when the thread pool is exhausted, the job-acquisition-thread is forced to execute a job and therefore, any further jobs are not added to the pool until the aquisition-thread is freed up again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Tushar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Oct 2012 23:04:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-start-event-not-starting-all-process-instances/m-p/110277#M77449</guid>
      <dc:creator>tushard</dc:creator>
      <dc:date>2012-10-14T23:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Timer start event not starting all process instances</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-start-event-not-starting-all-process-instances/m-p/110278#M77450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, by default, it is. You can change this behavior any way you'd like…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 07:48:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-start-event-not-starting-all-process-instances/m-p/110278#M77450</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-15T07:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Timer start event not starting all process instances</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-start-event-not-starting-all-process-instances/m-p/110279#M77451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;RejectedJobsHandler and CallerRunsRejectedJobsHandler are part of Activiti 5.10, however, we are using Activiti 5.8 in our project.&amp;nbsp; Inspection of the executeJobs method of the JobExecutor shows that RejectedExecutionException handling is not implemented in Activiti 5.8.&amp;nbsp; Can I implement rejected jobs handler in Activiti 5.8 or is it better to upgrade to Activiti 5.10?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Activiti 5.10, is it ok if I implement following custom rejected jobs handling policy?&amp;nbsp; Here, I am asking the jobExecutor to retry the rejected jobs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;public class MyRejectedJobsHandler implements RejectedJobsHandler {&lt;BR /&gt; public void jobsRejected(JobExecutor jobExecutor, List&amp;lt;String&amp;gt; jobIds) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; jobExecutor.executeJobs(jobIds);&lt;BR /&gt; }&lt;BR /&gt;}&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;- Tushar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 17:23:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-start-event-not-starting-all-process-instances/m-p/110279#M77451</guid>
      <dc:creator>tushard</dc:creator>
      <dc:date>2012-10-15T17:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Timer start event not starting all process instances</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-start-event-not-starting-all-process-instances/m-p/110280#M77452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's always good to upgrade to the latest version of Activiti. We're working very hard to make it better with every release &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess the policy might work, but if the jobs were rejected because of an overload, you're just making the problem worse …&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A more elegant solution would be to put them on a waiting queue and retry a bit later on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or, just use the CallerRunsRejectedJobsHandler. That one will definitly execute the job, using the current thread (which might slow down the job execution … which is a good thing if the system is saturated).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 09:44:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-start-event-not-starting-all-process-instances/m-p/110280#M77452</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-10-16T09:44:27Z</dc:date>
    </item>
  </channel>
</rss>

