<?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: Stop and resume Activiti processes and state management in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/stop-and-resume-activiti-processes-and-state-management/m-p/30457#M15634</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;1. As I understand it is not possible to pause/restart the PI [process instance] in the acitviti, but is it on road map?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;What do you mean by pause/restart? Do you mean at a waitstate in the process or somewhere else? &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What I meant was pausing execution of a PI anywhere in the process in order to stop the engine. So any tasks beeing executed in the background could perform any clean up (if required). Taking into account your reply and because it is closely related to the following question, please see below.&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;ProcessEngine.close();&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any notification mechanism of the engine (or process) execution? How for example a java Service Task can know that the engine that runs the process is being closed? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Nov 2011 17:51:58 GMT</pubDate>
    <dc:creator>mats</dc:creator>
    <dc:date>2011-11-21T17:51:58Z</dc:date>
    <item>
      <title>Stop and resume Activiti processes and state management</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/stop-and-resume-activiti-processes-and-state-management/m-p/30451#M15628</link>
      <description>Hi and thanks all for your job with this engine!I've a question for u: I'm moving my Spring web application from using a JBPM 4.3 engine to the Activiti engine; until now I'm in trouble only for two old features that worked with the old engine:1) I couldn't stop and resume processes2) I couldn't man</description>
      <pubDate>Thu, 03 Mar 2011 21:42:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/stop-and-resume-activiti-processes-and-state-management/m-p/30451#M15628</guid>
      <dc:creator>aitan</dc:creator>
      <dc:date>2011-03-03T21:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Stop and resume Activiti processes and state management</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/stop-and-resume-activiti-processes-and-state-management/m-p/30452#M15629</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;Suspending/resuming a process is not possible in activiti currently, a process only stops when a waitstate (eg. user task) is reached or when it's ended.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To view process state, you can use probe (&lt;/SPAN&gt;&lt;A href="http://www.jorambarrez.be/blog/2011/02/01/screencast-proc-inst-visual/" rel="nofollow noopener noreferrer"&gt;http://www.jorambarrez.be/blog/2011/02/01/screencast-proc-inst-visual/&lt;/A&gt;&lt;SPAN&gt;). You can use the visualisation feature to create png's for your own app, have a look at org.activiti.engine.impl.bpmn.diagram.ProcessDiagramGenerator and org.activiti.rest.api.process.ProcessInstanceDiagramGet for example on how to generate this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 06:55:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/stop-and-resume-activiti-processes-and-state-management/m-p/30452#M15629</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-03-04T06:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Stop and resume Activiti processes and state management</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/stop-and-resume-activiti-processes-and-state-management/m-p/30453#M15630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for your reply;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ok for the stop and resume feature I'm trying to solve with a workaround&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;a last question about process state:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;can I monitor this state using activiti API???&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 09:18:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/stop-and-resume-activiti-processes-and-state-management/m-p/30453#M15630</guid>
      <dc:creator>aitan</dc:creator>
      <dc:date>2011-03-04T09:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Stop and resume Activiti processes and state management</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/stop-and-resume-activiti-processes-and-state-management/m-p/30454#M15631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, you would have to use a process variable there and create your own API around it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 16:01:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/stop-and-resume-activiti-processes-and-state-management/m-p/30454#M15631</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-03-04T16:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Stop and resume Activiti processes and state management</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/stop-and-resume-activiti-processes-and-state-management/m-p/30455#M15632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are currently considering the use of activiti in our project. The app running activiti could be run on both desktop or a server and would orchestrate an execution of workflows with potentially very long running tasks (one/two weeks). In order to fulfill that requirement the workflow engine would need to be able to pause/restart the process instance when executing a task. The pausing request would ideally notify the active tasks to save their state (or roll back) prior shutting down the workflow engine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The questions are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. As I understand it is not possible to pause/restart the PI [process instance] in the acitviti, but is it on road map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Are there some workarounds proven to work with activiti to cover the pause/restart functionality? Is the following example solution possible: task creates an environmental variable to store its state during its execution and when the process instance is stopped-and-restarted it uses the variable to load its state? Or since such variable would be created inside an uncommited transaction some additional session mechanism would need to be introduced to store such interim state data?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Acitivi uses a database to store runtime variables of currently running processes. In case of a (system) failure after the engine is restarted activiti should continue execution of the processes using the state information from the database. Is it possible to programmatically stop the engine or engine is not meant to be stopped and that is a case of stopping JVM? I couldn't find an example anywhere and also there is no section in the user guide that covers that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mats&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 12:14:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/stop-and-resume-activiti-processes-and-state-management/m-p/30455#M15632</guid>
      <dc:creator>mats</dc:creator>
      <dc:date>2011-11-21T12:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Stop and resume Activiti processes and state management</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/stop-and-resume-activiti-processes-and-state-management/m-p/30456#M15633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Whenever you put a waitstate in a process (Timer, UserTask, ReceiveMessage, …) activiti is going to persist the current state of the process instance and wait for a signal to continue. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That signal can come from "within" activiti (Timer) or from outside (Message / Usertask). So the default behavior of activiti is to persist at these waitstates. Everything in between of two waitstates happens in a single transaction (either succeeds or fails atomically).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So it is OK to "shut down" activiti: all process instances currently at a waitstate will be able to resume from the database after.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;1. As I understand it is not possible to pause/restart the PI [process instance] in the acitviti, but is it on road map?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;What do you mean by pause/restart? Do you mean at a waitstate in the process or somewhere else? &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;3. Acitivi uses a database to store runtime variables of currently running processes. In case of a (system) failure after the engine is restarted activiti should continue execution of the processes using the state information from the database. Is it possible to programmatically stop the engine or engine is not meant to be stopped and that is a case of stopping JVM? I couldn't find an example anywhere and also there is no section in the user guide that covers that.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;ProcessEngine.close()&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 14:14:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/stop-and-resume-activiti-processes-and-state-management/m-p/30456#M15633</guid>
      <dc:creator>meyerd</dc:creator>
      <dc:date>2011-11-21T14:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Stop and resume Activiti processes and state management</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/stop-and-resume-activiti-processes-and-state-management/m-p/30457#M15634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;1. As I understand it is not possible to pause/restart the PI [process instance] in the acitviti, but is it on road map?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;What do you mean by pause/restart? Do you mean at a waitstate in the process or somewhere else? &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What I meant was pausing execution of a PI anywhere in the process in order to stop the engine. So any tasks beeing executed in the background could perform any clean up (if required). Taking into account your reply and because it is closely related to the following question, please see below.&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;ProcessEngine.close();&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any notification mechanism of the engine (or process) execution? How for example a java Service Task can know that the engine that runs the process is being closed? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 17:51:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/stop-and-resume-activiti-processes-and-state-management/m-p/30457#M15634</guid>
      <dc:creator>mats</dc:creator>
      <dc:date>2011-11-21T17:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Stop and resume Activiti processes and state management</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/stop-and-resume-activiti-processes-and-state-management/m-p/30458#M15635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Gaetano,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;please read this again, carefully:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;the default behavior of activiti is to persist at these waitstates. Everything in between of two waitstates happens in a single transaction (either succeeds or fails atomically).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you need a better understanding of "what" activiti "is" and how it works. Try to implement a process using activiti designer and test it in a unit test etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 08:02:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/stop-and-resume-activiti-processes-and-state-management/m-p/30458#M15635</guid>
      <dc:creator>meyerd</dc:creator>
      <dc:date>2011-11-22T08:02:40Z</dc:date>
    </item>
  </channel>
</rss>

