<?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 Generating process diagram from Java code in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/generating-process-diagram-from-java-code/m-p/59987#M36984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is about generating Activiti BPMN 2.0 XML.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Based on user interaction with our UI we need:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Create in-memory representation of a BPMN process,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Out of those Java objects generate an Activiti BPMN 2.0 xml that will/can be imported into Activiti Designer for&amp;nbsp; further enhancements.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The generated process will be a sequence of simple tasks, so there will be no forks/joins, splits, etc. (at least at the first stage of this module development)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;E.g. startState-&amp;gt;taskA-&amp;gt;taskB-&amp;gt;taskC-&amp;gt;taskD-&amp;gt;endState&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've looked at classes in org.activiti.engine.impl.pvm.process package and it seems I understand how to create such an in-memory process representation, but I'd prefer to get some direction from you, guys, to be on the safe side.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Moreover, I didn't find a way to generate XML representation out of Java objects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please suggest the way to make it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be even better if I could add graphics related data (x and y points of a task square) to the generated XML, so that when importing it into the Activiti Designer I'd get a more or less good looking process graphic representation and not a mess of all tasks in the same place.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Jan 2012 23:38:28 GMT</pubDate>
    <dc:creator>alexbt</dc:creator>
    <dc:date>2012-01-01T23:38:28Z</dc:date>
    <item>
      <title>Generating process diagram from Java code</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/generating-process-diagram-from-java-code/m-p/59987#M36984</link>
      <description>Hi folks,My question is about generating Activiti BPMN 2.0 XML.Based on user interaction with our UI we need:1) Create in-memory representation of a BPMN process,2) Out of those Java objects generate an Activiti BPMN 2.0 xml that will/can be imported into Activiti Designer for&amp;nbsp; further enhancements.</description>
      <pubDate>Sun, 01 Jan 2012 23:38:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/generating-process-diagram-from-java-code/m-p/59987#M36984</guid>
      <dc:creator>alexbt</dc:creator>
      <dc:date>2012-01-01T23:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Generating process diagram from Java code</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/generating-process-diagram-from-java-code/m-p/59988#M36985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In older version there was Activiti-Kickstart, a web application for building (simple) bpmn-processes from user input. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is included in Activiti 5.6, the code is now here: &lt;/SPAN&gt;&lt;A href="http://www.jorambarrez.be/blog/2011/08/31/activiti-kickstart-moved-to-github/" rel="nofollow noopener noreferrer"&gt;http://www.jorambarrez.be/blog/2011/08/31/activiti-kickstart-moved-to-github/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After deploying the processes, the engine will generate a diagram for you. You can extract it from the database. An example is here: &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=2644" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=2644&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2012 17:49:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/generating-process-diagram-from-java-code/m-p/59988#M36985</guid>
      <dc:creator>ingo_ri</dc:creator>
      <dc:date>2012-01-02T17:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Generating process diagram from Java code</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/generating-process-diagram-from-java-code/m-p/59989#M36986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alternatively, you could generate a bunch of Java classes for the BPMN 2.0 schema (see the kickstart project for an example) and generate a process model in Java using those classes. Marshalling that to XML using jaxb should get you quite close to something you can import directly into Designer to edit further. That's the way I'd go. You can also mix in the BPMN Diagram Interchange model there which will allow you to transfer the basic layouting data to Designer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2012 18:35:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/generating-process-diagram-from-java-code/m-p/59989#M36986</guid>
      <dc:creator>tiesebarrell</dc:creator>
      <dc:date>2012-01-02T18:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Generating process diagram from Java code</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/generating-process-diagram-from-java-code/m-p/59990#M36987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tiese and ingo_ri (sorry, I don't know your real name),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your answers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You pointed me to code that really fits my needs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And, of course, thanks to Joram for his code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2012 20:44:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/generating-process-diagram-from-java-code/m-p/59990#M36987</guid>
      <dc:creator>alexbt</dc:creator>
      <dc:date>2012-01-02T20:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Generating process diagram from Java code</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/generating-process-diagram-from-java-code/m-p/59991#M36988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good to hear. Good luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2012 20:48:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/generating-process-diagram-from-java-code/m-p/59991#M36988</guid>
      <dc:creator>tiesebarrell</dc:creator>
      <dc:date>2012-01-02T20:48:47Z</dc:date>
    </item>
  </channel>
</rss>

