<?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: How to retrieve name for a sequenceFlow in generated diagram in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-name-for-a-sequenceflow-in-generated-diagram/m-p/193638#M146768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What I did is below :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As suggested, I added the String name from SequenceFlow Object as parameter in a second method :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Activiti-activiti-5.16.3\modules\activiti-image-generator\src\main\java\org\activiti\image\impl\DefaultProcessDiagramCanvas.java : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public void drawSequenceflow(String name, int[] xPoints, int[] yPoints, boolean conditional, boolean isDefault, boolean highLighted, double scaleFactor) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; LOGGER.info("drawSequenceflow");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; LOGGER.info("name : {}", name);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; drawConnection(xPoints, yPoints, conditional, isDefault, "sequenceFlow", AssociationDirection.ONE, highLighted, scaleFactor);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; for (int i=1; i&amp;lt;xPoints.length; i++) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Integer sourceX = xPoints&lt;/SPAN&gt;&lt;EM&gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Integer sourceY = yPoints&lt;EM&gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; g.drawString(name, sourceX, sourceY);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;lt;/java&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Activiti-activiti-5.16.3\modules\activiti-image-generator\src\main\java\org\activiti\image\impl\DefaultProcessDiagramGenerator.java : &lt;BR /&gt;&lt;BR /&gt;&amp;lt;java&amp;gt;&lt;BR /&gt;processDiagramCanvas.drawSequenceflow(sequenceFlow.getName(), xPoints, yPoints, drawConditionalIndicator, isDefault, highLighted, scaleFactor);&lt;BR /&gt;&amp;lt;/java&amp;gt;&lt;BR /&gt;&lt;BR /&gt;However, I can see in the logs that the name is always null, but when I create a workflow with Activiti Explorer and then I export it, I can see the name of the sequenceFlow.&lt;BR /&gt;&lt;BR /&gt;Maybe I make a mistake, but I don't know where…&lt;/EM&gt;&lt;/EM&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Oct 2014 14:21:51 GMT</pubDate>
    <dc:creator>aurelienpel</dc:creator>
    <dc:date>2014-10-28T14:21:51Z</dc:date>
    <item>
      <title>How to retrieve name for a sequenceFlow in generated diagram</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-name-for-a-sequenceflow-in-generated-diagram/m-p/193634#M146764</link>
      <description>Hello !I am creating a model with Activiti Explorer, and between 2 tasks, I give a name to the sequenceFlow. I can see it when I am in my model workspace, and also when I export it in my bpmn20.xml but when I retrieve the diagram of the process instance with a call to REST API, the name disappear in</description>
      <pubDate>Fri, 17 Oct 2014 15:47:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-name-for-a-sequenceflow-in-generated-diagram/m-p/193634#M146764</guid>
      <dc:creator>aurelienpel</dc:creator>
      <dc:date>2014-10-17T15:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve name for a sequenceFlow in generated diagram</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-name-for-a-sequenceflow-in-generated-diagram/m-p/193635#M146765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, the name is not supported in the png diagram viewer (yet).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 09:11:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-name-for-a-sequenceflow-in-generated-diagram/m-p/193635#M146765</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-10-20T09:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve name for a sequenceFlow in generated diagram</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-name-for-a-sequenceflow-in-generated-diagram/m-p/193636#M146766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could you tell me when it will be done please, because I really need it…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Meanwhile, I am editing the source code, and especially :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;activiti-image-generator\src\main\java\org\activiti\image\impl\DefaultProcessDiagramCanvas.java&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;activiti-image-generator\src\main\java\org\activiti\image\impl\DefaultProcessDiagramGenerator.java&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think it is in a drawSequenceFlow method that you can modify to retrieve the sequenceFlow name, but I'm not sure on how to do it, can you help me please ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Aurelien&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 16:28:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-name-for-a-sequenceflow-in-generated-diagram/m-p/193636#M146766</guid>
      <dc:creator>aurelienpel</dc:creator>
      <dc:date>2014-10-23T16:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve name for a sequenceFlow in generated diagram</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-name-for-a-sequenceflow-in-generated-diagram/m-p/193637#M146767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can't give you a date, cause it's not something which we currently have prioritised (to be honest, the javascript renderer is more important).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I like it that you searched where to fix it, and indeed it's there. In theory, it should only be one Java2D call that draws text on the canvas. But Java2D really sucks when it comes to text - font-sizes and all that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That being said, what should be changed is that this method&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; public void drawSequenceflow(int[] xPoints, int[] yPoints, boolean conditional, boolean isDefault, boolean highLighted, double scaleFactor) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;takes in a String name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which should be easy, it's in the SequenceFlow object.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 06:53:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-name-for-a-sequenceflow-in-generated-diagram/m-p/193637#M146767</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-10-24T06:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve name for a sequenceFlow in generated diagram</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-name-for-a-sequenceflow-in-generated-diagram/m-p/193638#M146768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What I did is below :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As suggested, I added the String name from SequenceFlow Object as parameter in a second method :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Activiti-activiti-5.16.3\modules\activiti-image-generator\src\main\java\org\activiti\image\impl\DefaultProcessDiagramCanvas.java : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public void drawSequenceflow(String name, int[] xPoints, int[] yPoints, boolean conditional, boolean isDefault, boolean highLighted, double scaleFactor) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; LOGGER.info("drawSequenceflow");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; LOGGER.info("name : {}", name);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; drawConnection(xPoints, yPoints, conditional, isDefault, "sequenceFlow", AssociationDirection.ONE, highLighted, scaleFactor);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; for (int i=1; i&amp;lt;xPoints.length; i++) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Integer sourceX = xPoints&lt;/SPAN&gt;&lt;EM&gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Integer sourceY = yPoints&lt;EM&gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; g.drawString(name, sourceX, sourceY);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;lt;/java&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Activiti-activiti-5.16.3\modules\activiti-image-generator\src\main\java\org\activiti\image\impl\DefaultProcessDiagramGenerator.java : &lt;BR /&gt;&lt;BR /&gt;&amp;lt;java&amp;gt;&lt;BR /&gt;processDiagramCanvas.drawSequenceflow(sequenceFlow.getName(), xPoints, yPoints, drawConditionalIndicator, isDefault, highLighted, scaleFactor);&lt;BR /&gt;&amp;lt;/java&amp;gt;&lt;BR /&gt;&lt;BR /&gt;However, I can see in the logs that the name is always null, but when I create a workflow with Activiti Explorer and then I export it, I can see the name of the sequenceFlow.&lt;BR /&gt;&lt;BR /&gt;Maybe I make a mistake, but I don't know where…&lt;/EM&gt;&lt;/EM&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 14:21:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-name-for-a-sequenceflow-in-generated-diagram/m-p/193638#M146768</guid>
      <dc:creator>aurelienpel</dc:creator>
      <dc:date>2014-10-28T14:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve name for a sequenceFlow in generated diagram</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-name-for-a-sequenceflow-in-generated-diagram/m-p/193639#M146769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My bad sorry, I made a mistake, finally I can have all the names for the different sequenceFlows, and now I understand what you were meaning when you said that Java2D sucks about graphics. For example, every time I add a docker to an edge the name appears, so I have several times the name on the same edge, or half of it because out.. need to fix it..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks anyway for the indications !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Aurelien&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 15:52:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-name-for-a-sequenceflow-in-generated-diagram/m-p/193639#M146769</guid>
      <dc:creator>aurelienpel</dc:creator>
      <dc:date>2014-10-28T15:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve name for a sequenceFlow in generated diagram</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-name-for-a-sequenceflow-in-generated-diagram/m-p/193640#M146770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Indeed … and it differs from platform to platform too! And from JDK to JDK (they ship with different fonts).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But the main problem is that there is no way to know how big a bit of text is, given a certain font and fontsize …. which is crucial here (something which for example the IOS SDK does perfect! But that doesnt help us)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 15:12:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-name-for-a-sequenceflow-in-generated-diagram/m-p/193640#M146770</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-10-31T15:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve name for a sequenceFlow in generated diagram</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-name-for-a-sequenceflow-in-generated-diagram/m-p/193641#M146771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Finally I found how to do it (I needed to be patient at the beginning..), and if you want at the end of the week I will be able to do a pull request about this subject, but I don't know if it's possible and if so, how to do it..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Aurelien&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 16:40:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-name-for-a-sequenceflow-in-generated-diagram/m-p/193641#M146771</guid>
      <dc:creator>aurelienpel</dc:creator>
      <dc:date>2014-11-04T16:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve name for a sequenceFlow in generated diagram</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-name-for-a-sequenceflow-in-generated-diagram/m-p/193642#M146772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A pull request is always great!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Making a pull request is easy: after loggin in into github, you go to &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There, you press 'fork'. This creates a personal fork of the activiti code. You clone it locally, do your changes, commit and push the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, go to the github page for your personal fork, and the UI will show you now a button to send us the pull request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if you need more help, do let us know!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 12:41:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-name-for-a-sequenceflow-in-generated-diagram/m-p/193642#M146772</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-11-05T12:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve name for a sequenceFlow in generated diagram</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-name-for-a-sequenceflow-in-generated-diagram/m-p/193643#M146773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I wanted to do this for a long time now, but your post finally pushed me: &lt;/SPAN&gt;&lt;A href="http://www.jorambarrez.be/blog/2014/11/05/how-to-create-an-activiti-pull-request/" rel="nofollow noopener noreferrer"&gt;http://www.jorambarrez.be/blog/2014/11/05/how-to-create-an-activiti-pull-request/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 13:55:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-name-for-a-sequenceflow-in-generated-diagram/m-p/193643#M146773</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-11-05T13:55:37Z</dc:date>
    </item>
  </channel>
</rss>

