As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
If you want to add a task listener for every (or almost every) task than a pre or post parse listener would be a good fit.In the process engine configuration you can set a list of preParseListeners and postParseListeners that consists of BpmnParseListener items.A good example is the HistoryParseListener that you can find in the Activiti Engine source code.