首页 > 解决方案 > IBM DOORS - 基于属性更新需求

问题描述

您好,在 DOORS 中有一个模块可以满足客户的要求,但现在我收到了一个包含更新/新要求的新 PDF 文件。我能够将 PDF 文件转换为 ReqIf 并使用公司的内部工具创建一个新模块。

然后,我如何使用两个模块,根据包含两个模块上的唯一 ID 的指定属性合并为一个模块。

模块 A:

模块 B:

模块 C (A+B):

标签: ibm-doors

解决方案


我假设除了另一个属性中的新信息之外,两个模块之间的其余部分都是相同的。以下脚本使用新模块新信息更新当前模块

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"
}
}

推荐阅读