|
|
@ -183,6 +183,10 @@ public class FlowableRest implements FlowableFeign { |
|
|
|
@Override |
|
|
|
public ResultBean<UpdateFlowFieldVo> startProcess(BusinessVariables dto) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
if (StringUtils.isBlank(dto.getBusinessSid())) { |
|
|
|
return rb.setMsg("businessSid 不能为空!"); |
|
|
|
} |
|
|
|
dto.getFormVariables().put("businessSid",dto.getBusinessSid()); |
|
|
|
String nextNodeUserSids_ = dto.getNextNodeUserSids(); |
|
|
|
if(StringUtils.isBlank(nextNodeUserSids_)){ |
|
|
|
ResultBean<String> nextNodeUserSidsOfCreate = getNextNodeUserSidsOfCreate(dto); |
|
|
@ -214,10 +218,15 @@ public class FlowableRest implements FlowableFeign { |
|
|
|
UpdateFlowFieldVo vo = new UpdateFlowFieldVo(); |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
Map<String, Object> formVariables = dto.getFormVariables(); |
|
|
|
|
|
|
|
String taskId = dto.getTaskId(); |
|
|
|
if (StringUtils.isBlank(taskId)) { |
|
|
|
return rb.setMsg("taskId 不能为空!"); |
|
|
|
} |
|
|
|
if (StringUtils.isBlank(dto.getBusinessSid())) { |
|
|
|
return rb.setMsg("businessSid 不能为空!"); |
|
|
|
} |
|
|
|
formVariables.put("businessSid",dto.getBusinessSid()); |
|
|
|
String nextUserSid = dto.getNextNodeUserSids(); |
|
|
|
if(StringUtils.isBlank(nextUserSid)){ |
|
|
|
ResultBean<String> nextNodeUserSidsOfSubmit = getNextNodeUserSidsOfSubmit(dto); |
|
|
@ -228,7 +237,8 @@ public class FlowableRest implements FlowableFeign { |
|
|
|
} |
|
|
|
String comment = dto.getComment(); |
|
|
|
if (StringUtils.isBlank(comment)) { |
|
|
|
return rb.setMsg("comment 不能为空!"); |
|
|
|
comment=""; |
|
|
|
//return rb.setMsg("comment 不能为空!");
|
|
|
|
} |
|
|
|
String instanceId = dto.getInstanceId(); |
|
|
|
if (StringUtils.isBlank(instanceId)) { |
|
|
@ -292,6 +302,10 @@ public class FlowableRest implements FlowableFeign { |
|
|
|
@Override |
|
|
|
public ResultBean<UpdateFlowFieldVo> revokeProcess(com.yxt.anrui.flowable.api.flowtask.FlowTaskVo fl) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
if (StringUtils.isBlank(fl.getBusinessSid())) { |
|
|
|
return rb.setMsg("businessSid 不能为空!"); |
|
|
|
} |
|
|
|
fl.getValues().put("businessSid",fl.getBusinessSid()); |
|
|
|
UpdateFlowFieldVo vo = new UpdateFlowFieldVo(); |
|
|
|
ResultBean<FlowProcinst> flowProcinstById = flowableService.getFlowProcinstById(fl.getInstanceId()); |
|
|
|
if(!StringUtils.isBlank(flowProcinstById.getData().getEND_TIME_())){ |
|
|
@ -320,6 +334,12 @@ public class FlowableRest implements FlowableFeign { |
|
|
|
public ResultBean<UpdateFlowFieldVo> taskReject(com.yxt.anrui.flowable.api.flowtask.FlowTaskVo fl) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
UpdateFlowFieldVo vo = new UpdateFlowFieldVo(); |
|
|
|
|
|
|
|
if (StringUtils.isBlank(fl.getBusinessSid())) { |
|
|
|
return rb.setMsg("businessSid 不能为空!"); |
|
|
|
} |
|
|
|
fl.getValues().put("businessSid",fl.getBusinessSid()); |
|
|
|
|
|
|
|
ResultBean<List<LatestTaskVo>> resultBean = flowtaskService.taskReject(fl); |
|
|
|
if (!resultBean.getSuccess()) { |
|
|
|
return rb; |
|
|
@ -342,6 +362,10 @@ public class FlowableRest implements FlowableFeign { |
|
|
|
@Override |
|
|
|
public ResultBean<UpdateFlowFieldVo> breakProcess(com.yxt.anrui.flowable.api.flowtask.FlowTaskVo fl) { |
|
|
|
ResultBean<UpdateFlowFieldVo> rb = ResultBean.fireFail(); |
|
|
|
if (StringUtils.isBlank(fl.getBusinessSid())) { |
|
|
|
return rb.setMsg("businessSid 不能为空!"); |
|
|
|
} |
|
|
|
fl.getValues().put("businessSid",fl.getBusinessSid()); |
|
|
|
UpdateFlowFieldVo vo = new UpdateFlowFieldVo(); |
|
|
|
ResultBean<UpdateFlowFieldVo> resultBean = flowableService.breakProcess(fl); |
|
|
|
if (!resultBean.getSuccess()) { |
|
|
|