<?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: Need help to retrive the process variables after JVM restart in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/need-help-to-retrive-the-process-variables-after-jvm-restart/m-p/120901#M85212</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your input. One more quick question on this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With that above scenario, we made the service tasks to be async true. One thing we noticed during testing is, if any of the service tasks execution takes more than 5 minutes, then it is getting retried again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To avoid this, updating our activiti-context file with the following bean and passing the reference as mentioned below,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;could you please let us know if this is a correct way to do it and if there is any impact because of this changes. we are using activiti engine 5.8.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;bean id="myJobExecutor" class="org.activiti.engine.impl.jobexecutor.JobExecutor"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property name="lockTimeInMillis" value="3600000"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/bean&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property name="myJobExecutor" ref="myJobExecutor" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lakshmi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Apr 2013 12:19:39 GMT</pubDate>
    <dc:creator>lakmg</dc:creator>
    <dc:date>2013-04-05T12:19:39Z</dc:date>
    <item>
      <title>Need help to retrive the process variables after JVM restart</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-help-to-retrive-the-process-variables-after-jvm-restart/m-p/120897#M85208</link>
      <description>Hi,We have a scenario where we have two service task and we store few process variables into activiti DB during service task execution.We need to retrive this process variables after JVM restart. Is there any way we can achieve this?Thanks,Lakshmi</description>
      <pubDate>Fri, 29 Mar 2013 11:11:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-help-to-retrive-the-process-variables-after-jvm-restart/m-p/120897#M85208</guid>
      <dc:creator>lakmg</dc:creator>
      <dc:date>2013-03-29T11:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to retrive the process variables after JVM restart</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-help-to-retrive-the-process-variables-after-jvm-restart/m-p/120898#M85209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When the process reaches a wait-state (user-task, recieve-task, …) OR an asynchronous execution OR a process-end, the process-variables are stored in the database. All operations done from the API-invokation (eg. start process, compete task) until the wait-state/async/end are done in a single transaction. In case the JVM crashes in while the service-tasks are executing, the transaction will be rolled-back to the start it was before the API-call was done. So there won't be any trace of the execution that was going on when the JVM went down.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2013 11:51:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-help-to-retrive-the-process-variables-after-jvm-restart/m-p/120898#M85209</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-03-29T11:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to retrive the process variables after JVM restart</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-help-to-retrive-the-process-variables-after-jvm-restart/m-p/120899#M85210</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;We have a below mentioned scenario.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UserTask - UT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ServiceTask - ST&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UT1 –&amp;gt; ST1–&amp;gt; ST2–&amp;gt; ST3–&amp;gt; UT2–&amp;gt; ST4–&amp;gt;ST5–&amp;gt; UT3&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While the execution is in progress and say for example if the current execution is at ST2, and if our process/JVM goes for a restart, once it comes back, we want the execution to continue from where it left. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We tried making the Async status to true and with this, activiti is actually continuing the task from where it left after the restart.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you please let us know if there is any drawback with this approach to achieve what we are looking at?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lakshmi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 06:22:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-help-to-retrive-the-process-variables-after-jvm-restart/m-p/120899#M85210</guid>
      <dc:creator>lakmg</dc:creator>
      <dc:date>2013-04-04T06:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to retrive the process variables after JVM restart</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-help-to-retrive-the-process-variables-after-jvm-restart/m-p/120900#M85211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you make all service-tasks async, they will indeed be running in a separate transaction and a failure (or JVM-crash) will only rollback the last one. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only drawback there is to this (and this is not a real drawback, just a fact) that the startProcess() or completeTask() call will return immediately when it reaches the first async-service-task. You know the service-task is now going to be executed ion the background, but don't get any exceptions in the calling thread that does the API-call. If a service-task fails, the exception is present in the corresponding job-entity. In case of NONE of the service-tasks are asynchronous, when the completeTask() method returns without exceptions, you can be sure all service-tasks were executed without issues… So this requires some more logic/admin work to see if the process is still moving on without exceptions in the background.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 08:59:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-help-to-retrive-the-process-variables-after-jvm-restart/m-p/120900#M85211</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-04-04T08:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to retrive the process variables after JVM restart</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-help-to-retrive-the-process-variables-after-jvm-restart/m-p/120901#M85212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your input. One more quick question on this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With that above scenario, we made the service tasks to be async true. One thing we noticed during testing is, if any of the service tasks execution takes more than 5 minutes, then it is getting retried again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To avoid this, updating our activiti-context file with the following bean and passing the reference as mentioned below,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;could you please let us know if this is a correct way to do it and if there is any impact because of this changes. we are using activiti engine 5.8.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;bean id="myJobExecutor" class="org.activiti.engine.impl.jobexecutor.JobExecutor"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property name="lockTimeInMillis" value="3600000"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/bean&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property name="myJobExecutor" ref="myJobExecutor" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lakshmi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 12:19:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-help-to-retrive-the-process-variables-after-jvm-restart/m-p/120901#M85212</guid>
      <dc:creator>lakmg</dc:creator>
      <dc:date>2013-04-05T12:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to retrive the process variables after JVM restart</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-help-to-retrive-the-process-variables-after-jvm-restart/m-p/120902#M85213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That is indeed the correct way to raise the lock-timeout incase a service-call takes a long time. Keep in mind, however, that the service-task execution keeps a transaction active during execution and can have an impart on the DB if many open transactions are alive (+ make sure connection-timeout is set high enough). Also, if the service-task only requires little data read/write from activiti, you might consider offloading the actual execution outside of activiti (camel, for example) and use some kind of queuing-mechanism combined with signal-tasks in the process. This way, no transactions will be open for a long time and also frees up additional job-executor threads that are otherwise used for long-running executions and may impact other jobs (eg. timer-execution).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 12:24:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-help-to-retrive-the-process-variables-after-jvm-restart/m-p/120902#M85213</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-04-05T12:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to retrive the process variables after JVM restart</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-help-to-retrive-the-process-variables-after-jvm-restart/m-p/120903#M85214</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;For the above mentioned scenario, i have made the jobexecutor configuration as below&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;bean id="jobExecutor" class="org.activiti.engine.impl.jobexecutor.JobExecutor"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property name="lockTimeInMillis" value="7200000"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property name="jobExecutor" ref="jobExecutor" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what i observe is, since the service tasks are mentioned as async, once the JVM is restarted, the service tasks operation resumes from the last operation, whereas the delay of how much time it takes to resume the operation after JVM restart is not predictable. At times i used to see the operation getting started rightaway and at times it takes few minutes, and once i saw that the operation is taking 2 hours for it to continue. Is this anything related to lockTimeInMillis parameter? Could you please provide some details about it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lakshmi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 04:56:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-help-to-retrive-the-process-variables-after-jvm-restart/m-p/120903#M85214</guid>
      <dc:creator>lakmg</dc:creator>
      <dc:date>2013-04-09T04:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to retrive the process variables after JVM restart</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-help-to-retrive-the-process-variables-after-jvm-restart/m-p/120904#M85215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, if you specify 120 minutes the job will not be retried within 120 minutes after starting it. How long that is after restarting the server is dependend on at what point in time between job creation and lock timeout you restarted the server. That is at least what I know from the jobexecutor.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 06:27:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-help-to-retrive-the-process-variables-after-jvm-restart/m-p/120904#M85215</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2013-04-09T06:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to retrive the process variables after JVM restart</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-help-to-retrive-the-process-variables-after-jvm-restart/m-p/120905#M85216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Ronald for the info.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Without specifying the lockTimeInMillis, by default if any service tasks takes more than 5 mins, then the service task was getting retried again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hence we tried to change this timer to 2 hours (assuming some of the service task we have might take more time). But changing this value to 2 hours, now we are observing the behavior stated in the last post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lakshmi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 06:38:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-help-to-retrive-the-process-variables-after-jvm-restart/m-p/120905#M85216</guid>
      <dc:creator>lakmg</dc:creator>
      <dc:date>2013-04-09T06:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to retrive the process variables after JVM restart</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-help-to-retrive-the-process-variables-after-jvm-restart/m-p/120906#M85217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So increasing the lockTimeInMillis would have an impact on the service task startup after the JVM restart? I mean increasing this value would delay the start of the service task execution after restart, is that observation correct? could you please confirm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lakshmi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 09:21:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-help-to-retrive-the-process-variables-after-jvm-restart/m-p/120906#M85217</guid>
      <dc:creator>lakmg</dc:creator>
      <dc:date>2013-04-09T09:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to retrive the process variables after JVM restart</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-help-to-retrive-the-process-variables-after-jvm-restart/m-p/120907#M85218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, that is what i said…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 21:35:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-help-to-retrive-the-process-variables-after-jvm-restart/m-p/120907#M85218</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2013-04-09T21:35:10Z</dc:date>
    </item>
  </channel>
</rss>

