<?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: How do Timer intermediate catching event work? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-do-timer-intermediate-catching-event-work/m-p/42373#M22815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To be able to run timers, enable the job executor as described in &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#jobExecutorConfiguration" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#jobExecutorConfiguration&lt;/A&gt;&lt;SPAN&gt;. That takes care of the backrgound thread pool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My point is: if you run in a simple main() method, your process will always stop before it reaches the end state, because your main() methods stops and kills all associated threads.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Apr 2011 07:49:25 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2011-04-22T07:49:25Z</dc:date>
    <item>
      <title>How do Timer intermediate catching event work?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-timer-intermediate-catching-event-work/m-p/42370#M22812</link>
      <description>There are process:&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns&lt;IMG id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;mgdc="http:</description>
      <pubDate>Thu, 21 Apr 2011 11:32:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-timer-intermediate-catching-event-work/m-p/42370#M22812</guid>
      <dc:creator>strae</dc:creator>
      <dc:date>2011-04-21T11:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do Timer intermediate catching event work?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-timer-intermediate-catching-event-work/m-p/42371#M22813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When execution arrives at the timer event, it doesnt use your thread for waiting. If we would do that, it woudldnt be good for performance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So a background threadpool is taking care of executing the rest of the process. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So that explains what you see: the main method executed, but the background thread pool has never the time to kick in.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2011 07:06:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-timer-intermediate-catching-event-work/m-p/42371#M22813</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-04-22T07:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do Timer intermediate catching event work?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-timer-intermediate-catching-event-work/m-p/42372#M22814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;When execution arrives at the timer event, it doesnt use your thread for waiting. If we would do that, it woudldnt be good for performance.&lt;BR /&gt;So a background threadpool is taking care of executing the rest of the process. &lt;BR /&gt;&lt;BR /&gt;So that explains what you see: the main method executed, but the background thread pool has never the time to kick in.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Thanks for the reply,&amp;nbsp; but&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Whot do you mean about "background thread pool"? I want to run simple bpmn process that first wait the timeout then execute servicetask. Process must have only one instance and run in single thread. Timer have to be configurated by&amp;nbsp; bpmn. I do not want implement timer in my java code,&amp;nbsp; for exemple in service task.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2011 07:32:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-timer-intermediate-catching-event-work/m-p/42372#M22814</guid>
      <dc:creator>strae</dc:creator>
      <dc:date>2011-04-22T07:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do Timer intermediate catching event work?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-timer-intermediate-catching-event-work/m-p/42373#M22815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To be able to run timers, enable the job executor as described in &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#jobExecutorConfiguration" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#jobExecutorConfiguration&lt;/A&gt;&lt;SPAN&gt;. That takes care of the backrgound thread pool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My point is: if you run in a simple main() method, your process will always stop before it reaches the end state, because your main() methods stops and kills all associated threads.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2011 07:49:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-timer-intermediate-catching-event-work/m-p/42373#M22815</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-04-22T07:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do Timer intermediate catching event work?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-timer-intermediate-catching-event-work/m-p/42374#M22816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Am starting to explore Activiti and using timer before my next service task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Had to set activiti:async="true" and set the property &amp;lt;code&amp;gt;&amp;lt;property name="jobExecutorActivate" value="true" /&amp;gt; &amp;lt;/code&amp;gt; to make my one minute timer to work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am using a test class to deploy and run instances. After the first instance is created my program exits. Again after a minute I rerun my code(no new instance needed just deploy), the pending service process from the previous instance gets completed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wanted to know how is it working? How is the state managed in Activiti?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to deploy each time or can I keep my program running until all associated threads are over. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can the system crash?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 10:13:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-timer-intermediate-catching-event-work/m-p/42374#M22816</guid>
      <dc:creator>sonam_ag</dc:creator>
      <dc:date>2015-10-09T10:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do Timer intermediate catching event work?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-timer-intermediate-catching-event-work/m-p/42375#M22817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"How is the state managed in Activiti?"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The state of the process instance is stored as a tree of 'executions', stored in ACT_RU_EXECUTION table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The timers are 'jobs' and are stored in the 'ACT_RU_JOB' table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The system can crash, but we're relying on database transaction to bring us from one stable state to the other. If the system crashed, the transaction will be rolled back and the process instance will be in the previous stable state.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 10:53:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-timer-intermediate-catching-event-work/m-p/42375#M22817</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-10-13T10:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do Timer intermediate catching event work?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-timer-intermediate-catching-event-work/m-p/42376#M22818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am facing very strange behavior of intermediate and boundary event timers. They are working fine in development environment, where i have inspected startTime,dueDate and endTime, every thing is fine (only one activiti engine against one db).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But in QA environment it behaves weird. It does not wait for specified time duration though dueDate is seems to be correct. It executes almost immediately irrespective of time duration specified. I found very strange endTime for the same. Below is the example of such strange timer execution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;start_time_(act_hi_actinst)=2015-12-22 12:54:53.267&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;duedate_(act_ru_job)=2015-12-22 12:59:58.67&amp;nbsp; (5 minutes delay)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;end_time_(act_hi_actinst)=2015-12-22 18:24:56.997&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;duration_(act_hi_actinst)=19803728 (strange, its GMT offset, should be 300000)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have two activiti engines against one db in QA for LB. I don't understand what's going wrong here ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 14:15:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-timer-intermediate-catching-event-work/m-p/42376#M22818</guid>
      <dc:creator>hardiku</dc:creator>
      <dc:date>2015-12-22T14:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do Timer intermediate catching event work?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-timer-intermediate-catching-event-work/m-p/42377#M22819</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;SPAN&gt;@hardiku, since you have two engines did you check if the clock of these machines (where engines are deployed) are in sync ? (this is the first thing which comes in my mind now)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 09:04:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-timer-intermediate-catching-event-work/m-p/42377#M22819</guid>
      <dc:creator>vasile_dirla</dc:creator>
      <dc:date>2015-12-23T09:04:42Z</dc:date>
    </item>
  </channel>
</rss>

