<?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 version migration problem in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/version-migration-problem/m-p/163909#M117682</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;I am trying to migrate a process to newer version of same process. But I have&amp;nbsp; a problem. All processes can not be migrated to process. When I&amp;nbsp; run my process on debug mode , I see that "all processes waiting to be executed on embedded sub process" can not be migrated to newer version. and I also have some findings below;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) proc_def_id column on act_hi_procinst is updated but proc_def_id columns of&amp;nbsp; act_ru_task task,act_ru_execution,ACT_HI_TASKINST tables are not updated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) when I run the code below&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"runtimeService.createProcessInstanceQuery().processDefinitionId(processDefinitionId);"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it generates a sql below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;select * from (&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; select a.*, ROWNUM rnum from ( &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; select distinct RES.* , P.KEY_ as ProcessDefinitionKey, P.ID_ as ProcessDefinitionId from ACT_RU_EXECUTION RES &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; inner join ACT_RE_PROCDEF P on RES.PROC_DEF_ID_ = P.ID_ &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; WHERE RES.PARENT_ID_ is null and P.ID_ = ? and (RES.SUSPENSION_STATE_ = 1) order by RES.ID_ asc ) a where ROWNUM &amp;lt; ?) where rnum &amp;gt;= ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) when I check the related records on ACT_RU_EXECUTION , all tasks on embedded subprocess have&amp;nbsp; PARENT_ID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any error on this method.&amp;nbsp; Or I have to apply a different methods or procedure to migrate processes having embedded subprocess. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Oct 2013 11:26:18 GMT</pubDate>
    <dc:creator>nemesis1</dc:creator>
    <dc:date>2013-10-10T11:26:18Z</dc:date>
    <item>
      <title>version migration problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/version-migration-problem/m-p/163909#M117682</link>
      <description>Hi;I am trying to migrate a process to newer version of same process. But I have&amp;nbsp; a problem. All processes can not be migrated to process. When I&amp;nbsp; run my process on debug mode , I see that "all processes waiting to be executed on embedded sub process" can not be migrated to newer version. and I also</description>
      <pubDate>Thu, 10 Oct 2013 11:26:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/version-migration-problem/m-p/163909#M117682</guid>
      <dc:creator>nemesis1</dc:creator>
      <dc:date>2013-10-10T11:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: version migration problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/version-migration-problem/m-p/163910#M117683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How are you doing that migration? Did you write your own logic for it?&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, 10 Oct 2013 12:23:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/version-migration-problem/m-p/163910#M117683</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-10-10T12:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: version migration problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/version-migration-problem/m-p/163911#M117684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your fast reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;activiti project was embedded into our project. We are using your api methods. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; To migrate processes we are calling activiti method below&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"setProcessDefinitonVersion(processInstanceId, processDefinitionVersion);"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To obtain processInstanceIds, we are using runtimeService.createProcessInstanceQuery().processDefinitionId(processDefinitionId) method, but it does not return the instances having parent id (tasks on embedded subprocess). did I call correct method to obtain processInstanceIds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 14:40:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/version-migration-problem/m-p/163911#M117684</guid>
      <dc:creator>nemesis1</dc:creator>
      <dc:date>2013-10-10T14:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: version migration problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/version-migration-problem/m-p/163912#M117685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You probably will need a more advanced query, cause like you noticed it doesnt incoporate subprocesses and such.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 10:07:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/version-migration-problem/m-p/163912#M117685</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-10-21T10:07:29Z</dc:date>
    </item>
  </channel>
</rss>

