I am currently having the plain XML file without any diagram included in it.
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn">
<bpmn:process id="Process_1" isExecutable="false" />
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1" />
</bpmndi:BPMNDiagram>
</bpmn:definitions>
I have added my own custom elements and dragged and dropped into the modeler. But, the custom elements are not getting added to the XML.
The questions I have are
- Is it possible to add the added custom elements in the XML file.
- Which file of the custom elements project (https://github.com/bpmn-io/bpmn-js-examples/tree/master/custom-elements) should i look at to add the custom elements to the XML.