this.bpmnViewer.saveXML(
{
format: true,
},
function (err, xml) {
if (err) {
return console.error("could not save BPMN 2.0 diagram", err);
}
var resultCompact = convert.xml2json(xml, options);
data = resultCompact;
let jsonData = JSON.parse(data)
let processElements = jsonData.definitions?.process
}
);
I am able to access jsonData.definitions?.process in vue.js, ah shown above.
Where as in reactJs i am not able to do the same i need access like below
let definitions = jsonData[‘bpmn:definitions’]
let processElements = definitions[‘bpmn:process’]
IN react i am not able to access same way
in both react and vue i am using “bpmn-js”: “^3.5.0”,
Please update your post according to these rules. We may not be able to help you otherwise. In extreme cases we may also close your topic if we regard it as spam.
Hint: To share complete setups, create and link a CodeSandbox. This way, we can inspect the problem at hand in action and, thus, can help you in a timely and more effective manner.