| | |
| | | List<DocInfo> docInfoList = docInfoService.findList(docInfoQueryRequest); |
| | | return Result.OK(docInfoList); |
| | | } |
| | | /** |
| | | * 发起定型流程 |
| | | */ |
| | | @Override |
| | | public Result<?> submitProccess(DispatchFile dispatchFile) { |
| | | checkParam(dispatchFile); |
| | | super.save(dispatchFile); |
| | | //获取文件信息 |
| | | DocInfo docInfo = docInfoService.getById(dispatchFile.getDocId()); |
| | | flowCommonService.initActBusiness(docInfo.getDocName()+"."+docInfo.getDocSuffix()+"文件进行定型", |
| | | dispatchFile.getId(), "IDispatchFileService", "process_rf27duhy", null); |
| | | Map<String, Object> variables = new HashMap<>(); |
| | | variables.put("dataId", dispatchFile.getId()); |
| | | variables.put("organization", "导入文档默认启动流程"); |
| | | variables.put("comment", "导入文档默认启动流程"); |
| | | variables.put("proofreading",true); |
| | | Result result= flowDefinitionService.startProcessInstanceByKey("process_rf27duhy", variables); |
| | | if (!result.isSuccess()) |
| | | super.removeById(dispatchFile.getId()); |
| | | return result; |
| | | } |
| | | |
| | | private Map<String, Object> setProcessVariables(DispatchFile dispatchFile, String userId, DispatchFileFlowTaskVo dispatchFileFlowTaskVo) { |
| | | Map<String, Object> values = new HashMap<>(); |