refactor(klp-flowable):移除下一个处理人选择功能- 删除了 NextUserSelector 类- 移除了 UserTaskListener 中关于下一个处理人的逻辑

- 删除了 WfTaskServiceImpl 中保存下一个处理人到流程变量的代码这个改动移除了用户自定义选择下一个处理人的功能,简化了系统架构。
This commit is contained in:
2025-08-22 11:10:52 +08:00
parent 1292adbffa
commit 9e84b050bf
3 changed files with 2 additions and 99 deletions

View File

@@ -74,18 +74,6 @@ public class WfTaskServiceImpl extends FlowServiceFactory implements IWfTaskServ
// 获取 bpmn 模型
BpmnModel bpmnModel = repositoryService.getBpmnModel(task.getProcessDefinitionId());
identityService.setAuthenticatedUserId(TaskUtils.getUserId());
// 处理下一级审批人,将用户选择的下一个处理人保存到流程变量中
if (StringUtils.isNotBlank(taskBo.getNextUserIds())) {
// 如果有指定下一个处理人,则将其保存到流程变量中
Map<String, Object> variables = taskBo.getVariables();
if (variables == null) {
variables = new HashMap<>();
taskBo.setVariables(variables);
}
variables.put("nextUserIds", taskBo.getNextUserIds());
}
if (DelegationState.PENDING.equals(task.getDelegationState())) {
taskService.addComment(taskBo.getTaskId(), taskBo.getProcInsId(), FlowComment.DELEGATE.getType(), taskBo.getComment());
taskService.resolveTask(taskBo.getTaskId());