<?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 to shutdown process engine when Application Server shuts in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78132#M51791</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is all in the docs … but okay: Activiti uses database transactions. When your server shuts down, that transaction is either committed or not. In the latter case, it's rolled back and your activiti data is back to the previous stable state.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jun 2016 07:55:03 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2016-06-03T07:55:03Z</dc:date>
    <item>
      <title>How to shutdown process engine when Application Server shuts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78122#M51781</link>
      <description>Hi, We have Activiti running in Weblogic and it starts when Weblogic server is started with code similar to below in a Weblogic startup class:Context jndi = InitialContextHelper.getInitialContext(InitialContextHelper.TYPE_DATASOURCE);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataSource ds = (DataSource) jndi.lookup(DATASOURCE_JN</description>
      <pubDate>Wed, 31 Aug 2011 18:21:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78122#M51781</guid>
      <dc:creator>ruedesilva</dc:creator>
      <dc:date>2011-08-31T18:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to shutdown process engine when Application Server shuts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78123#M51782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Call the destroy method on the processEngine object&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, in a Spring environment:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; &amp;lt;bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean" destroy-method="destroy"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;property name="processEngineConfiguration" ref="processEngineConfiguration" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2011 07:59:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78123#M51782</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-09-01T07:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to shutdown process engine when Application Server shuts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78124#M51783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And this would only destroy after completing all currently running threads right? (Such as any jobs executing). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also we would like to get a little bit more understanding on how the Job executors work, so that we can explain to customers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Does Activiti create a new thread when the engine starts (i.e. buildProcessEngine)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Does it matter for performance how many jobs we have in the DB running ?( i.e. is it one new thread per scheduled job?) Or there is just one thread that handles everything?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) What is used for scheduling? A third-party app like Quartz or something built into Activiti?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rue&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2011 15:17:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78124#M51783</guid>
      <dc:creator>ruedesilva</dc:creator>
      <dc:date>2011-09-01T15:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to shutdown process engine when Application Server shuts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78125#M51784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, it tries to complete all running jobs (with a timeout)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.Indeed, when "jobExecutorActive" property is set to true, the jobexecutor starts when the process-engine is built.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. One thread is started that acquires the jobs. These job's are passed on to a thread-pool. The size can be altered using properties on the process-engine configuration. So performance is based on pool-size and your machine &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Scheduling of the timers is done in the JobExecutor itself. All jobs (including timers) are handled the same, aquired by the thread and handles by the thread-pool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2011 07:27:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78125#M51784</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-09-02T07:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to shutdown process engine when Application Server shuts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78126#M51785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the answers. But I still have these:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Can you indicate what the properties I need to set are? Note that I am building the process engine in code. So I would need the API calls.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) What mechanism is used for scheduling/ Your own code? Or a third party product like Quartz?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks, in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rue&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 17:10:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78126#M51785</guid>
      <dc:creator>ruedesilva</dc:creator>
      <dc:date>2011-09-07T17:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to shutdown process engine when Application Server shuts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78127#M51786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;3) Own, see the source, it is open&amp;nbsp; &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 17:34:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78127#M51786</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-09-07T17:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to shutdown process engine when Application Server shuts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78128#M51787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Before starting the jobExecutor, you can set the properties (using Java) "maxPoolSize" and "corePoolSize".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 08:55:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78128#M51787</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-09-16T08:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to shutdown process engine when Application Server shuts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78129#M51788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;if we configure the below steps in Spring *.xml will it enough or do we need to be implement destory method even though it is already implemented in lib class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean" destroy-method="destroy"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;property name="processEngineConfiguration" ref="processEngineConfiguration" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;testing: deploy in to server and run activity then shutdown server will this able to safe destroy?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;please give me more details info along with examples on implementation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 06:43:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78129#M51788</guid>
      <dc:creator>anand0210</dc:creator>
      <dc:date>2016-05-25T06:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to shutdown process engine when Application Server shuts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78130#M51789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; please give me more details info along with examples on implementation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure if I'm understanding what your asking here .. are you asking whether it's safe to use it like that? If so, yes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 10:22:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78130#M51789</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-05-31T10:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to shutdown process engine when Application Server shuts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78131#M51790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am asking &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) how to do implementation and testing? if any snippets or&amp;nbsp; examples would help me to understand in detail.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) how do we confirm it safe shutdown&amp;nbsp; when the process is running state? should process completes its task or not?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did below steps please correct me if i am wrong:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;———————————————-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;started Actviti flow then stop the server when actviti&amp;nbsp; process completes few tasks and&amp;nbsp; yet to do more tasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I noticed that activiti process stops immediately and show the status as IN PROGRESS for the current tasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted to know whether it stops activiti engine after it updates status as COMPLETED?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;please share more information on how activiti engine behaves when server shutdown.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anand&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 09:05:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78131#M51790</guid>
      <dc:creator>anand0210</dc:creator>
      <dc:date>2016-06-01T09:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to shutdown process engine when Application Server shuts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78132#M51791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is all in the docs … but okay: Activiti uses database transactions. When your server shuts down, that transaction is either committed or not. In the latter case, it's rolled back and your activiti data is back to the previous stable state.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 07:55:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78132#M51791</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-06-03T07:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to shutdown process engine when Application Server shuts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78133#M51792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 05:10:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-shutdown-process-engine-when-application-server-shuts/m-p/78133#M51792</guid>
      <dc:creator>anand0210</dc:creator>
      <dc:date>2016-06-06T05:10:48Z</dc:date>
    </item>
  </channel>
</rss>

