fix 修复 多次驳回无法锁定审批人问题
This commit is contained in:
+3
-1
@@ -161,11 +161,13 @@ public class WorkflowGlobalListener implements GlobalListener {
|
||||
List<String> userIdList = StringUtils.str2List(userIds, StringUtils.SEPARATOR, true, true);
|
||||
if (CollUtil.isNotEmpty(userIdList)) {
|
||||
flowTask.setPermissionList(userIdList);
|
||||
// 移除已处理的状态变量
|
||||
if (TaskStatusEnum.PASS.getStatus().equals(taskStatus)) {
|
||||
// 办理指定人变量只消费一次;驳回指定人变量需要保留给后续重复驳回。
|
||||
variable.remove(nodeKey);
|
||||
FlowEngine.insService().removeVariables(flowTask.getInstanceId(), nodeKey);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 任务完成后发布流程事件并处理抄送和通知。
|
||||
|
||||
Reference in New Issue
Block a user