<?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 How to dynamically generate a flowchart of vertical layout in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-dynamically-generate-a-flowchart-of-vertical-layout/m-p/35725#M15074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 12.8pt;"&gt;&lt;/PRE&gt;&lt;P&gt;new BpmnAutoLayout(model).execute();&lt;/P&gt;&lt;P&gt;this create a&amp;nbsp; &lt;SPAN&gt;flowchart&amp;nbsp; of&amp;nbsp;&lt;/SPAN&gt;horizontal layout,How to dynamically generate a flowchart of vertical layout?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Apr 2018 10:21:24 GMT</pubDate>
    <dc:creator>hankzhousandy</dc:creator>
    <dc:date>2018-04-19T10:21:24Z</dc:date>
    <item>
      <title>How to dynamically generate a flowchart of vertical layout</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-dynamically-generate-a-flowchart-of-vertical-layout/m-p/35725#M15074</link>
      <description>new BpmnAutoLayout(model).execute();this create a&amp;nbsp; flowchart&amp;nbsp; of&amp;nbsp;horizontal layout,How to dynamically generate a flowchart of vertical layout?</description>
      <pubDate>Thu, 19 Apr 2018 10:21:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-dynamically-generate-a-flowchart-of-vertical-layout/m-p/35725#M15074</guid>
      <dc:creator>hankzhousandy</dc:creator>
      <dc:date>2018-04-19T10:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically generate a flowchart of vertical layout</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-dynamically-generate-a-flowchart-of-vertical-layout/m-p/35726#M15075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understood the question, could you please explain the use case/question a little bit more so that we can help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 12:33:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-dynamically-generate-a-flowchart-of-vertical-layout/m-p/35726#M15075</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2018-04-20T12:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically generate a flowchart of vertical layout</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-dynamically-generate-a-flowchart-of-vertical-layout/m-p/35727#M15076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 12.8pt;"&gt;process.addFlowElement(&lt;SPAN&gt;createStartEvent&lt;/SPAN&gt;())&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;process.addFlowElement(&lt;SPAN&gt;createUserTask&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"task1"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"node01"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"candidateGroup1"&lt;/SPAN&gt;))&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;process.addFlowElement(&lt;SPAN&gt;createUserTask&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"task2"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"node02"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"candidateGroup2"&lt;/SPAN&gt;))&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;process.addFlowElement(&lt;SPAN&gt;createEndEvent&lt;/SPAN&gt;())&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;process.addFlowElement(&lt;SPAN&gt;createSequenceFlow&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"startEvent"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"task1"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;))&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;process.addFlowElement(&lt;SPAN&gt;createSequenceFlow&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"task1"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"task2"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;))&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;process.addFlowElement(&lt;SPAN&gt;createSequenceFlow&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"task2"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"endEvent"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;""&lt;/SPAN&gt;))&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;// 2. Generate graphical information&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;BpmnAutoLayout(model).execute()&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;// 3. Deploy the process to the engine&lt;BR /&gt;&lt;/SPAN&gt;Deployment deployment = &lt;SPAN style="color: #9876aa;"&gt;repositoryService&lt;/SPAN&gt;.createDeployment()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .addBpmnModel(PROCESS_ID+&lt;SPAN style="color: #6a8759;"&gt;".bpmn"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;model).name(PROCESS_ID+&lt;SPAN style="color: #6a8759;"&gt;"_deployment"&lt;/SPAN&gt;).deploy()&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;// 4. Start a process instance&lt;BR /&gt;&lt;/SPAN&gt;ProcessInstance processInstance = &lt;SPAN style="color: #9876aa;"&gt;runtimeService&lt;/SPAN&gt;.startProcessInstanceByKey(PROCESS_ID)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;// 5. Check if task is available&lt;BR /&gt;&lt;/SPAN&gt;List&amp;lt;Task&amp;gt; tasks = &lt;SPAN style="color: #9876aa;"&gt;taskService&lt;/SPAN&gt;.createTaskQuery().processInstanceId(processInstance.getId()).list()&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;Assert.&lt;SPAN&gt;assertEquals&lt;/SPAN&gt;(&lt;SPAN style="color: #6897bb;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;tasks.size())&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;// 6. Save process diagram to a file&lt;BR /&gt;&lt;/SPAN&gt;InputStream processDiagram = &lt;SPAN style="color: #9876aa;"&gt;repositoryService&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.getProcessDiagram(processInstance.getProcessDefinitionId())&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;FileUtils.&lt;SPAN&gt;copyInputStreamToFile&lt;/SPAN&gt;(processDiagram&lt;SPAN style="color: #cc7832;"&gt;, new &lt;/SPAN&gt;File(&lt;SPAN style="color: #6a8759;"&gt;"/deployments/"&lt;/SPAN&gt;+PROCESS_ID+&lt;SPAN style="color: #6a8759;"&gt;".png"&lt;/SPAN&gt;))&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;the code, png show&amp;nbsp;horizontal&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/20253_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;i like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/20252_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;I don't know how to do it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Apr 2018 10:37:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-dynamically-generate-a-flowchart-of-vertical-layout/m-p/35727#M15076</guid>
      <dc:creator>hankzhousandy</dc:creator>
      <dc:date>2018-04-21T10:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically generate a flowchart of vertical layout</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-dynamically-generate-a-flowchart-of-vertical-layout/m-p/35728#M15077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you probably need to hack your own version of&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; border: 0px; font-size: 12.8pt;"&gt;&lt;SPAN style="color: #cc7832; border: 0px; font-weight: inherit; font-size: 17.0667px;"&gt;new &lt;/SPAN&gt;BpmnAutoLayout(model)&lt;/PRE&gt;&lt;P&gt;And probably check this:&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/blob/develop/activiti-bpmn-layout/src/main/java/org/activiti/bpmn/BpmnAutoLayout.java#L612" title="https://github.com/Activiti/Activiti/blob/develop/activiti-bpmn-layout/src/main/java/org/activiti/bpmn/BpmnAutoLayout.java#L612" rel="nofollow noopener noreferrer"&gt;Activiti/BpmnAutoLayout.java at develop · Activiti/Activiti · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2018 10:21:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-dynamically-generate-a-flowchart-of-vertical-layout/m-p/35728#M15077</guid>
      <dc:creator>salaboy</dc:creator>
      <dc:date>2018-04-23T10:21:57Z</dc:date>
    </item>
  </channel>
</rss>

