Search in sources :

Example 1 with RemoveInvolvedPersonListener

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);
            }
        }
    }
}
Also used : RemoveInvolvedPersonListener(org.activiti.explorer.ui.task.listener.RemoveInvolvedPersonListener) IdentityLink(org.activiti.engine.task.IdentityLink)

Aggregations

IdentityLink (org.activiti.engine.task.IdentityLink)1 RemoveInvolvedPersonListener (org.activiti.explorer.ui.task.listener.RemoveInvolvedPersonListener)1