<?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: What happens to processes after server restart (Critical) ? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/what-happens-to-processes-after-server-restart-critical/m-p/70621#M45609</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;When you implement these service tasks using async continuations, the process execution should definitely be restarted after a server restart.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The job executor retries 3 times and then sets the job in a failed state. So maybe that happens in your case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you can restart a job manually via the Activiti Explorer or automatically using the Activiti API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Dec 2011 13:36:05 GMT</pubDate>
    <dc:creator>trademak</dc:creator>
    <dc:date>2011-12-05T13:36:05Z</dc:date>
    <item>
      <title>What happens to processes after server restart (Critical) ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-happens-to-processes-after-server-restart-critical/m-p/70618#M45606</link>
      <description>Hi,I have an issue with activiti which seems to be a showstopper. I have raised this issue earlier in this forum but didn't get any proper answer.Here is the scenrio: I hava a processdef(long running) with several servicetasks and if the server gets restarted during the execution of say servicetask3</description>
      <pubDate>Fri, 02 Dec 2011 14:04:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-happens-to-processes-after-server-restart-critical/m-p/70618#M45606</guid>
      <dc:creator>sazzadul</dc:creator>
      <dc:date>2011-12-02T14:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: What happens to processes after server restart (Critical) ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-happens-to-processes-after-server-restart-critical/m-p/70619#M45607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please let me know if this isn't supported and do guide me of a workaround/solution to the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is very critical for us to fix and we would very much like to go in production as soon as this issue is solved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can also add a similiar method like runtimeservice.signal() for service task if you just tell me where in code to look for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 11:19:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-happens-to-processes-after-server-restart-critical/m-p/70619#M45607</guid>
      <dc:creator>sazzadul</dc:creator>
      <dc:date>2011-12-03T11:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: What happens to processes after server restart (Critical) ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-happens-to-processes-after-server-restart-critical/m-p/70620#M45608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is probably not something that activiti can cater for. If you need your application to be restart-proof you'll have to do this yourself. Adding shutdown hooks is one thing but they are not guaranteed to execute so you're pretty much in the same boat.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How was your application coping with this before you added activiti ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT and why can't you just do a manual update to the table to reset the status from active?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 12:39:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-happens-to-processes-after-server-restart-critical/m-p/70620#M45608</guid>
      <dc:creator>heymjo</dc:creator>
      <dc:date>2011-12-05T12:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: What happens to processes after server restart (Critical) ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-happens-to-processes-after-server-restart-critical/m-p/70621#M45609</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;When you implement these service tasks using async continuations, the process execution should definitely be restarted after a server restart.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The job executor retries 3 times and then sets the job in a failed state. So maybe that happens in your case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you can restart a job manually via the Activiti Explorer or automatically using the Activiti API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 13:36:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-happens-to-processes-after-server-restart-critical/m-p/70621#M45609</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-12-05T13:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: What happens to processes after server restart (Critical) ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-happens-to-processes-after-server-restart-critical/m-p/70622#M45610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;First and formost thank you for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are using IBM websphere process server which has has this restart-proof capability.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;EDIT and why can't you just do a manual update to the table to reset the status from active?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;I can very well update the status but that itself will not trigger the execution of my JavaDelegate class and thus not update the hist tabell.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I need to send a sinal so that activiti engine continues the flow from where it left as I do for the case of Receivetask.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Adding shutdown hooks is one thing&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;I am not sure what you are pointing at here. Could you please elaborate ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 13:40:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-happens-to-processes-after-server-restart-critical/m-p/70622#M45610</guid>
      <dc:creator>sazzadul</dc:creator>
      <dc:date>2011-12-05T13:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: What happens to processes after server restart (Critical) ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-happens-to-processes-after-server-restart-critical/m-p/70623#M45611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;When you implement these service tasks using async continuations, the process execution should definitely be restarted after a server restart.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;OK, now I see the problem, you are quite correct about the job executor. It indeed run but from an another instance ( I saw this exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.activiti.engine.ActivitiException: couldn't instantiate class storebrand.crm.servicetask.ServiceTaskThreeDelegate)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have several webapps with job executor sharing the same db. But I guess the job execution is universal. So I need to add some functionality around&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to make it work as a whole.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Then you can restart a job manually via the Activiti Explorer or automatically using the Activiti API.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;I found the function call ManagementService.executeJob(String jobId)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And thanks a lot for your reply.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 13:45:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-happens-to-processes-after-server-restart-critical/m-p/70623#M45611</guid>
      <dc:creator>sazzadul</dc:creator>
      <dc:date>2011-12-05T13:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: What happens to processes after server restart (Critical) ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-happens-to-processes-after-server-restart-critical/m-p/70624#M45612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;About the shutdown hooks: never mind. I thought it would be possible to add some task clean up stuff as a VM shutdown hook, but this IBM process server already seems way beyond that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 08:00:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-happens-to-processes-after-server-restart-critical/m-p/70624#M45612</guid>
      <dc:creator>heymjo</dc:creator>
      <dc:date>2011-12-06T08:00:21Z</dc:date>
    </item>
  </channel>
</rss>

