fix 修复 多次驳回无法锁定审批人问题
This commit is contained in:
+5
-3
@@ -167,9 +167,11 @@ public class WorkflowGlobalListener implements GlobalListener {
|
|||||||
String[] userIdArray = userIds.split(StringUtils.SEPARATOR);
|
String[] userIdArray = userIds.split(StringUtils.SEPARATOR);
|
||||||
if (userIdArray.length > 0) {
|
if (userIdArray.length > 0) {
|
||||||
flowTask.setPermissionList(List.of(userIdArray));
|
flowTask.setPermissionList(List.of(userIdArray));
|
||||||
// 移除已处理的状态变量
|
if (TaskStatusEnum.PASS.getStatus().equals(taskStatus)) {
|
||||||
variable.remove(nodeKey);
|
// 办理指定人变量只消费一次;驳回指定人变量需要保留给后续重复驳回。
|
||||||
FlowEngine.insService().removeVariables(flowTask.getInstanceId(), nodeKey);
|
variable.remove(nodeKey);
|
||||||
|
FlowEngine.insService().removeVariables(flowTask.getInstanceId(), nodeKey);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user