I implemented a “cancel all” mechanism by adding an event subprocess.
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?
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.