<?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 How to migrate a ProcessInstance to newer version of process in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-migrate-a-processinstance-to-newer-version-of-process/m-p/128432#M90289</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 process definition which undergoes minor revisions from time to time and we want to move existing process instances to the new version of the process. Is that possible? If not what is the best workaround?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanx,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Feb 2013 11:14:22 GMT</pubDate>
    <dc:creator>rabolfazl</dc:creator>
    <dc:date>2013-02-02T11:14:22Z</dc:date>
    <item>
      <title>How to migrate a ProcessInstance to newer version of process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-migrate-a-processinstance-to-newer-version-of-process/m-p/128432#M90289</link>
      <description>Hi,We have a process definition which undergoes minor revisions from time to time and we want to move existing process instances to the new version of the process. Is that possible? If not what is the best workaround?Thanx,</description>
      <pubDate>Sat, 02 Feb 2013 11:14:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-migrate-a-processinstance-to-newer-version-of-process/m-p/128432#M90289</guid>
      <dc:creator>rabolfazl</dc:creator>
      <dc:date>2013-02-02T11:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to migrate a ProcessInstance to newer version of process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-migrate-a-processinstance-to-newer-version-of-process/m-p/128433#M90290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Take a look at the org.activiti.engine.impl.cmd.SetProcessDefinitionVersionCmd and org.activiti.engine.test.db.ProcessInstanceMigrationTest. Please read the warning in the javadoc &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;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;/**&lt;BR /&gt; * {@link Command} that changes the process definition version of an existing&lt;BR /&gt; * process instance.&lt;BR /&gt; * &lt;BR /&gt; * Warning: This command will NOT perform any migration magic and simply set the&lt;BR /&gt; * process definition version in the database, assuming that the user knows,&lt;BR /&gt; * what he or she is doing.&lt;BR /&gt; * &lt;BR /&gt; * This is only useful for simple migrations. The new process definition MUST&lt;BR /&gt; * have the exact same activity id to make it still run.&lt;BR /&gt; * &lt;BR /&gt; * Furthermore, activities referenced by sub-executions and jobs that belong to&lt;BR /&gt; * the process instance MUST exist in the new process definition version.&lt;BR /&gt; * &lt;BR /&gt; * The command will fail, if there is already a {@link ProcessInstance} or&lt;BR /&gt; * {@link HistoricProcessInstance} using the new process definition version and&lt;BR /&gt; * the same business key as the {@link ProcessInstance} that is to be migrated.&lt;BR /&gt; * &lt;BR /&gt; * If the process instance is not currently waiting but actively running, then&lt;BR /&gt; * this would be a case for optimistic locking, meaning either the version&lt;BR /&gt; * update or the "real work" wins, i.e., this is a race condition.&lt;BR /&gt; * &lt;BR /&gt; * @see &lt;A href="http://forums.activiti.org/en/viewtopic.php?t=2918" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?t=2918&lt;/A&gt;&lt;BR /&gt; * @author Falko Menge&lt;BR /&gt; */&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 09:15:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-migrate-a-processinstance-to-newer-version-of-process/m-p/128433#M90290</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-02-04T09:15:48Z</dc:date>
    </item>
  </channel>
</rss>

