<?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 move process instance from old process definiton  into new process definiton in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-move-process-instance-from-old-process-definiton-into-new/m-p/155225#M109591</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, this does what you need. Take into consideration the dangers that come with it:&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>Wed, 02 Oct 2013 09:53:17 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-10-02T09:53:17Z</dc:date>
    <item>
      <title>how to move process instance from old process definiton  into new process definiton</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-move-process-instance-from-old-process-definiton-into-new/m-p/155224#M109590</link>
      <description>Dear all,I already generate a lot of process instance . For example 100 runtime process instance (not completed)&amp;nbsp; from process definition&amp;nbsp; id -&amp;gt; tes:1:1. There is situation when i have to modified the process definition.i upload the modified process definition to server.the proses definition id&amp;nbsp;</description>
      <pubDate>Tue, 01 Oct 2013 06:05:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-move-process-instance-from-old-process-definiton-into-new/m-p/155224#M109590</guid>
      <dc:creator>suseno</dc:creator>
      <dc:date>2013-10-01T06:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to move process instance from old process definiton  into new process definiton</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-move-process-instance-from-old-process-definiton-into-new/m-p/155225#M109591</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, this does what you need. Take into consideration the dangers that come with it:&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>Wed, 02 Oct 2013 09:53:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-move-process-instance-from-old-process-definiton-into-new/m-p/155225#M109591</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-10-02T09:53:17Z</dc:date>
    </item>
  </channel>
</rss>

