Desc: the example of bpmn, when i modify the label of [Scan QR code ] element,for example, i change the label to ‘AAA’. Then, i click the button named “print to console” (Bottom left of the page ),and later i will get the diagram string in the console, but i find that the label of [Scan QR code ] element isn’t ‘AAA’ in the string, it still the previous label “Scan QR code”. But if i click the canvas area before , i can get the right value. So, i try this when i click the button
$('#save-button').click(function(){
bpmnModeler._emit('commandStack.changed');
setTimeout(function() {
exportDiagram()
}, 1000)
});
But It still doesn’t work!
I just want to get the right label when i click the button. How can i achieve it ?
Thanks !