发布流程质量校验逻辑修改

This commit is contained in:
zhaol 2024-12-10 17:42:00 +08:00
parent dda43bcefe
commit 78d0db0a2c
2 changed files with 6 additions and 12 deletions

View File

@ -101,13 +101,12 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
if (oldPropertyList != null && oldPropertyList.size() > 0) {
for (PALRepositoryPropertyModel propertyModel : oldPropertyList) {
//获取文件属性中支持文件
if(propertyModel.getPropertyId().equals("support_files")){
//获取文件属性中相关/支持文件
if(propertyModel.getPropertyId().equals("related_support_files")){
//获取关联模型id
String relationFileId= null;
try {
String propertyValue = propertyModel.getPropertyValue();
System.err.println("propertyValue========>"+propertyValue);
if(UtilString.isNotEmpty(propertyValue)&&propertyValue.contains("{")) {
relationFileId = JSONObject.parseObject(propertyModel.getPropertyValue()).getString("relationFileId");
}
@ -293,7 +292,6 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
String shapeId = o.getString("id");
String shapeName = o.getString("name");
//System.out.println("这个名字是什么>>>>>>>" + shapeName);
if (shapeName.equals("linker")) {
JSONObject from = o.getJSONObject("from");
JSONObject to = o.getJSONObject("to");
@ -326,10 +324,8 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
list_linker.add("\""+title+"\""+"连线没有出线");
}
}
//System.out.println("m的值>>>>>>>>>>>" + ms);
}
//System.out.println("linker>>>>>>>>>>>>" + list_linker.size());
if (list_linker.size() > 0) {
sbs.append("连线校验:");
for (String d :
@ -341,9 +337,6 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
sbs.append(sb6);
}
/*if (sbs.length()>0){
throw new BPMNError("0313", sbs.toString());
}*/
}
@ -365,9 +358,8 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
PALRepositoryPropertyDao dao = new PALRepositoryPropertyDao();
List<PALRepositoryPropertyModel> propertys = dao.getPropertysByPlid(uuid, null);
Boolean flag1=true;
Boolean flag2=true;
Boolean flag1 = true;
Boolean flag2 = true;
StringBuffer sb = new StringBuffer();
StringBuffer sb1=new StringBuffer();
StringBuffer sb2=new StringBuffer();
@ -379,6 +371,8 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
/***************************************************文件属性校验*************************************************/
for (PALRepositoryPropertyModel property : propertys) {
flag1=true;
flag2=true;
String id = property.getPropertyId();
if (!attributeModelMap.containsKey(id) || !attributeModelMap.get(id).getUse()) {
continue;