Generate BPMN Diagram from a Custom JSON data

Hi! I found this library quite interesting easily extensible.

Is there a way to create a diagram from a custom JSON data?

Hi @virtualbjorn,

In General, our toolkit is built on top of moddle-xml which reads diagrams from xml, since this is the standard way of describing BPMN files. How does your JSON look like?

@Niklas_Kiefer
Thanks for a quick response.
here’s a sample JSON data

{
  "data": [
    {
      "key": 1,
      "name": "Company"
    },
    {
      "key": 2,
      "name": "Subsidiary 1",
      "shares_owned": "50.00",
      "parent": 1
    },
    {
      "key": 3,
      "name": "John Doe A",
      "shares_owned": "-",
      "parent": 2
    },
    {
      "key": 4,
      "name": "Jane Doe A",
      "shares_owned": "-",
      "parent": 2
    },
    {
      "key": 5,
      "name": "John Doe B",
      "shares_owned": "-",
      "parent": 2
    },
    {
      "key": 6,
      "name": "Jane Doe B",
      "shares_owned": "-",
      "parent": 2
    },
    {
      "key": 7,
      "name": "John Doe C",
      "shares_owned": "-",
      "parent": 2
    },
    {
      "key": 8,
      "name": "Jane Doe C",
      "shares_owned": "-",
      "parent": 2
    },
    {
      "key": 9,
      "name": "John Doe D",
      "shares_owned": "-",
      "parent": 2
    },
    {
      "key": 10,
      "name": "Jane Doe D",
      "shares_owned": "40.00",
      "parent": 1
    }
  ]
}

Hi @virtualbjorn
You can not use this format.
Which bpmn element most contains this json data?
How to retrieve this json data?

For example you can use moddle extension format and assign this data to user task or service task or etc.

How is this related to BPMN?