Examples of deleteUserIdentityLink()


Examples of org.activiti.engine.impl.persistence.entity.TaskEntity.deleteUserIdentityLink()

                    Set<IdentityLink> candidates = taskEntity.getCandidates();
                    for (IdentityLink identityLink : candidates) {
                        // 处理候选人
                        if (identityLink.getUserId() != null && identityLink.getUserId().equals(userId)) {
                            // 必须删除link,否则报错
                            taskEntity.deleteUserIdentityLink(identityLink.getUserId(), "candidate");

                            // 签收触发TASK_ASSIGNED
                            taskService.claim(taskEntity.getId(), userId);
                        } else if (groupIds.contains(identityLink.getGroupId())) {
                            // 必须删除link,否则报错
View Full Code Here

Examples of org.camunda.bpm.engine.TaskService.deleteUserIdentityLink()

    TaskService taskService = engine.getTaskService();

    identityLink.validate();

    if (identityLink.getUserId() != null) {
      taskService.deleteUserIdentityLink(taskId, identityLink.getUserId(), identityLink.getType());
    } else if (identityLink.getGroupId() != null) {
      taskService.deleteGroupIdentityLink(taskId, identityLink.getGroupId(), identityLink.getType());
    }

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.