【问题标题】:IBM DOORS - Update requirements based on attributeIBM DOORS - 基于属性更新需求
【发布时间】:2021-03-15 10:52:45
【问题描述】:

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

然后我怎样才能将两个模块合并为一个基于指定属性的模块,该属性包含两个模块上的唯一 ID。

模块 A:

  • 全局 ID 1
  • 全局 ID 2

模块 B:

  • 全局 ID 2 - 另一个属性中的新信息
  • 全局 ID 4

模块 C (A+B):

  • 全局 ID 1
  • 全局 ID 2 - 另一个属性中的新信息
  • 全局 ID 4

【问题讨论】:

    标签: ibm-doors


    【解决方案1】:

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

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

    【讨论】:

    • 新信息在对象文本和/或标题上。
    【解决方案2】:

    我根据你的评论修改了脚本

    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."Object Heading" != ob1."Object Heading") || (ob."Object Text" != ob1."Object Text"))
    {
    ob."Object Heading" = ob1."Object Heading"
    ob."Object Text" = ob1."Object Text"
    }
    }
    

    【讨论】:

      猜你喜欢
      • 2021-01-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多