We have a UI service that polls a backend that serves BPMN XML. Every time the UI receives this XML, it calls
modeler.importXML(). However, it seems every time
importXML is called, the
commandStack._stack array resets. What’s the easiest way to prevent this from happening and only when a certain condition is met (e.g. when the BPMNDiagram id changes)?