Actions
Task #2300
openRemove redundant participants (identity-links) from workflow.
Status:
New
Priority:
Normal
Assignee:
Vít Švanda
Category:
Workflow
Target version:
-
Start date:
06/05/2020
Due date:
% Done:
0%
Estimated time:
Owner:
Description
After some candidate for a task the participant for same user is created for whole process. This participant remains in DB after conversion user name to UUID.
I tried to delete participant by official activiti service (CandidateToUuidEventListener), but it doesn't work. May be different phase of process/task live cycle should be used.
try { runtimeService.deleteUserIdentityLink(processInstance.getId(), user, IdentityLinkType.PARTICIPANT); // Candidates on tasks are added as prticipant (with username) on process too. We have to delete them too. runtimeService.deleteParticipantUser(processInstance.getId(), user); } catch (ActivitiObjectNotFoundException ex) { // Participant was not found, no problem. log.warn("CandidateToUiidEventListener - participant was not found [{}] in the process [{}]", user, processInstance.getId(), ex); }
Actions