Refresh connection on canvas after setting exclusive gateway default

So we are writing our own property panel with react and we are adding the option to let the user pick the default out going connects from a exclusive gate way. After that, we have to refresh the connection to show the default mark on the diagram. I tried to fire the following event but it wasn’t updating. Also the property panel example doesn’t seem to have an default option for exclusive gateway

eventBus.fire('commandStack.changed', {
  element: connectionElement
});

Please let me know if there if an even that i can fire to redraw the connection to show the default mark on the connection

Nvm … Figured it out. I can just do use updateProperties from the modeling and it will take care of the refreshing.

1 Like