端到端功能 总图生成后存储的模型信息里增加布局方向信息 方便后续节点展开处理连线

This commit is contained in:
qinoy 2023-06-02 10:01:20 +08:00
parent 9e2605b648
commit 05cf6d772e
3 changed files with 6 additions and 0 deletions

View File

@ -160,5 +160,8 @@ public class GraphRender {
JSONObject defineJsonObj = JSONObject.parseObject(this.baseModel.getDefinition()); JSONObject defineJsonObj = JSONObject.parseObject(this.baseModel.getDefinition());
JSONObject processProperties = defineJsonObj.getJSONObject("processProperties"); JSONObject processProperties = defineJsonObj.getJSONObject("processProperties");
processProperties.put("direction", direction); processProperties.put("direction", direction);
this.baseModel.setDefinition(defineJsonObj.toJSONString());
CoeDesignerAPIManager.getInstance().storeDefinition(this.baseModel);
} }
} }

View File

@ -300,6 +300,9 @@ public class SubProcessWeb extends ActionWeb {
// 连线渲染 // 连线渲染
graphRender.handShapeLinkerRender(linkers); graphRender.handShapeLinkerRender(linkers);
// 流程属性中加入布局方向
graphRender.addDirectionToProcessProperties(direction);
} }