if (value == null) {
return priority;
}
BpmConfUserManager bpmConfUserManager = getBpmConfUserManager();
BpmConfUser bpmConfUser = bpmConfUserManager
.findUnique(
"from BpmConfUser where value=? and type=? and priority=? and status=0 and bpmConfNode=?",
value, type, priority, bpmConfNode);
if (bpmConfUser == null) {
bpmConfUser = new BpmConfUser();
bpmConfUser.setValue(value);
bpmConfUser.setType(type);
bpmConfUser.setStatus(0);
bpmConfUser.setPriority(priority);
bpmConfUser.setBpmConfNode(bpmConfNode);
bpmConfUserManager.save(bpmConfUser);
}
return priority + 1;
}