AnsweredAssumed Answered

listening to delegation events

Question asked by christoph.rettig on Oct 28, 2011
Latest reply on Jan 3, 2012 by bryanmaviss
Hi guys, I would like to trigger some action whenever the delegation of some task changes.

Here are my attempts - unfortunately they all failed:(

1. I have tried to implement a TaskListener which I attached globally (in the designer by adding a listener to the process) to a process: this does not seem
to be possible as my class has to implement ExecutionListener, so I

2. configured my TaskListener on every UserTask. This works when a task is being created or the assignment changes but in my application
the user can delegate the task to some user user/groups and as this does not commit the task itself my TaskListener does not get notified at all. So I tried

3. to add a custom BpmnParseListener to add a ExecutionListener in the parseUserTask method but also this does not get called.

So, is there a way to get notified whenever the delegation is changed using the API call TaskService.addCandidateGroup or TaskService.addCandidateUser?

I really comfortable solution would be to get notified in a TaskListener implementatiom I can attach to the process - it is really a paid to configure
the listener with every event and every task.

  c

Outcomes