<?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: Converting process instance from JSON to BpmnModel in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/converting-process-instance-from-json-to-bpmnmodel/m-p/201504#M154634</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Which REST endpoint did you use to get this json? The BpmnJsonConverter is used to convert the json coming from the Modeler to XML/BpmnModel. But the format seems not to be correct.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Oct 2015 19:14:33 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2015-10-28T19:14:33Z</dc:date>
    <item>
      <title>Converting process instance from JSON to BpmnModel</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/converting-process-instance-from-json-to-bpmnmodel/m-p/201503#M154633</link>
      <description>Hi all,I got a JSON representation of a process instance from the Activiti REST (see the attached 'process.json')I want to create a diagram representation from this JSON with highlighted process history (tasks and flow elements), so I'd like to parse this JSON to a BpmnModel object (processDefJson c</description>
      <pubDate>Mon, 26 Oct 2015 17:25:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/converting-process-instance-from-json-to-bpmnmodel/m-p/201503#M154633</guid>
      <dc:creator>medovarszki</dc:creator>
      <dc:date>2015-10-26T17:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Converting process instance from JSON to BpmnModel</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/converting-process-instance-from-json-to-bpmnmodel/m-p/201504#M154634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Which REST endpoint did you use to get this json? The BpmnJsonConverter is used to convert the json coming from the Modeler to XML/BpmnModel. But the format seems not to be correct.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 19:14:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/converting-process-instance-from-json-to-bpmnmodel/m-p/201504#M154634</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-10-28T19:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Converting process instance from JSON to BpmnModel</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/converting-process-instance-from-json-to-bpmnmodel/m-p/201505#M154635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I get the definition ID from the process instance as the following way:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//processInstanceId given as a function parameter&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Representation processInstance = WorkflowUtils.getClientResource("runtime/process-instances/" + processInstanceId).get(MediaType.APPLICATION_JSON);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JsonElement processInstanceJson = WorkflowUtils.getAsJsonElement(processInstance);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Representation processDefinition = WorkflowUtils.getClientResource("repository/process-definitions/" + processInstanceJson.getAsJsonObject().get("processDefinitionId").getAsString()).get(MediaType.APPLICATION_JSON);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JsonElement processDefinitionJson = WorkflowUtils.getAsJsonElement(processDefinition);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Representation procDefRepresentation = WorkflowUtils.getClientResource("repository/process-definitions/" + processDefinitionJson.getAsJsonObject().get("id").getAsString() + "/model").get(MediaType.APPLICATION_JSON);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JsonElement processDefJson = WorkflowUtils.getAsJsonElement(procDefRepresentation);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 09:34:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/converting-process-instance-from-json-to-bpmnmodel/m-p/201505#M154635</guid>
      <dc:creator>medovarszki</dc:creator>
      <dc:date>2015-10-29T09:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Converting process instance from JSON to BpmnModel</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/converting-process-instance-from-json-to-bpmnmodel/m-p/201506#M154636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, so the /repository/process-definitions/{processDefinitionId}/model gives back the BpmnModel representation, which does not contain any shapes or so, this is simply a JSON representation of the BPMNModel (ie the xml of the process definition).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The BpmJsonConverter does NOT work on that JSON, but on the JSON produced by for example the Modeler. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 12:16:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/converting-process-instance-from-json-to-bpmnmodel/m-p/201506#M154636</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-11-03T12:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Converting process instance from JSON to BpmnModel</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/converting-process-instance-from-json-to-bpmnmodel/m-p/201507#M154637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok I understand. I found a possible solution: I can use the /repository/process-definitions/{processDefinitionId}/resourcedata endpoint which returns the model with shapes and so in XML format. Then I parse it with BpmnXMLConverter to BpmnModel.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 08:13:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/converting-process-instance-from-json-to-bpmnmodel/m-p/201507#M154637</guid>
      <dc:creator>medovarszki</dc:creator>
      <dc:date>2015-11-04T08:13:10Z</dc:date>
    </item>
  </channel>
</rss>

