update - 优化连续多节点自动通过不生效的异常问题
This commit is contained in:
parent
8cd3db85ae
commit
789ecab395
@ -98,6 +98,7 @@ public class EngineExecutionStartListener implements ExecutionListener {
|
||||
&& nodeType.isPresent()
|
||||
&& (Objects.equals(NODE_TASK, nodeType.get()) || Objects.equals(NODE_BUSINESS, nodeType.get()))) {
|
||||
getApprovalMethod(userTask).ifPresent(method -> {
|
||||
List<String> assigneeIdList = new ArrayList<>();
|
||||
switch (method) {
|
||||
case autoPassed:
|
||||
case autoRejection:
|
||||
@ -136,17 +137,16 @@ public class EngineExecutionStartListener implements ExecutionListener {
|
||||
// 审批候选人为空时的兜底
|
||||
emptyAssigneeHandle(assigners, userTask, execution);
|
||||
|
||||
List<String> assigneeIdList = new ArrayList<>();
|
||||
for (BpmnTaskDelegateAssigner user : assigners) {
|
||||
assigneeIdList.add(user.buildAssigneeId());
|
||||
}
|
||||
// UserTask 多实例, 该变量用于引擎
|
||||
execution.setVariable(assigneeListVariableName, assigneeIdList);
|
||||
|
||||
execution.setVariable(INTERNAL_ACTIVITY_RELATION_ASSIGNEE_LIST_INFO_SNAPSHOT + currentActivityId,
|
||||
assigners);
|
||||
break;
|
||||
}
|
||||
// UserTask 多实例, 该变量用于引擎
|
||||
execution.setVariable(assigneeListVariableName, assigneeIdList);
|
||||
});
|
||||
}
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user