Hello
Is there an event I can subscribe to know the current bpmn xml has changed ?
Maybe elements.changed
?
Or maybe a mehtod I can call ?
Hello
Is there an event I can subscribe to know the current bpmn xml has changed ?
Maybe elements.changed
?
Or maybe a mehtod I can call ?
My use case is the following, I have a save button and I want to be disabled until the bpmn has changed
Here is what I did
this.bpmnModeler.on('elements.changed', () => {
this.didBpmnChange = true;
});
this.bpmnModeler.on('import.render.complete', () => {
this.didBpmnChange = true;
});
Glad you figured it out yourself. For comparison, here’s how we do it in Camunda Modeler:
Hello @jarekdanielak
Thank you for your answer, can you please quickly explain the logic or what is stackIdx
?
EDIT:
I think I found it, it seems to be related to the undo / redo command, so when stackIdx
is incremented, you have modifications
hi please I have an issue with XML code in order to draw my CMMN on API (actually i use openRouter but i will forward for chat gpt) …i need a prompt/script or something else in order to fix this problem,
the syntax or semantic XML generated GPT was true but it needs a visual section there is no size of CMMN s elements
Regardless of the fact that we don’t support CMMN anymore this is a universal problem. Even if your LLM can generate XML it cannot generate the visual part of the XML. That’s a separate problem. For BPMN we have GitHub - bpmn-io/bpmn-auto-layout: Layout BPMN diagrams, generating missing DI information. to solve this problem.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.