<?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 Activiti 6 how to get all activity(will be executed) by process instance in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/activiti-6-how-to-get-all-activity-will-be-executed-by-process/m-p/27642#M11858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Map&amp;lt;String, Object&amp;gt; variables = new HashMap&amp;lt;String, Object&amp;gt;();&lt;/P&gt;&lt;P&gt;variables.put("flag", 1);&lt;/P&gt;&lt;P&gt;runtimeService.startProcessInstanceByKey(processDefinitionKey, variables);&lt;/P&gt;&lt;P&gt;// how to get&amp;nbsp;all the list of tasks to be executed here&lt;/P&gt;&lt;P&gt;// if flag is 1, I will get task list(task1, task2, task4)&lt;/P&gt;&lt;P&gt;// if flag is 0, I will get task list(task1, task3)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/alfresco/14998_屏幕快照 2017-07-11 上午12.01.20.png" style="width: 620px; height: 255px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jul 2017 16:13:53 GMT</pubDate>
    <dc:creator>einsdan</dc:creator>
    <dc:date>2017-07-10T16:13:53Z</dc:date>
    <item>
      <title>Activiti 6 how to get all activity(will be executed) by process instance</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-6-how-to-get-all-activity-will-be-executed-by-process/m-p/27642#M11858</link>
      <description>Map&amp;lt;String, Object&amp;gt; variables = new HashMap&amp;lt;String, Object&amp;gt;();variables.put("flag", 1);runtimeService.startProcessInstanceByKey(processDefinitionKey, variables);// how to get&amp;nbsp;all the list of tasks to be executed here// if flag is 1, I will get task list(task1, task2, task4)// if flag is</description>
      <pubDate>Mon, 10 Jul 2017 16:13:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-6-how-to-get-all-activity-will-be-executed-by-process/m-p/27642#M11858</guid>
      <dc:creator>einsdan</dc:creator>
      <dc:date>2017-07-10T16:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti 6 how to get all activity(will be executed) by process instance</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-6-how-to-get-all-activity-will-be-executed-by-process/m-p/27643#M11859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like what you're looking to do is to find the process definition and then traverse it to find what follows the gateway on each of its outgoing branches. There are examples in the Activiti codebase for finding a process definition (&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/blob/master/activiti-engine/src/main/java/org/activiti/engine/delegate/DelegateHelper.java#L53" title="https://github.com/Activiti/Activiti/blob/master/activiti-engine/src/main/java/org/activiti/engine/delegate/DelegateHelper.java#L53" rel="nofollow noopener noreferrer"&gt;Activiti/DelegateHelper.java at master · Activiti/Activiti · GitHub&lt;/A&gt;&amp;nbsp;) and for traversing it (&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/blob/master/activiti-json-converter/src/main/java/org/activiti/editor/language/json/converter/BpmnJsonConverter.java#L324" title="https://github.com/Activiti/Activiti/blob/master/activiti-json-converter/src/main/java/org/activiti/editor/language/json/converter/BpmnJsonConverter.java#L324" rel="nofollow noopener noreferrer"&gt;Activiti/BpmnJsonConverter.java at master · Activiti/Activiti · GitHub&lt;/A&gt;&amp;nbsp;). Part of what you'll presumably want to do is to locate the exclusive gateway (&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/blob/master/activiti-process-validation/src/main/java/org/activiti/validation/validator/impl/ExclusiveGatewayValidator.java#L34" title="https://github.com/Activiti/Activiti/blob/master/activiti-process-validation/src/main/java/org/activiti/validation/validator/impl/ExclusiveGatewayValidator.java#L34" rel="nofollow noopener noreferrer"&gt;Activiti/ExclusiveGatewayValidator.java at master · Activiti/Activiti · GitHub&lt;/A&gt;&amp;nbsp;). In your case you'll want to get the definition through the either the RepositoryService or the RuntimeService.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 08:54:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-6-how-to-get-all-activity-will-be-executed-by-process/m-p/27643#M11859</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2017-07-11T08:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti 6 how to get all activity(will be executed) by process instance</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-6-how-to-get-all-activity-will-be-executed-by-process/m-p/27644#M11860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I notice master has moved a bit but the code I referred to is still there if you search for getProcess and BpmnModel. Though perhaps a better place to look is&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/blob/6.0-release/modules/activiti-bpmn-converter/src/test/java/org/activiti/editor/language/xml/SubProcessWithExtensionsConverterTest.java" title="https://github.com/Activiti/Activiti/blob/6.0-release/modules/activiti-bpmn-converter/src/test/java/org/activiti/editor/language/xml/SubProcessWithExtensionsConverterTest.java" rel="nofollow noopener noreferrer"&gt;Activiti/SubProcessWithExtensionsConverterTest.java at 6.0-release · Activiti/Activiti · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 09:46:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-6-how-to-get-all-activity-will-be-executed-by-process/m-p/27644#M11860</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2017-07-18T09:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti 6 how to get all activity(will be executed) by process instance</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-6-how-to-get-all-activity-will-be-executed-by-process/m-p/27645#M11861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;B&gt;Ryan Dawson&lt;/B&gt;‌, i could not find in the test cases, and i have similar ask.please let me know for the right testcase&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 22:33:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-6-how-to-get-all-activity-will-be-executed-by-process/m-p/27645#M11861</guid>
      <dc:creator>nnvnaveen</dc:creator>
      <dc:date>2019-04-24T22:33:33Z</dc:date>
    </item>
  </channel>
</rss>

