本文整理汇总了Java中org.activiti.engine.task.IdentityLink.getType方法的典型用法代码示例。如果您正苦于以下问题:Java IdentityLink.getType方法的具体用法?Java IdentityLink.getType怎么用?Java IdentityLink.getType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.activiti.engine.task.IdentityLink
的用法示例。
在下文中一共展示了IdentityLink.getType方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createHumanTask
import org.activiti.engine.task.IdentityLink; //导入方法依赖的package包/类
public HumanTaskDTO createHumanTask(DelegateTask delegateTask)
throws Exception {
HumanTaskDTO humanTaskDto = new HumanTaskBuilder()
.setDelegateTask(delegateTask)
.setVote(this.isVote(delegateTask)).build();
humanTaskDto = humanTaskConnector.saveHumanTask(humanTaskDto);
logger.debug("candidates : {}", delegateTask.getCandidates());
for (IdentityLink identityLink : delegateTask.getCandidates()) {
String type = identityLink.getType();
ParticipantDTO participantDto = new ParticipantDTO();
participantDto.setType(type);
participantDto.setHumanTaskId(humanTaskDto.getId());
if ("user".equals(type)) {
participantDto.setCode(identityLink.getUserId());
} else {
participantDto.setCode(identityLink.getGroupId());
}
humanTaskConnector.saveParticipant(participantDto);
}
return humanTaskDto;
}
示例2: initInvolvedPeople
import org.activiti.engine.task.IdentityLink; //导入方法依赖的package包/类
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())) {
UserDetailsComponent involvedDetails = new UserDetailsComponent(
identityLink.getUserId(),
identityLink.getType(),
i18nManager.getMessage(Messages.TASK_INVOLVED_REMOVE),
new RemoveInvolvedPersonListener(identityLink, task, taskDetailPanel));
peopleGrid.addComponent(involvedDetails);
}
}
}
}