| | |
| | | vars.put(FlowContants.LAST_STEP_USER_NICKNAME, AuthUtil.getNickName()); |
| | | vars.put(FlowContants.TITLE,programPackage.getName()+"-固化");//自动增加标题 |
| | | |
| | | vars.put(FlowContants.MY_PROCESS_NAME, "固化流程"); |
| | | |
| | | ProcessInstance inst = runtimeService.startProcessInstanceByKey(FlowContants.CURE_PROCESS_KEY,"0",vars); |
| | | |
| | | //更新程序包名节点的流程实例id |
| | |
| | | for(FlowProgramFile flowProgramFile : fileList){ |
| | | flowProgramFile.setProcessInstanceId(inst.getProcessInstanceId()); |
| | | } |
| | | this.flowProgramFileService.updateBatchById(fileList); |
| | | this.flowProgramFileService.saveBatch(fileList); |
| | | |
| | | log.info("启动固化流程完成,实例id={}", inst.getId()); |
| | | } |