|
@@ -300,11 +300,6 @@ public class ProcessTaskServiceImpl implements IProcessTaskService {
|
|
|
ApiAssert.isEmpty(flwTask, "当前ID执行任务不存在");
|
|
|
TaskService taskService = flowLongEngine.taskService();
|
|
|
this.processApprovalOpinion(dto.getReason());
|
|
|
- if (dto.isTermination()) {
|
|
|
- // 驳回并终止流程
|
|
|
- runtimeService.reject(flwTask.getInstanceId(), FlowHelper.getFlowCreator());
|
|
|
- return true;
|
|
|
- }
|
|
|
return taskService.rejectTask(flwTask, FlowHelper.getFlowCreator(), dto.getArgs()).isPresent();
|
|
|
}
|
|
|
|
|
@@ -357,6 +352,11 @@ public class ProcessTaskServiceImpl implements IProcessTaskService {
|
|
|
public boolean rejection(TaskApprovalDTO dto) {
|
|
|
FlwTask flwTask = this.getFlwTask(dto.getTaskId());
|
|
|
this.processApprovalOpinion(dto.getContent());
|
|
|
+ if (dto.isTermination()) {
|
|
|
+ // 驳回并终止流程
|
|
|
+ runtimeService.reject(flwTask.getInstanceId(), FlowHelper.getFlowCreator());
|
|
|
+ return true;
|
|
|
+ }
|
|
|
return flowLongEngine.taskService().rejectTask(flwTask, FlowHelper.getFlowCreator()).isPresent();
|
|
|
}
|
|
|
|