|
@@ -43,7 +43,7 @@ public class Test1Bpm implements IRunBPMService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public AjaxResult executeNode(IRunBPMEntity iRunBPMEntity) throws Exception {
|
|
|
+ public AjaxResult executeNode(IRunBPMEntity iRunBPMEntity){
|
|
|
//接收参数
|
|
|
Map<String, Object> map = iRunBPMEntity.getExecutionMap();
|
|
|
//查询
|
|
@@ -63,7 +63,7 @@ public class Test1Bpm implements IRunBPMService {
|
|
|
try {
|
|
|
response = sending.sendCommonGetInfo(queryMap);
|
|
|
}catch (Exception e){
|
|
|
- throw new Exception("网络错误");
|
|
|
+ return AjaxResult.error("网络错误");
|
|
|
}
|
|
|
if (response.getStatusCodeValue() != 200) {
|
|
|
return AjaxResult.error();
|
|
@@ -94,7 +94,7 @@ public class Test1Bpm implements IRunBPMService {
|
|
|
try {
|
|
|
response = sending.sendCommonUpdate(editMap);
|
|
|
}catch (Exception e){
|
|
|
- throw new Exception("网络错误");
|
|
|
+ return AjaxResult.error("网络错误");
|
|
|
}
|
|
|
if (response.getStatusCodeValue() != 200) {
|
|
|
return AjaxResult.error();
|