在打开模型的时候,重新设置localAttribute以及对模型节点的属性进行查漏补缺

This commit is contained in:
446052889@qq.com 2025-06-09 13:48:41 +08:00
parent 969ed256f3
commit 5bce2fff5d
2 changed files with 4 additions and 1 deletions

View File

@ -852,10 +852,13 @@ public class CoeDesignerShapeAPIManager {
*/
public JSONObject getCoeDefinitionAndSort(String define, String wsid, String methodId) {
JSONObject definition = JSONObject.parseObject(define);
JSONObject localAttribute = definition.containsKey("localAttribute") ? definition.getJSONObject("localAttribute") : new JSONObject();
// JSONObject localAttribute = definition.containsKey("localAttribute") ? definition.getJSONObject("localAttribute") : new JSONObject();
JSONObject localAttribute = new JSONObject();
if (localAttribute.isEmpty()) {
//处理流程节点属性配置
handlePlShapeAttrConfig(wsid, methodId, localAttribute);
// 对图元属性查漏补缺
CoeDesignerShapeAPIManager.getInstance().updateShapeDataAttributes(definition, localAttribute);
}
//获取最新属性的设置
List<PALMethodAttributeModel> attrList = getAllValidShapeAttributeModels(wsid, methodId);