Drag and drop xml in palette to create shape in process

I know that I can create a shape using elementFactory.createShape, but this is a pain in the ass. I would like to create a shape using xml and append it to the process.

For example, if I drag and drop a shape in palette, its xml is

      <bpmn:documentation> and many other tags</bpmn:documentation>

appended to the process

We use moddle-xml / bpmn-moddle under the hood to import XML.

Maybe you can use this to create what we call the business object from the XML. With that one in hand you may be able to create the element via ElementFactory#create.

This is exactly what I needed. Worked correctly. It helped a lot, thank you! :smile:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.