<?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 deal with old process instance when the process updated in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208461#M161591</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;There are several posts on the forum which deals with this topic. Use &lt;/SPAN&gt;&lt;CODE&gt;org.activiti.engine.impl.cmd.SetProcessDefinitionVersionCmd&lt;/CODE&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Dec 2014 07:28:55 GMT</pubDate>
    <dc:creator>martin_grofcik</dc:creator>
    <dc:date>2014-12-10T07:28:55Z</dc:date>
    <item>
      <title>how to deal with old process instance when the process updated</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208457#M161587</link>
      <description>the process defination will change and when changed, how to deal with the old process instance this is to say , how the old process instance will carry on next ?</description>
      <pubDate>Mon, 08 Dec 2014 15:41:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208457#M161587</guid>
      <dc:creator>mm524262909</dc:creator>
      <dc:date>2014-12-08T15:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to deal with old process instance when the process updated</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208458#M161588</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;"old" - already running process instances behaves according to exact process definition version. This process definition (exact version) did not change. (does not matter that there is new process definition version). "Old" process instances works according to "old" process definition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 07:23:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208458#M161588</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-12-09T07:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to deal with old process instance when the process updated</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208459#M161589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;but i want the&amp;nbsp; "Old" process instances works according to "new" process definition. what can i do ? can you help me or give me some advice ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 13:58:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208459#M161589</guid>
      <dc:creator>mm524262909</dc:creator>
      <dc:date>2014-12-09T13:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to deal with old process instance when the process updated</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208460#M161590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;but i want the&amp;nbsp; "Old" process instances works according to "new" process definition. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what can i do ? can you help me or give me some advice ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 14:00:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208460#M161590</guid>
      <dc:creator>mm524262909</dc:creator>
      <dc:date>2014-12-09T14:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to deal with old process instance when the process updated</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208461#M161591</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;There are several posts on the forum which deals with this topic. Use &lt;/SPAN&gt;&lt;CODE&gt;org.activiti.engine.impl.cmd.SetProcessDefinitionVersionCmd&lt;/CODE&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 07:28:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208461#M161591</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-12-10T07:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to deal with old process instance when the process updated</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208462#M161592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;but when the new process and the old one has conflict , what will the engine do ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for example, in the old , there is three parallel tasks and one of them is completed, but now we changed the process defination and merge this three tasks and Use org.activiti.engine.impl.cmd.SetProcessDefinitionVersionCmd. now in the new process , the process instance is in the places of the merged task ? and what about some even worse conflict&amp;nbsp; ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;can you give me some links about the problem&amp;nbsp; i mentioned here ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 12:06:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208462#M161592</guid>
      <dc:creator>mm524262909</dc:creator>
      <dc:date>2014-12-10T12:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to deal with old process instance when the process updated</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208463#M161593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;in general, this rule applies (i guess this is true for most workflow engines like activiti, jbpm …):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when you start a process instance based upon a given process definition, it is bound the this process definition forever. you can not work on an old process instance with a newer process definition. old process instances will continue to execute on the old process definition, new process instances will execute on the new process definition.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 19:01:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208463#M161593</guid>
      <dc:creator>ollib</dc:creator>
      <dc:date>2014-12-10T19:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to deal with old process instance when the process updated</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208464#M161594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;but if i want ,&amp;nbsp; is there a solution ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or&amp;nbsp; can i do something to transform the old to the new ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and someone up said org.activiti.engine.impl.cmd.SetProcessDefinitionVersionCmd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i think activiti should have supply something ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 08:34:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208464#M161594</guid>
      <dc:creator>mm524262909</dc:creator>
      <dc:date>2014-12-11T08:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to deal with old process instance when the process updated</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208465#M161595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use the SetProcessDefinitionVersionCmd yes. This will move a process instance to a different process definition.&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>Thu, 11 Dec 2014 08:37:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208465#M161595</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-12-11T08:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to deal with old process instance when the process updated</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208466#M161596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;but when the new process and the old one has conflict , what will the engine do ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for example, in the old , there is three parallel tasks and one of them is completed, but now we changed the process defination and merge this three tasks and Use org.activiti.engine.impl.cmd.SetProcessDefinitionVersionCmd. now in the new process , the process instance is in the places of the merged task ? and what about some even worse conflict ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;can you give me some links about the problem i mentioned here ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 08:40:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208466#M161596</guid>
      <dc:creator>mm524262909</dc:creator>
      <dc:date>2014-12-11T08:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to deal with old process instance when the process updated</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208467#M161597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you have a real world scenario to use as an example mm524262909?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 11:30:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208467#M161597</guid>
      <dc:creator>viggo_navarsete</dc:creator>
      <dc:date>2014-12-11T11:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to deal with old process instance when the process updated</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208468#M161598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi mm524262909&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;but when the new process and the old one has conflict , what will the engine do ?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Your example and use case is valid - I faced this problem many times. (the simplest one is - small bug in process definition (100 process instances are running according to this process definition…&amp;nbsp; you have fix already but you do not have possibility to change it - this is solved by SetProcessDefinitionVersionCmd).&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;SetProcessDefinitionVersionCmd&lt;/CODE&gt;&lt;SPAN&gt; sets only process definition version of the running process instance. It does not cope with process instance state transition to the new process definition. Process instance state transition can not be done automatically in general, but you can use activiti commands/DB to transform process instance to the new state.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Links&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Search the forum - I like this topic very much because it is crucial for workflow platform administration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 09:18:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-deal-with-old-process-instance-when-the-process-updated/m-p/208468#M161598</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-12-12T09:18:28Z</dc:date>
    </item>
  </channel>
</rss>

