Hello,
How can I export xml diagram with attributes of any elements like:
<?xml version="1.0" encoding="UTF-8"?>
<custom:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:custom="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:customdi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn">
<custom:modeler id="Modeler_1" isExecutable="false">
<custom:background id="Background_1">
<custom:waterResource id="WaterResource_0392m54" serviceStatus="foo" enabled="false" />
<custom:wifiResource id="WifiResource_0xcirhl" serviceStatus="foo" enabled="false" />
</custom:background>
</custom:modeler>
<customdi:CUSTOMDiagram id="CUSTOMDiagram_1">
<customdi:CUSTOMPlane id="CUSTOMPlane_1" customElement="Modeler_1">
<customdi:CUSTOMShape id="_CUSTOMShape_Background_2" customElement="Background_1">
<dc:Bounds x="148" y="12" width="1100" height="750" />
</customdi:CUSTOMShape>
<customdi:CUSTOMShape id="WaterResource_0392m54_di" customElement="WaterResource_0392m54">
<dc:Bounds x="284" y="103" width="36" height="36" />
</customdi:CUSTOMShape>
<customdi:CUSTOMShape id="WifiResource_0xcirhl_di" customElement="WifiResource_0xcirhl">
<dc:Bounds x="405" y="102" width="36" height="36" />
</customdi:CUSTOMShape>
</customdi:CUSTOMPlane>
</customdi:CUSTOMDiagram>
</custom:definitions>
This is my custom.json file…
{
"name": "ElectricityResource",
"isAbstract": true,
"superClass": [
"Modeler"
],
"properties": [
{
"name": "serviceStatus",
"isAttr": true,
"type": "String"
},
{
"name": "enabled",
"default": false,
"isAttr": true,
"type": "Boolean"
}
]
},
{
"name": "GarbageResource",
"isAbstract": true,
"superClass": [
"Modeler"
],
"properties": [
{
"name": "serviceStatus",
"isAttr": true,
"type": "String"
},
{
"name": "enabled",
"default": false,
"isAttr": true,
"type": "Boolean"
}
]
},
{
"name": "WaterResource",
"isAbstract": true,
"superClass": [
"Modeler"
],
"properties": [
{
"name": "serviceStatus",
"isAttr": true,
"type": "String"
},
{
"name": "enabled",
"isAttr": true,
"type": "Boolean"
}
]
},
{
"name": "WifiResource",
"isAbstract": true,
"superClass": [
"Modeler"
],
"properties": [
{
"name": "serviceStatus",
"isAttr": true,
"type": "String"
},
{
"name": "enabled",
"default": false,
"isAttr": true,
"type": "Boolean"
}
]
},