Programmatically adding End Event code

Hi folks,

Is there a way to programmatically define code that should be executed if any process ends?

In Camunda 7 we used an EnginePlugin to add EndEventListeners to processes when they were parsed, by leveraging ProcessEngineConfiguration#getCustomPreBPMNParseListeners

Best regards
Jannis

anybody listening?