<?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: Help with a subprocess query in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/help-with-a-subprocess-query/m-p/23749#M11529</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Tom.&amp;nbsp; But that's not quite what I mean.&amp;nbsp; The tasks are in the subprocess and the subprocesses are all the same.&amp;nbsp; You'll notice the call statements.&amp;nbsp; Each task is associated with the activity in the main process.&amp;nbsp; I need to query them in bulk to get all the tasks associated with each node in the top level process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I can create a listener to decorate the subproc with the name of the node.&amp;nbsp; Then I can use a query that looks at that variable.&amp;nbsp; I will try it today.&amp;nbsp; &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;SPAN&gt;Robert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Mar 2011 13:03:01 GMT</pubDate>
    <dc:creator>rmoskal</dc:creator>
    <dc:date>2011-03-02T13:03:01Z</dc:date>
    <item>
      <title>Help with a subprocess query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-with-a-subprocess-query/m-p/23747#M11527</link>
      <description>I have a little workflow that includes this excerpt here:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;lt;sequenceFlow&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id="flow1"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sourceRef="theStart"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; targetRef="model"/&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;callActivity id="model" name="Model" calledElement="minimum_concrete_flow" /&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlo</description>
      <pubDate>Wed, 02 Mar 2011 04:35:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-with-a-subprocess-query/m-p/23747#M11527</guid>
      <dc:creator>rmoskal</dc:creator>
      <dc:date>2011-03-02T04:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a subprocess query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-with-a-subprocess-query/m-p/23748#M11528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You want to get a list of tasks through the API ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I give my usertasks certain names, for instance:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &lt;BR /&gt;&amp;lt;userTask id="CORRECT_THE_ORDER" name="CORRECT_ORDER" activiti:formKey="/main/order/submitOrder"&amp;gt;&lt;BR /&gt;&amp;lt;/userTask&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;You can then use the name of the usertask as a parameter in the API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;List&amp;lt;TaskEntity&amp;gt; taskList = (ArrayList)taskService.createTaskQuery().taskName("CORRECT_ORDER").taskUnnassigned().list();&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;Not sure if that's what you mean ??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 07:42:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-with-a-subprocess-query/m-p/23748#M11528</guid>
      <dc:creator>stroobat</dc:creator>
      <dc:date>2011-03-02T07:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a subprocess query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-with-a-subprocess-query/m-p/23749#M11529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Tom.&amp;nbsp; But that's not quite what I mean.&amp;nbsp; The tasks are in the subprocess and the subprocesses are all the same.&amp;nbsp; You'll notice the call statements.&amp;nbsp; Each task is associated with the activity in the main process.&amp;nbsp; I need to query them in bulk to get all the tasks associated with each node in the top level process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I can create a listener to decorate the subproc with the name of the node.&amp;nbsp; Then I can use a query that looks at that variable.&amp;nbsp; I will try it today.&amp;nbsp; &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;SPAN&gt;Robert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 13:03:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-with-a-subprocess-query/m-p/23749#M11529</guid>
      <dc:creator>rmoskal</dc:creator>
      <dc:date>2011-03-02T13:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a subprocess query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-with-a-subprocess-query/m-p/23750#M11530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You coud use the historyService.createHistoricActivityInstance.activityId("your id").&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that its called 'history', but is is always reflecting the runtime state.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You would need to have history enabled for that though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 13:56:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-with-a-subprocess-query/m-p/23750#M11530</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-03-02T13:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a subprocess query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-with-a-subprocess-query/m-p/23751#M11531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the same problem rmoskal had last year. I tried your solution but it can't work since it has as an input what I need as a result. In other words, given an HistoricActivityInstance object representing a callActivity, is it possible to access all the activities in the subprocess called? Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Massimo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 16:55:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-with-a-subprocess-query/m-p/23751#M11531</guid>
      <dc:creator>mlegnani</dc:creator>
      <dc:date>2011-07-11T16:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a subprocess query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-with-a-subprocess-query/m-p/23752#M11532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Same problem here, Do you find a solution ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2011 07:49:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-with-a-subprocess-query/m-p/23752#M11532</guid>
      <dc:creator>campa</dc:creator>
      <dc:date>2011-07-12T07:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a subprocess query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-with-a-subprocess-query/m-p/23753#M11533</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;In the trunk I've committed an extra method in the HistoricProcessInstance where you can retrieve all sub processes of a specific process instance id.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's called superProcessInstanceId(). Does this solve your problem?&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>Tue, 19 Jul 2011 08:11:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-with-a-subprocess-query/m-p/23753#M11533</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-07-19T08:11:24Z</dc:date>
    </item>
  </channel>
</rss>

