AnsweredAssumed Answered

Custom task listener and deleteCandidateGroup()

Question asked by mandas on Oct 3, 2012
Latest reply on Sep 3, 2013 by xuhuisheng
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

Outcomes