<?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: Migrating process instances to newer versions in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/migrating-process-instances-to-newer-versions/m-p/124261#M87451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Take a look at org.activiti.engine.impl.cmd.SetProcessDefinitionVersionCmd:&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;[code]&lt;BR /&gt;&lt;BR /&gt;This is no "official" command offered in the API, but we welcome you to review this and propose solutions to make this more "standard"&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 May 2013 07:53:00 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-05-13T07:53:00Z</dc:date>
    <item>
      <title>Migrating process instances to newer versions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/migrating-process-instances-to-newer-versions/m-p/124260#M87450</link>
      <description>HiI am M.S Student in Software Engineering, in Sharif University Of Technology,I am interested in Dynamic Workflow and I've studied some papers in this field and trying to prepare my proposal. But it's so strange to me that there is no proven mechanism in Activiti Engine to handle the problem of "Mi</description>
      <pubDate>Wed, 08 May 2013 20:49:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/migrating-process-instances-to-newer-versions/m-p/124260#M87450</guid>
      <dc:creator>hamed1369</dc:creator>
      <dc:date>2013-05-08T20:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating process instances to newer versions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/migrating-process-instances-to-newer-versions/m-p/124261#M87451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Take a look at org.activiti.engine.impl.cmd.SetProcessDefinitionVersionCmd:&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;[code]&lt;BR /&gt;&lt;BR /&gt;This is no "official" command offered in the API, but we welcome you to review this and propose solutions to make this more "standard"&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 07:53:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/migrating-process-instances-to-newer-versions/m-p/124261#M87451</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-05-13T07:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating process instances to newer versions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/migrating-process-instances-to-newer-versions/m-p/124262#M87452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Frederik,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to invoke SetProcessDefinitionVersionCmd from inside an event? I've been trying, but I'm affraid is not possible because the new deployment has not been created yet. Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jonathan.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 17:53:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/migrating-process-instances-to-newer-versions/m-p/124262#M87452</guid>
      <dc:creator>jperez11</dc:creator>
      <dc:date>2016-11-07T17:53:54Z</dc:date>
    </item>
  </channel>
</rss>

