cancel
Showing results for 
Search instead for 
Did you mean: 

Can one create a TaskListener for all user tasks in process?

dancrumb
Champ in-the-making
Champ in-the-making
I've read http://activiti.org/userguide/#taskListeners and it's pretty clear how to add a TaskListener to a specific user task.

Is there a way to add a TaskListener at the process definition level, such that it's run for all user tasks?
2 REPLIES 2

jbarrez
Star Contributor
Star Contributor
Yes, check out the BpmnParseListener. That allows you to attach listeners to all usertasks. That's how we implemented history, too.

frederikherema1
Star Contributor
Star Contributor
Another example of the BPMNParseListener approach to add listeners:

http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/repository/source/jav...