# Signal Event subscription not added when adding Event Subprocess

**URL:** https://forum.flowable.org/t/signal-event-subscription-not-added-when-adding-event-subprocess/10973
**Category:** Uncategorized
**Created:** [October 27, 2023, 8:53am UTC](https://forum.flowable.org/t/signal-event-subscription-not-added-when-adding-event-subprocess/10973 "2023-10-27T08:53:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![RobertG](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@RobertG](https://forum.flowable.org/u/RobertG)
#### Post date: [October 27, 2023, 8:53am UTC](https://forum.flowable.org/t/signal-event-subscription-not-added-when-adding-event-subprocess/10973/1 "2023-10-27T08:53:03Z")

</div>

Hi,

I implemented a “cancel all” mechanism by adding an event subprocess.  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/d/d376d46eb68829bc6a556242225d71e093afe62c.png)

It works great when I create a new instance of the main process.

However, **when I migrate existing processes to this new version, no event subscription is created** in the _act\_ru\_event\_subscr_ table - it won’t work!

I think this is highly unexpected behavior - I have to add subscription entries manually now.  
Is this a known bug?

Best regards,

R

PS: Using Flowable 6.8.0 in the open source SpringBoot setup

EDIT: I just found out there’s a custom migration manager in our software that makes some adjustments.  
I think this might just work in general (`AbstractDynamicStateManager#processCreatedEventSubProcess` is evidence of it), but be broken in my specific case due to someone “tampering” with it:  
`CustomizedProcessInstanceMigrationManager extends ProcessInstanceMigrationManagerImpl` - 1000 lines of code that may or may not be easily understood 😢 . But i’m not sure, any input is welcome - so if you tell me “this should work, I tried that yesterday”, that’s some evidence that would help me.  
EDIT2: **I tried with the default migration manager (`ProcessInstanceMigrationManagerImpl`), the issue still occurs.**

---

<div class="post-metadata">

### Author: ![RobertG](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@RobertG](https://forum.flowable.org/u/RobertG)
#### Post date: [October 27, 2023, 3:14pm UTC](https://forum.flowable.org/t/signal-event-subscription-not-added-when-adding-event-subprocess/10973/2 "2023-10-27T15:14:28Z")

</div>

From what I can now tell, `ProcessInstanceMigrationManagerImpl` simply does not support this yet.

While I will add some basic support for new event subprocesses to our own `CustomizedProcessInstanceMigrationManager`, this won’t be production-ready by a long shot.

Still, I can share some of the code once it’s up and running, if there is some demand here.

---

<div class="post-metadata">

### Author: ![RobertG](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@RobertG](https://forum.flowable.org/u/RobertG)
#### Post date: [October 30, 2023, 1:25pm UTC](https://forum.flowable.org/t/signal-event-subscription-not-added-when-adding-event-subprocess/10973/4 "2023-10-30T13:25:47Z")

</div>

I posted some complete code here, but it got blocked by some daemon.
