I have created BPMN diagram based on bussiness needs. Also am having save button to save the XML of created diagram. On clicking save button I want to get XML of created diagram.
Attached Screenshot for your refference.
Thanks in advance
I have created BPMN diagram based on bussiness needs. Also am having save button to save the XML of created diagram. On clicking save button I want to get XML of created diagram.
Attached Screenshot for your refference.
Thanks in advance
saveXML
is the opposite of importXML
. Call it to export the diagram as XML.
can you brief it please.
I have tried below code but not working.
diagram.exportXML(bpmnjs)
There is no exportXML
, as I said, you can use saveXML
:
bpmnJS.saveXML().then({ xml } => console.log(xml));
Thanks Philippfromme.
Now working, Please provide me clarification for the points given below.
Do you have Angular example for saving the diagram to XML file?