<?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 Flow image generated by Activiti doesn't match the coordinates in flow definition with the presence of exclusive gateway.  in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/flow-image-generated-by-activiti-doesn-t-match-the-coordinates/m-p/147879#M103224</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;We keep track of flow running status by making the flow component in different color.&amp;nbsp; The code used is C++, which reads the coordinates specified in the bpmn and matches the flow image generated by Activiti.&amp;nbsp; But we noticed that with Exclusive Gateway in a flow, the image generated by Activiti does not match the coordinates specified in flow definition.&amp;nbsp;&amp;nbsp;&amp;nbsp; All components in the flow are off and the degrees are not the same. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This situation may appy to other gateways but we are not sure yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestion ? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 May 2013 14:23:21 GMT</pubDate>
    <dc:creator>xjshangguan</dc:creator>
    <dc:date>2013-05-01T14:23:21Z</dc:date>
    <item>
      <title>Flow image generated by Activiti doesn't match the coordinates in flow definition with the presence of exclusive gateway.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/flow-image-generated-by-activiti-doesn-t-match-the-coordinates/m-p/147879#M103224</link>
      <description>Hi, We keep track of flow running status by making the flow component in different color.&amp;nbsp; The code used is C++, which reads the coordinates specified in the bpmn and matches the flow image generated by Activiti.&amp;nbsp; But we noticed that with Exclusive Gateway in a flow, the image generated by Activiti</description>
      <pubDate>Wed, 01 May 2013 14:23:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/flow-image-generated-by-activiti-doesn-t-match-the-coordinates/m-p/147879#M103224</guid>
      <dc:creator>xjshangguan</dc:creator>
      <dc:date>2013-05-01T14:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Flow image generated by Activiti doesn't match the coordinates in flow definition with the presence of exclusive gateway.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/flow-image-generated-by-activiti-doesn-t-match-the-coordinates/m-p/147880#M103225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you have two images that do a side by side comparison?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Afaik, we don't do anything special transformation on those coordinates&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 09:18:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/flow-image-generated-by-activiti-doesn-t-match-the-coordinates/m-p/147880#M103225</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-05-02T09:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Flow image generated by Activiti doesn't match the coordinates in flow definition with the presence of exclusive gateway.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/flow-image-generated-by-activiti-doesn-t-match-the-coordinates/m-p/147881#M103226</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;SPAN&gt;Thanks for replying.&amp;nbsp;&amp;nbsp; Here is more information regarding the problem of the layout coordinates.&amp;nbsp;&amp;nbsp; I am attaching a file with my test results.&amp;nbsp; The comparisons between the flow definition (extract from DB using API call) and the DiagramLayout were carried out for two identical flows with and without an exclusive gateway.&amp;nbsp; The API calls are &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// To get the flow definition&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ByteArrayInputStream is = (ByteArrayInputStream) commandExecutorBean&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .execute(new GetDeploymentProcessModelCmd(flowDefId));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Get flow DisgramLayout&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DiagramLayout layoutLocal = ProcessEngines.getDefaultProcessEngine().getRepositoryService().getProcessDiagramLayout(flowDefId);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The diagram is generated by using &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessDiagramGenerator.generatePngDiagram(ProcessDefinitionEntity pde);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The results are attached.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems to me the diagram is generated using the coordinates defined in flow definition but the diagram layout is different from both flow definition and the diagram. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&amp;nbsp;&amp;nbsp; Do we have any better API calls?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sean&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 17:46:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/flow-image-generated-by-activiti-doesn-t-match-the-coordinates/m-p/147881#M103226</guid>
      <dc:creator>xjshangguan</dc:creator>
      <dc:date>2013-05-03T17:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Flow image generated by Activiti doesn't match the coordinates in flow definition with the presence of exclusive gateway.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/flow-image-generated-by-activiti-doesn-t-match-the-coordinates/m-p/147882#M103227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could it be that the auto layout mechanism is being executed? The thing is, that shouldn't happen when diagram interchange information is present …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How are you deploying the process. Is the process xml exactly the same as the which is in the first part of your attachment above?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 10:04:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/flow-image-generated-by-activiti-doesn-t-match-the-coordinates/m-p/147882#M103227</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-05-06T10:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Flow image generated by Activiti doesn't match the coordinates in flow definition with the presence of exclusive gateway.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/flow-image-generated-by-activiti-doesn-t-match-the-coordinates/m-p/147883#M103228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Joram, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not aware of the auto layout mechanism at all and am looking at it.&amp;nbsp; The processes are deployed in two means either by auto deploy in the Activiti configuration (will be the only method when going to production) or by repositoryService.createDeployment().addClasspathResource(String resourcePath).&amp;nbsp;&amp;nbsp; But the test flows used above were deployed using the later one.&amp;nbsp; The process XML original created (by Desinger with DI information) were found to be same as the one extracted later using the API.&amp;nbsp; BTW, I am still using Activiti 5.11 and also haven't updated the Designer to the latest version yet. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for the advice. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All the best, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sean&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 14:38:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/flow-image-generated-by-activiti-doesn-t-match-the-coordinates/m-p/147883#M103228</guid>
      <dc:creator>xjshangguan</dc:creator>
      <dc:date>2013-05-06T14:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Flow image generated by Activiti doesn't match the coordinates in flow definition with the presence of exclusive gateway.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/flow-image-generated-by-activiti-doesn-t-match-the-coordinates/m-p/147884#M103229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Joram,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the update. We finally found out this is because of the flow names defined for sequence flows.&amp;nbsp; With the names of sequence flows defined, some BPMN Labels are generated by Activiti Designer.&amp;nbsp; These labels are those that created the problem, altering the cordinates of other components defined in the flow.&amp;nbsp; The reason why we feel it is because of the presence of exclusive gateways is that we normally don't give names to&amp;nbsp; sequence flows unless we would show flow logic with exclusive gateways.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;bpmndi:BPMNLabel&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdc:Bounds height="14" width="100" x="-10" y="0"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/bpmndi:BPMNLabel&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Therefore, not giving any names to sequence flows fixes the problem.&amp;nbsp; But there must be some bug in Activiti. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sean&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 21:46:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/flow-image-generated-by-activiti-doesn-t-match-the-coordinates/m-p/147884#M103229</guid>
      <dc:creator>xjshangguan</dc:creator>
      <dc:date>2013-05-08T21:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Flow image generated by Activiti doesn't match the coordinates in flow definition with the presence of exclusive gateway.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/flow-image-generated-by-activiti-doesn-t-match-the-coordinates/m-p/147885#M103230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Sean,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to reproduce this issue, but it's working fine for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created a simple process definition with an exclusive gateway and sequence flow labels.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But the image generated by Activiti is just looking fine, so the coordinates in the BPMN DI must be fine as well then.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you share your process definition and an image showing the issue?&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, 14 May 2013 12:17:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/flow-image-generated-by-activiti-doesn-t-match-the-coordinates/m-p/147885#M103230</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-05-14T12:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Flow image generated by Activiti doesn't match the coordinates in flow definition with the presence of exclusive gateway.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/flow-image-generated-by-activiti-doesn-t-match-the-coordinates/m-p/147886#M103231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did something similar here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/gro-mar/activiti-crystalball/tree/master/image-builder" rel="nofollow noopener noreferrer"&gt;https://github.com/gro-mar/activiti-crystalball/tree/master/image-builder&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://github.com/gro-mar/activiti-crystalball/wiki/Process-instances-generator" rel="nofollow noopener noreferrer"&gt;https://github.com/gro-mar/activiti-crystalball/wiki/Process-instances-generator&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And images seems OK (5.11)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A href="https://raw.github.com/gro-mar/activiti-crystalball/master/simulator/src/test/resources/org/activiti/crystalball/simulator/simulateBottleneckTest-2.png" rel="nofollow noopener noreferrer"&gt;https://raw.github.com/gro-mar/activiti-crystalball/master/simulator/src/test/resources/org/activiti/crystalball/simulator/simulateBottleneckTest-2.png&lt;/A&gt;&lt;SPAN&gt;[/img]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 06:36:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/flow-image-generated-by-activiti-doesn-t-match-the-coordinates/m-p/147886#M103231</guid>
      <dc:creator>gromar</dc:creator>
      <dc:date>2013-05-15T06:36:10Z</dc:date>
    </item>
  </channel>
</rss>

