Commit c8f9f543 by huangfusuper

使用工作流名称开启工作流

parent bfc919f6
...@@ -1519,7 +1519,7 @@ public class ApiFlowServiceImpl implements ApiFlowService { ...@@ -1519,7 +1519,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
//获取工作流名称 //获取工作流名称
String flowName = jsonObject.getString("flowName"); String flowName = jsonObject.getString("flowName");
ValidationUtil.dataNotBank(flowName, "工作流名称不允许为空!"); ValidationUtil.dataNotBank(flowName, "工作流名称不允许为空!");
Workspace byName = workspaceMapper.getByName(flowName); Workspace byName = workspaceMapper.getByName(workspaceName);
ValidationUtil.isTrueValidation(byName == null, "没有此工作空间"); ValidationUtil.isTrueValidation(byName == null, "没有此工作空间");
RunRecording runRecording = runRecordingMapper.runIngRunRecording(flowName, byName.getWorkspaceId()); RunRecording runRecording = runRecordingMapper.runIngRunRecording(flowName, byName.getWorkspaceId());
ValidationUtil.isTrueValidation(runRecording == null, "没有正在运行中的实例!"); ValidationUtil.isTrueValidation(runRecording == null, "没有正在运行中的实例!");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment