What is the alternative to activitieventlistener in camunda?

Then, you can create a Process Engine Plugin that adds a Task Listener to every Task when a process is parsed. You can see this topic for more details: Create Execution Listener in Spring[Modified]

Best,
Nikola