Commit d9284845 authored by 刘凡's avatar 刘凡

优化:移装变更 去掉流程接口调用时的try catch

parent 245211d5
...@@ -353,7 +353,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang ...@@ -353,7 +353,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
public void flowExecute(Long id, String instanceId, String operate, String comment) { public void flowExecute(Long id, String instanceId, String operate, String comment) {
WorkflowResultDto workflowResult = new WorkflowResultDto(); WorkflowResultDto workflowResult = new WorkflowResultDto();
JgChangeRegistrationTransfer transfer = this.getById(id); JgChangeRegistrationTransfer transfer = this.getById(id);
try {
String taskId = transfer.getNextTaskId(); String taskId = transfer.getNextTaskId();
//组装信息 //组装信息
TaskResultDTO dto = new TaskResultDTO(); TaskResultDTO dto = new TaskResultDTO();
...@@ -373,9 +373,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang ...@@ -373,9 +373,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
workflowResult = commonService.buildWorkFlowInfo(Collections.singletonList(complete)).get(0); workflowResult = commonService.buildWorkFlowInfo(Collections.singletonList(complete)).get(0);
// 更新下一步执行人 // 更新下一步执行人
this.updateExecuteIds(instanceId, transfer, operate, workflowResult); this.updateExecuteIds(instanceId, transfer, operate, workflowResult);
} catch (Exception e) {
e.printStackTrace();
}
} }
/** /**
...@@ -1032,7 +1030,6 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang ...@@ -1032,7 +1030,6 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
* 启动工作流 * 启动工作流
*/ */
private WorkflowResultDto startWorkFlork(String receiveOrgCreditCode) { private WorkflowResultDto startWorkFlork(String receiveOrgCreditCode) {
try {
ActWorkflowBatchDTO workflowBatchParams = new ActWorkflowBatchDTO(); ActWorkflowBatchDTO workflowBatchParams = new ActWorkflowBatchDTO();
List<ActWorkflowStartDTO> workflowList = new ArrayList<>(); List<ActWorkflowStartDTO> workflowList = new ArrayList<>();
ActWorkflowStartDTO workflow = new ActWorkflowStartDTO(); ActWorkflowStartDTO workflow = new ActWorkflowStartDTO();
...@@ -1046,10 +1043,6 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang ...@@ -1046,10 +1043,6 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
List<ProcessTaskDTO> processTasks = icmWorkflowService.startBatch(workflowBatchParams); List<ProcessTaskDTO> processTasks = icmWorkflowService.startBatch(workflowBatchParams);
// 组装工作流返回的数据 // 组装工作流返回的数据
return commonService.buildWorkFlowInfo(processTasks).get(0); return commonService.buildWorkFlowInfo(processTasks).get(0);
} catch (Exception e) {
log.error("提交失败:{}", e);
throw new BadRequest("提交失败" + e.getMessage());
}
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment