Hey @lossril,
Custom Bean deployment for Task/Rest App is similar to what you are trying to do. You need to register the event listener through the ProcessEngineConfiguration
and you can do that by making your class an auto configuration.
Cheers,
Filip