| | |
| | | |
| | | |
| | | @PostMapping("/prestart") |
| | | @Operation(summary = "准备程序替换流程", description = "准备程序替换流程,打开界面之前调用,调用之后会初始化文件列表") |
| | | public R<Long> prestart(@Parameter(description = "程序包名 节点的id") Long nodeId) { |
| | | long tempId = System.currentTimeMillis(); |
| | | @Operation(summary = "准备程序替换流程", description = "准备程序替换流程,打开界面之前调用,调用之后会初始化文件列表,") |
| | | public R<String> prestart(@Parameter(description = "程序包名 节点的id") Long nodeId) { |
| | | String tempInstanceId = "REP"+System.currentTimeMillis(); |
| | | try { |
| | | replaceFlowService.pre(nodeId,tempId); |
| | | return R.data(tempId); |
| | | replaceFlowService.pre(nodeId,tempInstanceId); |
| | | return R.data(tempInstanceId); |
| | | }catch(Exception e){ |
| | | log.error("预开始错误",e); |
| | | return R.fail(e.getMessage()); |