Skip to content

Commit

Permalink
fix subflow name length
Browse files Browse the repository at this point in the history
  • Loading branch information
xlinliu committed Jan 13, 2025
1 parent 08833b6 commit 80db560
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ public Message addFlow( @RequestBody AddFlowRequest addFlowRequest) throws Error
Workspace workspace = SSOHelper.getWorkspace(httpServletRequest);
// TODO: 2019/5/23 flowName工程名下唯一校验
String name = addFlowRequest.getName();
if (name != null && name.length() > 128) {
return Message.error("名称超限,请保持在1到128个字符之间。超限名称:" + name);
}
Long parentFlowID = addFlowRequest.getParentFlowID();
// 判断parentFlowID中是否已存在名称为name的subflow
if (flowService.checkExistSameSubflow(parentFlowID, name)){
Expand Down

0 comments on commit 80db560

Please sign in to comment.