<?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 Subprocess Usage in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/subprocess-usage/m-p/168044#M121533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there any way using the Rest-api to return the parent process id (and name) when you make a call to get the current processes?&amp;nbsp; Currently, when you look at the processes, it displays the subprocess (if that is where the workflow is in) but there seems to be no way to tell the parent.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jan 2014 15:16:43 GMT</pubDate>
    <dc:creator>lbds</dc:creator>
    <dc:date>2014-01-29T15:16:43Z</dc:date>
    <item>
      <title>Subprocess Usage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/subprocess-usage/m-p/168044#M121533</link>
      <description>Is there any way using the Rest-api to return the parent process id (and name) when you make a call to get the current processes?&amp;nbsp; Currently, when you look at the processes, it displays the subprocess (if that is where the workflow is in) but there seems to be no way to tell the parent.</description>
      <pubDate>Wed, 29 Jan 2014 15:16:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/subprocess-usage/m-p/168044#M121533</guid>
      <dc:creator>lbds</dc:creator>
      <dc:date>2014-01-29T15:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Subprocess Usage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/subprocess-usage/m-p/168045#M121534</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;Subprocess has its execution id. Based on this Id you&amp;nbsp; can get execution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.activiti.org/userguide/#N13D6B" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/userguide/#N13D6B&lt;/A&gt;&lt;BR /&gt;&lt;CODE&gt;GET runtime/executions/{executionId}&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;response:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "id":"5",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "url":"&lt;A href="http://localhost:8182/runtime/executions/5" rel="nofollow noopener noreferrer"&gt;http://localhost:8182/runtime/executions/5&lt;/A&gt;",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "parentId":null,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "parentUrl":null,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "processInstanceId":"5",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "processInstanceUrl":"&lt;A href="http://localhost:8182/runtime/process-instances/5" rel="nofollow noopener noreferrer"&gt;http://localhost:8182/runtime/process-instances/5&lt;/A&gt;",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "suspended":false,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "activityId":null&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;in case of subprocess parentId&amp;nbsp; should point to the parent execution.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 07:32:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/subprocess-usage/m-p/168045#M121534</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-01-30T07:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Subprocess Usage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/subprocess-usage/m-p/168046#M121535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried that and unfortunately the ParentId was not populated.&amp;nbsp; If I look at the underlying tables, I have a record in there with proc_inst_id (and id_) with 163532 (parent) and 163564 (child).&amp;nbsp; On the child record, the super_process_instance_id is set to 163532 (parent) so it looks like it should return.&amp;nbsp; Am I not understanding what should be returned?&amp;nbsp;&amp;nbsp; Based on your information, the parentId would be 163532 but this is my return:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "id": "163564",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "url": "&lt;/SPAN&gt;&lt;A href="http://server/activiti-rest/service/runtime/executions/163564" rel="nofollow noopener noreferrer"&gt;http://server/activiti-rest/service/runtime/executions/163564&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "parentId": null,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "parentUrl": null,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "processInstanceId": "163564",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "processInstanceUrl": "&lt;/SPAN&gt;&lt;A href="http://server/activiti-rest/service/runtime/process-instances/163564" rel="nofollow noopener noreferrer"&gt;http://server/activiti-rest/service/runtime/process-instances/163564&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "suspended": false,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "activityId": "childTask"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 13:23:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/subprocess-usage/m-p/168046#M121535</guid>
      <dc:creator>lbds</dc:creator>
      <dc:date>2014-01-30T13:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Subprocess Usage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/subprocess-usage/m-p/168047#M121536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just wanted to check if I'm doing something incorrect to not retrieve the parentID or if this is a bug?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 15:05:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/subprocess-usage/m-p/168047#M121536</guid>
      <dc:creator>lbds</dc:creator>
      <dc:date>2014-02-03T15:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Subprocess Usage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/subprocess-usage/m-p/168048#M121537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you are not doing something wrong. Try to debug query and rest service. I tried to run some tests from the sources (e.g. for query org.activiti.engine.test.api.runtime.ExecutionQueryTest#testQueryByParentId) and it returns parentID. The issue could be in the way how rest service construct query.&lt;/SPAN&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>Tue, 04 Feb 2014 07:35:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/subprocess-usage/m-p/168048#M121537</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-02-04T07:35:12Z</dc:date>
    </item>
  </channel>
</rss>

