use of org.activiti.explorer.ui.task.listener.RemoveInvolvedPersonListener in project Activiti by Activiti.
the class TaskInvolvedPeopleComponent method initInvolvedPeople.
protected void initInvolvedPeople() {
List<IdentityLink> identityLinks = taskService.getIdentityLinksForTask(task.getId());
for (final IdentityLink identityLink : identityLinks) {
if (identityLink.getUserId() != null) {
// only user identity links, ignoring the group ids
if (!IdentityLinkType.ASSIGNEE.equals(identityLink.getType()) && !IdentityLinkType.OWNER.equals(identityLink.getType())) {
UserDetailsComponent involvedDetails = new UserDetailsComponent(identityLink.getUserId(), identityLink.getType(), i18nManager.getMessage(Messages.TASK_INVOLVED_REMOVE), new RemoveInvolvedPersonListener(identityLink, task, taskDetailPanel));
peopleGrid.addComponent(involvedDetails);
}
}
}
}
Aggregations