Hello,
I have successfully imported a bpmn diargram into my web application but I need to be able to edit it, is there a way to make it editable on my web site and also to have the pallette of tools?
Here is the code that I have integrated in my web application to import the diagram:
var BpmnViewer = window.BpmnJS;
var viewer = new BpmnViewer({ container: '#canvas' });
$.get(root + 'Scripts/pizza-collaboration.txt', function (pizzaDiagram) {
viewer.importXML(pizzaDiagram, function (err) {
if (!err) {
console.log('success!');
viewer.get('canvas').zoom('fit-viewport');
} else {
console.log('something went wrong:', err);
}
});
}, 'text');
Thanks in advance.