cancel
Showing results for 
Search instead for 
Did you mean: 

Custom task listener and deleteCandidateGroup()

mandas
Champ in-the-making
Champ in-the-making
Hi,

I 've implemented a task listener for the 'create' event in order to change the candidate groups according to runtime data (I 'm not using spring, so adding an expression to 'candidateGroups' I think it's not supported otherwise). Inside the task listener I do:

delegateTask.deleteCandidateGroup("foo")
delegateTask.addCandidateGroup("bar")

Although a new IdentityLinkEntity for "bar" is created inside delegateTask.getCandidates(), the IdentityLinkEntity for "foo" is not removed, thus it is persisted to the database at the end of the transaction. Am I doing something wrong or is it a bug?

Thanks
12 REPLIES 12

michj_74
Champ in-the-making
Champ in-the-making
Hi,

thanks for the info, I thought of something similar too. But anyway it's good to know that the issue is going to be fixed.

Cheers,
Mike

frederikherema1
Star Contributor
Star Contributor
Please use https://jira.codehaus.org/browse/ACT-1749 to track progress on this…

xuhuisheng
Champ in-the-making
Champ in-the-making
create a pull request, and waiting for merge.
https://github.com/Activiti/Activiti/pull/106