review: 51行
This commit is contained in:
parent
6e2d00d561
commit
dadd43677e
|
@ -50,6 +50,9 @@ public class BpmTaskCandidateApproveUserSelectStrategy extends AbstractBpmTaskCa
|
||||||
Map<String, List<Long>> approveUserSelectAssignees = FlowableUtils.getApproveUserSelectAssignees(processInstance);
|
Map<String, List<Long>> approveUserSelectAssignees = FlowableUtils.getApproveUserSelectAssignees(processInstance);
|
||||||
Assert.notNull(approveUserSelectAssignees, "流程实例({}) 的下一个执行节点审批人不能为空",
|
Assert.notNull(approveUserSelectAssignees, "流程实例({}) 的下一个执行节点审批人不能为空",
|
||||||
execution.getProcessInstanceId());
|
execution.getProcessInstanceId());
|
||||||
|
if (approveUserSelectAssignees == null) {
|
||||||
|
return Sets.newLinkedHashSet();
|
||||||
|
}
|
||||||
// 获得审批人
|
// 获得审批人
|
||||||
List<Long> assignees = approveUserSelectAssignees.get(execution.getCurrentActivityId());
|
List<Long> assignees = approveUserSelectAssignees.get(execution.getCurrentActivityId());
|
||||||
return CollUtil.isNotEmpty(assignees) ? new LinkedHashSet<>(assignees) : Sets.newLinkedHashSet();
|
return CollUtil.isNotEmpty(assignees) ? new LinkedHashSet<>(assignees) : Sets.newLinkedHashSet();
|
||||||
|
@ -62,6 +65,8 @@ public class BpmTaskCandidateApproveUserSelectStrategy extends AbstractBpmTaskCa
|
||||||
return Sets.newLinkedHashSet();
|
return Sets.newLinkedHashSet();
|
||||||
}
|
}
|
||||||
Map<String, List<Long>> approveUserSelectAssignees = FlowableUtils.getApproveUserSelectAssignees(processVariables);
|
Map<String, List<Long>> approveUserSelectAssignees = FlowableUtils.getApproveUserSelectAssignees(processVariables);
|
||||||
|
Assert.notNull(approveUserSelectAssignees, "流程实例节点({}) 的下一个执行节点审批人不能为空",
|
||||||
|
activityId);
|
||||||
if (approveUserSelectAssignees == null) {
|
if (approveUserSelectAssignees == null) {
|
||||||
return Sets.newLinkedHashSet();
|
return Sets.newLinkedHashSet();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue