One of my requirement , I’m doing the update the shape & connector id’s when creating by using the below method. uid is my customID
this.bpmnJS.get(‘modeling’).updateProperties(elem, { id: uid });
I want to make the above action excluded in commandStack undo , redo chain
modifyElemId = (event) => {
const elem = event.element;
let uid = this.helperUtil.createAwdUID(); // this is the custome ID as per requirement
setTimeout(() =>{
this.bpmnJS.get(‘modeling’).updateProperties(elem, { id: uid }); // //modifying the bpmnId to customID
});