feat(flow) last complete updateBusinessStatus

pull/3/head
bob 2 years ago
parent 793c8435fc
commit 94deb7399f

@ -105,6 +105,7 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
if (Objects.isNull(task)) { if (Objects.isNull(task)) {
return AjaxResult.error("任务不存在"); return AjaxResult.error("任务不存在");
} }
runtimeService.updateBusinessStatus(taskVo.getInstanceId(), FlowStatus.APPROVING.getValue());
if (DelegationState.PENDING.equals(task.getDelegationState())) { if (DelegationState.PENDING.equals(task.getDelegationState())) {
taskService.addComment(taskVo.getTaskId(), taskVo.getInstanceId(), FlowComment.DELEGATE.getType(), taskVo.getComment()); taskService.addComment(taskVo.getTaskId(), taskVo.getInstanceId(), FlowComment.DELEGATE.getType(), taskVo.getComment());
taskService.resolveTask(taskVo.getTaskId(), taskVo.getVars()); taskService.resolveTask(taskVo.getTaskId(), taskVo.getVars());
@ -114,7 +115,7 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
taskService.setAssignee(taskVo.getTaskId(), userId.toString()); taskService.setAssignee(taskVo.getTaskId(), userId.toString());
taskService.complete(taskVo.getTaskId(), taskVo.getVars()); taskService.complete(taskVo.getTaskId(), taskVo.getVars());
} }
runtimeService.updateBusinessStatus(taskVo.getInstanceId(), FlowStatus.APPROVING.getValue());
return AjaxResult.success(); return AjaxResult.success();
} }

Loading…
Cancel
Save