【问题标题】:how to link from one module to another using DXL in DOORs?如何在 DOOR 中使用 DXL 从一个模块链接到另一个模块?
【发布时间】:2015-04-01 12:16:13
【问题描述】:

我必须链接两个模块: 例如:我在模块“A”中有一些信息,模块“B”中的信息类似于模块“A”和模块“C”具有相同的信息。现在,“A”到“B”和“B”到“C”之间存在链接。目标是将“C”链接到“A”。

【问题讨论】:

  • 这个问题太笼统了。您使用的是哪种编程语言?
  • 您是否试图将 C 中的单个对象链接到 A 中的单个对象?或者您是否尝试通过模块 C 并将所有对象链接到 A 中的相应对象?另外,如果您已经有从 A 到 B 和 B 到 C 的链接,那么将 C 链接到 A 有什么意义呢?您无需额外的链接集即可显示可追溯性。

标签: ibm-doors


【解决方案1】:

创建指向驻留在不同模块中的DOORS对象的链接与创建指向相同模块的对象的链接没有区别。您只需从模块中检索对象句柄。

考虑一下:

Object sourceObj = ... // you already have this object handle
Object targetObj = null
const string targetModuleName = "/my/DOORS/module"

// open the module
Module mod = edit(targetModuleName, true, false)
if (null(mod)) ack("Error!")

// now it depends on how you can identify your target object
for targetObj in mod do {
    // example: if the object identifier matches ...
    if (... == identifier(targetObj)) {
       sourceObj -> targetObj
       break
    }
}

此外,请查看 this question,Steve 也在其中解释了这种情况。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-02-14
    • 2016-08-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多