Replace menu provider

I have gone through a lot of these examples but I could not find one for the custom Replace Menu provider. Can anyone link me to any examples I can follow to achieve this?

While currently there isn’t a specific example for a replace menu provider, the implementation is pretty similar to any other provider.

First you need to register your provider:

popupMenu.registerProvider('bpmn-replace', this);

Then you add the items you wish to add:

CustomProvider.prototype.getPopupMenuEntries = function(element) {
  return function(entries) {

    // add custom entries
   return entries

You can see how the current replace menu provider works for further details.

1 Like