<?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 Sub-Process Migration Solution in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/sub-process-migration-solution/m-p/201225#M154355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anybody have a good solution for migrating sub processes when updating the process definition?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a sub process defined with a simple "Start -&amp;gt; TaskInsideSubProcess -&amp;gt; End".&amp;nbsp; After I modify another task somewhere else in the definition, I deploy the file and use the SetProcessDefinitionVersionCmd to update all process instances.&amp;nbsp; The migration seemly works (no exception are thrown) but once that "TaskInsideSubProcess" is completed, the next task outside the sub process is not created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My migration code is get all process instances:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; processEngine.getRuntimeService().createProcessInstanceQuery()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .processDefinitionKey(definitionKey)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .active()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .list();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and iterate to migrate via:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CommandExecutor commandExecutor = processEngineConfig.getJobExecutor().getCommandExecutor();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; commandExecutor.execute(new SetProcessDefinitionVersionCmd(processInstanceId, processDefinitionVersion));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any input is appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Oct 2014 23:50:42 GMT</pubDate>
    <dc:creator>wjeong</dc:creator>
    <dc:date>2014-10-28T23:50:42Z</dc:date>
    <item>
      <title>Sub-Process Migration Solution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sub-process-migration-solution/m-p/201225#M154355</link>
      <description>Does anybody have a good solution for migrating sub processes when updating the process definition?I have a sub process defined with a simple "Start -&amp;gt; TaskInsideSubProcess -&amp;gt; End".&amp;nbsp; After I modify another task somewhere else in the definition, I deploy the file and use the SetProcessDefinitio</description>
      <pubDate>Tue, 28 Oct 2014 23:50:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sub-process-migration-solution/m-p/201225#M154355</guid>
      <dc:creator>wjeong</dc:creator>
      <dc:date>2014-10-28T23:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sub-Process Migration Solution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sub-process-migration-solution/m-p/201226#M154356</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;CODE&gt;SetProcessDefinitionVersionCmd &lt;/CODE&gt;&lt;SPAN&gt; sets process definition for executions. Is subprocess execution in the process instances list?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If not try to take subprocess execution and set process definition for the process execution too.&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>Thu, 30 Oct 2014 06:03:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sub-process-migration-solution/m-p/201226#M154356</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-10-30T06:03:16Z</dc:date>
    </item>
  </channel>
</rss>

