限制文件新建时,必须是文件夹或者流程架构

This commit is contained in:
yujh_java 2025-06-26 11:16:20 +08:00
parent daa0ade806
commit f98c9e2d7d

View File

@ -8627,6 +8627,11 @@ public class CoeProcessLevelWeb extends ActionWeb {
* @return
*/
public String getPalProcessLevelCreateMethodList(String category, String methodId, String fileId) {
if(!"process.framework".equals(methodId) && !"default".equals(methodId)){//不是架构或者文件夹
ResponseObject ro = ResponseObject.newErrResponse();
ro.msg("methodId"+methodId+"当前所选择目录不是文件夹或者流程架构,请选择正确的目录!");
return ro.toString();
}
ResponseObject ro = ResponseObject.newOkResponse();
JSONArray fileArr = new JSONArray();// 文件类模型可以画图
JSONArray folderArr = new JSONArray();// 文件夹类模型作为文件夹