|
@@ -139,6 +139,13 @@ public class ProcessTaskServiceImpl implements IProcessTaskService {
|
|
|
return null != taskService.claim(taskId, flowCreator);
|
|
|
}
|
|
|
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
+ @Override
|
|
|
+ public boolean withdraw(Long taskId, FlowCreator flowCreator) {
|
|
|
+ TaskService taskService = flowLongEngine.taskService();
|
|
|
+ return taskService.withdrawTask(taskId, flowCreator).isPresent();
|
|
|
+ }
|
|
|
+
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
@Override
|
|
|
public boolean executeJump(Long taskId, String nodeName) {
|
|
@@ -209,6 +216,7 @@ public class ProcessTaskServiceImpl implements IProcessTaskService {
|
|
|
public boolean consent(TaskApprovalDTO dto) {
|
|
|
FlwTask flwTask = this.getFlwTask(dto.getTaskId());
|
|
|
ApiAssert.fail(!flowLongEngine.executeTask(dto.getTaskId(), FlowHelper.getFlowCreator()), "执行任务审批失败");
|
|
|
+ ApiAssert.fail(!flwProcessFormService.saveForm(flwTask.getInstanceId(), dto.getProcessForm()), "保存保单内容失败");
|
|
|
return flwProcessApprovalService.consent(flwTask.getInstanceId(), dto);
|
|
|
}
|
|
|
|