How can I get the updated properties of element when changed?

I am looking for a event where, I can get the properties which have been updated in this change event, currently I am using element.change event to track the changes, for now I am not getting any changes , which have been done from the previous state.

Hey, element.changed and elements.changed are fired after all command execution has finished. When expecting the elements you’ll only see the state at that point in time.

You could listen for commandStack.element.updateProperties.executed and commandStack.element.updateModdleProperties.executed for nested properties. These are events fired by the command stack during command execution (cf. diagram-js/lib/command/CommandStack.js at develop · bpmn-io/diagram-js · GitHub).

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.