ibm-doors - IBM DOORS - 基于属性更新需求
问题描述
您好,在 DOORS 中有一个模块可以满足客户的要求,但现在我收到了一个包含更新/新要求的新 PDF 文件。我能够将 PDF 文件转换为 ReqIf 并使用公司的内部工具创建一个新模块。
然后,我如何使用两个模块,根据包含两个模块上的唯一 ID 的指定属性合并为一个模块。
模块 A:
- 全局 ID 1
- 全局 ID 2
模块 B:
- 全局 ID 2 - 另一个属性中的新信息
- 全局 ID 4
模块 C (A+B):
- 全局 ID 1
- 全局 ID 2 - 另一个属性中的新信息
- 全局 ID 4
解决方案
我假设除了另一个属性中的新信息之外,两个模块之间的其余部分都是相同的。以下脚本使用新模块新信息更新当前模块
Module m = current
Object ob, ob1
ModName_ mod = module "full path of new module here"
Module m1 = read(fullName(mod), false)
for ob in m do
{
int objID = intOf(ob."Absolute Number""")
ob1 = object(objID, m1)
if(ob."Attribute Name" != ob1."Attribute Name") //If new info in another attribute
{
ob."Attribute Name" = ob1."Attribute Name"
}
}
推荐阅读
- python-3.x - 为什么这个 for 循环会给我这个错误?
- 3d - 如何在 MeshLab 中找到 3d 模型的投影面积?
- php - Wordpress the_permalink() 关闭标签?
- python - 方法的 Python 单元测试包含请求
- docker - 如何收集微服务之间的消息(总数和大小)?
- javascript - 带类选择器的 ToggleClass 和 SlideToggle
- php - 餐厅菜单按餐食类型排序
- mysql - 从另一个表中检索数据并将其插入到新表中
- r - R 闪亮的应用程序 DataTable 具有类似 excel 的过滤功能,可包含所有内容,但不包含某些元素或相反的内容
- postgresql - Postgres:如何在不影响引用它的其他 MV 的情况下更改 MV 的名称?