Hi.i am facing this big issue of not able to edit the loaded bpmn diagram on the canvas.The current scenario is that my diagram contains both custom components/svgs + xml(bpmn file) on the canvas.When saving the diagram i am saving both the json file and bpmn file separately.When loading the diagram i am importing both the files i am using the importXML function and then adding the addCustomElements from the json file.
What is happening that most of the times after the diagram is loaded,then dragging/clicking the element i got error on the console which meant that the element is undefined.This happens most of the time.BUT some times i can EDIT the loaded diagram,add changes and every thing works fine.
Basically what i seeking a method in which after loading,i can get the rootElement/main Element by which i can verify that the whole diagram is loaded properly.I am attaching the screen shot of the bug.
Any help in this regard is highly appreciated