Commit 28102749 by guominglei

校验工作流时把错误的工作流名称抛出

parent 55f0650f
......@@ -381,7 +381,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
*/
private void checkFlow(Workspace workspace, PluginFlow flow, HashSet<String> flowNameSet, HashSet<String> fromFlowSet, HashSet<String> toFlowSet, HashMap<String, Integer> lineMap) {
//校验是否存在重名工作流
ValidationUtil.isTrueValidation(!flowNameSet.add(flow.getName()), "同一个工作空间内工作流名称不允许重复!");
ValidationUtil.isTrueValidation(!flowNameSet.add(flow.getName()), "【"+ flow.getName() +"】工作流重复,同一个工作空间内工作流名称不允许重复!");
fromFlowSet.add(flow.getName());
List<PluginBaseNode> nodeList = flow.getNodeList();
//用来校验同一工作流下是否有重复的节点
......
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