Excel导入流程图形状属性问题处理
This commit is contained in:
parent
a45de11bc5
commit
7bf27bd05b
Binary file not shown.
@ -784,7 +784,12 @@ public class ImportShapeExcel {
|
||||
* @param delRelationIdList
|
||||
*/
|
||||
private void batchOpData(PALRepositoryModel palModel, String palId, JSONObject elements, DesignerShapeRelationDao relationDao, List<DesignerShapeRelationModel> relationModelList, List<DesignerShapeRelationModel> delRelationIdList) {
|
||||
// 更新其他自定义属性
|
||||
LogUtil.appendLog(BatchConst.LOG_START + "完善模型内形状自定义属性配置", simpleLogFile, fullLogFile);
|
||||
// PALRepositoryAPIManager.getInstance().updateRepositoryProperty(palModel.getId());
|
||||
handleShapeDefaultAttr(wsId, palModel, elements, methodAttrsMap);
|
||||
LogUtil.appendLog(BatchConst.LOG_END + "完善模型内形状自定义属性配置", simpleLogFile, fullLogFile);
|
||||
|
||||
BaseModel defineModel = CoeDesignerAPIManager.getInstance().getDefinition(palId, 0);
|
||||
if (defineModel == null) {
|
||||
defineModel = CoeDesignerUtil.createModel(palId, 0);
|
||||
@ -836,10 +841,7 @@ public class ImportShapeExcel {
|
||||
}
|
||||
}
|
||||
LogUtil.appendLog("导入 " + palModel.getName() + "(v" + palModel.getVersion() + ".0)" + " 流程模型结构[完成]", simpleLogFile, fullLogFile);
|
||||
// 更新其他自定义属性
|
||||
LogUtil.appendLog(BatchConst.LOG_START + "完善模型内形状自定义属性配置", simpleLogFile, fullLogFile);
|
||||
PALRepositoryAPIManager.getInstance().updateRepositoryProperty(palModel.getId());
|
||||
LogUtil.appendLog(BatchConst.LOG_END + "完善模型内形状自定义属性配置", simpleLogFile, fullLogFile);
|
||||
|
||||
|
||||
LogUtil.appendLog(BatchConst.LOG_END + "[执行阶段][保存模型阶段]", simpleLogFile, fullLogFile);
|
||||
// 记录成功日志记录
|
||||
|
||||
@ -189,10 +189,6 @@ public class ImportShapeExcel1 {
|
||||
}
|
||||
}
|
||||
|
||||
// 更新其他自定义属性
|
||||
LogUtil.appendLog(BatchConst.LOG_START + "完善模型内形状自定义属性配置", simpleLogFile, fullLogFile);
|
||||
PALRepositoryAPIManager.getInstance().updateRepositoryProperty(repositoryId);
|
||||
LogUtil.appendLog(BatchConst.LOG_END + "完善模型内形状自定义属性配置", simpleLogFile, fullLogFile);
|
||||
|
||||
}
|
||||
LogUtil.appendLog(BatchConst.LOG_END + "[执行结束][Excel导入完成]", simpleLogFile, fullLogFile);
|
||||
@ -576,10 +572,6 @@ public class ImportShapeExcel1 {
|
||||
rightLevelNo = this.getLevelNo(level,i+1);
|
||||
}
|
||||
|
||||
if (leftLevelNo.equals("4.1")){
|
||||
Object o = new Object();
|
||||
}
|
||||
|
||||
//同分支序号多节点list
|
||||
List<CellObject> leftNodes = numList.get(leftLevelNo);
|
||||
List<CellObject> rightNodes = numList.get(rightLevelNo);
|
||||
@ -1231,7 +1223,6 @@ public class ImportShapeExcel1 {
|
||||
}
|
||||
defineModel.setUpdateTime(new SimpleDateFormat(CoeDesignerConstant.DATE_TIME_STYLE_YYYY_MM_DD_HH_MM_SS).format(new Date()));
|
||||
String define = defineModel.getDefinition();
|
||||
// System.out.println("@@@:"+define);
|
||||
JSONObject definition = JSON.parseObject(define);
|
||||
|
||||
//计算画布宽度
|
||||
@ -1254,6 +1245,13 @@ public class ImportShapeExcel1 {
|
||||
element.put(node.getString("id"),node);
|
||||
}
|
||||
}
|
||||
|
||||
// 更新其他自定义属性
|
||||
LogUtil.appendLog(BatchConst.LOG_START + "完善模型内形状自定义属性配置", simpleLogFile, fullLogFile);
|
||||
// PALRepositoryAPIManager.getInstance().updateRepositoryProperty(palModel.getId());
|
||||
handleShapeDefaultAttr(wsId, palModel, element, methodAttrsMap);
|
||||
LogUtil.appendLog(BatchConst.LOG_END + "完善模型内形状自定义属性配置", simpleLogFile, fullLogFile);
|
||||
|
||||
definition.put("elements",element);
|
||||
|
||||
defineModel.setDefinition(definition.toString());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user