Delete Button Event


#1

Hi,

Is there any event handler or any method that will be executed when clicking on the delete button(bin icon) of a particular bpmn element, there are suggestions about shape.remove but I want to know before the element deleted or while clicking on the delete button itself.

Thanks


#2

The DeleteShapeHandler is responsible for deleting shapes. You can intercept the delete action in a number of ways e.g. changing the context pad’s implementation, disallowing deleting elements using rules or intercepting the actual command. What are you trying to achieve in general?


#3

hi philipp,

I want to show an alert window while clicking on the delete icon for that i need a event to emit.

Thanks


#4

There is no simple event being fired in that case (except for all the events related to the command execution). Try modifying ContextPadProvider to achieve your custom behavior.


#5

Thanks for the help philipp, let me try this