| | |
| | | import org.springframework.web.client.HttpClientErrorException; |
| | | import org.springframework.web.client.RestTemplate; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Slf4j |
| | |
| | | String restURL = remoteMethod.getExpressionText(); |
| | | String status = statusValue.getExpressionText(); |
| | | //获取业务数据信息 |
| | | String oids = (String) taskVariable.get(FlowEngineConstant.OIDS); |
| | | List<String> oids = (List<String>) taskVariable.get(FlowEngineConstant.OIDS); |
| | | String btmType = (String) taskVariable.get(FlowEngineConstant.BTMTYPE); |
| | | |
| | | taskVariable.put(FlowEngineConstant.REMOTE_METHOD,restURL); |
| | | taskVariable.put(FlowEngineConstant.STATUS_VALUE,status); |
| | | |
| | | if(StringUtils.isEmpty(oids)){ |
| | | if(CollectionUtils.isEmpty(oids)){ |
| | | throw new VciBaseException("执行状态修改事件时,业务数据oid为空!"); |
| | | } |
| | | if(StringUtils.isEmpty(btmType)){ |
| | |
| | | |
| | | FlowStatusDTO flowStatusDTO = new FlowStatusDTO(); |
| | | flowStatusDTO.setBtmType(btmType); |
| | | flowStatusDTO.setOids(VciBaseUtil.str2List(oids)); |
| | | flowStatusDTO.setOids(oids); |
| | | flowStatusDTO.setVariableMap(taskVariable); |
| | | flowStatusDTO.setTaskHisVOList(FlowableUtils.listTaskHistory(delegateTask.getProcessInstanceId(),historyService,taskService)); |
| | | |
| | |
| | | if(CollectionUtils.isEmpty(result) && !(Boolean) result.get("success")){ |
| | | throw new VciBaseException((String) result.get("message")); |
| | | } |
| | | |
| | | } |
| | | } |
| | | |