Project

General

Profile

Actions

Task #2300

open

Remove redundant participants (identity-links) from workflow.

Added by Vít Švanda almost 4 years ago. Updated almost 4 years ago.

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 #1

Updated by Vít Švanda almost 4 years ago

  • Target version deleted (10.5.0)
Actions

Also available in: Atom PDF