# Handle remotion, creation, replacement

**URL:** <https://forum.bpmn.io/t/handle-remotion-creation-replacement/10966>\
**Category:** Developers\
**Created:** [April 30, 2024, 10:50am UTC](https://forum.bpmn.io/t/handle-remotion-creation-replacement/10966 "2024-04-30T10:50:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alessia\_Volpi](https://forum.bpmn.io/user_avatar/forum.bpmn.io/alessia_volpi/32/5289_2.png) [@Alessia\_Volpi](https://forum.bpmn.io/u/Alessia_Volpi)\
**Post date:** [April 30, 2024, 10:50am UTC](https://forum.bpmn.io/t/handle-remotion-creation-replacement/10966/1 "2024-04-30T10:50:19Z")

</div>

Hi, how can i handle the event of creation,remotion and replacement?  
I check the eventBus but i can capture only the ended event, like for the creation the event “shape.added” i need to capture the event before the operation is closed because in some cases i need to interrupt it. Please help me.

---

<div class="post-metadata">

**Author:** ![philippfromme](https://forum.bpmn.io/user_avatar/forum.bpmn.io/philippfromme/32/2803_2.png) [@philippfromme](https://forum.bpmn.io/u/philippfromme)\
**Post date:** [April 30, 2024, 10:54am UTC](https://forum.bpmn.io/t/handle-remotion-creation-replacement/10966/2 "2024-04-30T10:54:30Z")

</div>

To intercept you’d use a [command interceptor](https://github.com/bpmn-io/diagram-js/blob/develop/lib/command/CommandInterceptor.js) which can hook into different phases of command execution. What is your use case exactly?

---

<div class="post-metadata">

**Author:** ![Alessia\_Volpi](https://forum.bpmn.io/user_avatar/forum.bpmn.io/alessia_volpi/32/5289_2.png) [@Alessia\_Volpi](https://forum.bpmn.io/u/Alessia_Volpi)\
**Post date:** [May 21, 2024, 11:08am UTC](https://forum.bpmn.io/t/handle-remotion-creation-replacement/10966/3 "2024-05-21T11:08:11Z")

</div>

I solve the problem by extending and removing some option from the context pad directly

---

<div class="post-metadata">

**Author:** ![barmac](https://forum.bpmn.io/user_avatar/forum.bpmn.io/barmac/32/974_2.png) [@barmac](https://forum.bpmn.io/u/barmac)\
**Post date:** [July 9, 2025, 10:10am UTC](https://forum.bpmn.io/t/handle-remotion-creation-replacement/10966/4 "2025-07-09T10:10:48Z")

</div>

Closed on July 9, 2025, 10:10am UTC

Closing old topics.
