<?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 Access to 'assembled' process definitions in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/access-to-assembled-process-definitions/m-p/227727#M180857</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are currently working on building up a sort of 'wizard' style application that leverages Activiti under the covers to define the steps in the wizard. As a result, we have a number of User Tasks chained together in our Process Definitions, many/all of which are to be completed by a single user (often in quick succession).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;START -&amp;gt; User Task 1 -&amp;gt; User Task 2 -&amp;gt; User Task 3 -&amp;gt; Service Task 1 -&amp;gt; Service Task 2 -&amp;gt; END&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While we've figured out the steps as far as walking through the process instance(s) and populating/completing the user tasks, we were hoping to be able to retrieve and display the 'steps'&amp;nbsp; (User Tasks) metadata (name) of the process out of the Process Definition to display alongside the data collection elements rather than having to define them in some parallel location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have found the RepositoryService.getBpmnModel() API for retrieving a process's definition but our issue/concern with this method is that the structure (order) of the Processes (via BpmnModel.getMainProcess().getFlowElements()) are in source file order and not reflective of the actual process definition/structure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there an API available whereby we can query a specific Process Definition and retrieve the list/collection/tree of User Tasks in their order as defined within the process? If not solely the User Tasks, is there an API that will return the full Process Definition in it's assembled list/tree structure which we can then walk through ourselves to locate the User Tasks?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mackenzie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 May 2016 13:33:36 GMT</pubDate>
    <dc:creator>mackking-ns</dc:creator>
    <dc:date>2016-05-16T13:33:36Z</dc:date>
    <item>
      <title>Access to 'assembled' process definitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-to-assembled-process-definitions/m-p/227727#M180857</link>
      <description>Greetings,We are currently working on building up a sort of 'wizard' style application that leverages Activiti under the covers to define the steps in the wizard. As a result, we have a number of User Tasks chained together in our Process Definitions, many/all of which are to be completed by a singl</description>
      <pubDate>Mon, 16 May 2016 13:33:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-to-assembled-process-definitions/m-p/227727#M180857</guid>
      <dc:creator>mackking-ns</dc:creator>
      <dc:date>2016-05-16T13:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Access to 'assembled' process definitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-to-assembled-process-definitions/m-p/227728#M180858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mackenzie,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes there is. You have to find start activity (In your case it is none start event). After that you can follow sequence flows to get to the right nodes.&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>Mon, 16 May 2016 20:09:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-to-assembled-process-definitions/m-p/227728#M180858</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-05-16T20:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Access to 'assembled' process definitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-to-assembled-process-definitions/m-p/227729#M180859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I have to effectively walk the contents of BpmnModel and build up the representation by hand?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ie:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BpmnModel bpmn = repositoryService.getBpmnModel(…);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FlowElements start = bpmn.getMainProcess().getFlowElement("startElementId");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;List&amp;lt;SequenceFlows&amp;gt; outgoing = start.getOutgoingFlows();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for (SequenceFlows out : outgoing) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; String nextStep = out.getTargetRef();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; bpmn.getMainProcess().getFlowElement(nextStep);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; // repeat, walking my way through the model ??&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 20:27:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-to-assembled-process-definitions/m-p/227729#M180859</guid>
      <dc:creator>mackking-ns</dc:creator>
      <dc:date>2016-05-16T20:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Access to 'assembled' process definitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-to-assembled-process-definitions/m-p/227730#M180860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mackenzie,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another possibility is to search by type.&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>Tue, 17 May 2016 07:20:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-to-assembled-process-definitions/m-p/227730#M180860</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-05-17T07:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Access to 'assembled' process definitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-to-assembled-process-definitions/m-p/227731#M180861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You mean via List &amp;amp;lt;FlowElementType&amp;amp;gt; Process.findFlowElementsOfType(FlowElementType.class) ??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This seems to return the list of UserTasks in XML file source order. Is there no way to retrieve them in logical/process order?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 13:01:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-to-assembled-process-definitions/m-p/227731#M180861</guid>
      <dc:creator>mackking-ns</dc:creator>
      <dc:date>2016-05-17T13:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Access to 'assembled' process definitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-to-assembled-process-definitions/m-p/227732#M180862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, there isn't.&amp;nbsp; Order is not fixed, as you can have cycles in the process graph.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 16:45:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-to-assembled-process-definitions/m-p/227732#M180862</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-05-18T16:45:11Z</dc:date>
    </item>
  </channel>
</rss>

