【问题标题】:Anyway to debug Quicklink UML Profile in Sparx Enterprise Architect?无论如何要在 Sparx Enterprise Architect 中调试 Quicklink UML 配置文件?
【发布时间】:2015-02-26 18:35:51
【问题描述】:

我正在尝试创建一个“快速链接”文档来自定义元素之间允许的连接器类型。我们的 UML Profile 已经存在,如下所示:

这里是大版本:http://i.stack.imgur.com/kcKQT.png

这作为 MDG 技术导入就好了。

但是,当我将“快速链接”文档添加到配置文件并将其作为 MDG 技术导入时,我收到错误“遇到不正确的参数”。熟悉 Sparx EA 中的 MDG Technologies 的人都知道,没有任何关于它失败原因的日志记录。不幸的是,文档同样没有帮助。

这是我的快速链接文档:

//Source Element Type,Source Stereotype Filter,Target Element Type,Target Stereotype Filter,Diagram Filter,New Element Type,New Element Stereotype,New Link Type,New Link Stereotype,New Link Direction,New Link Caption,New Link & Element Caption,Create Link,Create Element,Disallow Self Connector,Exclusive Stereotype Filter + No Inherit from Metatype,Menu Group,Complexity Level,Target Must be Parent,Embed Element,Precedes Separator LEAF,Precedes Separator GROUP,Dummy Column,
Feature,ChiFeature,Requirement,ChiRequirement,,,,Realization,,to,satisfies,,TRUE,,TRUE,TRUE,Requirement,0,,,,,,

我的问题是,我有什么方法可以找出快速链接文档无效的原因。或者,是否有经验更丰富的人可以看到这个问题?

【问题讨论】:

  • 在文本编辑器中打开您的配置文件 XML 文件并查找行 。引号内的文字是否看起来像您上面引用的快速链接文档,如果不是,有什么区别?

标签: enterprise-architect


【解决方案1】:

回答你的第一个问题:不,恐怕不是。正如您所注意到的,EA 在调试扩展时不是很友好。

很高兴,我发现了问题:您的列太多了。您没有在末尾填写一个虚拟值,而是添加了一个额外的逗号,这意味着一个额外的列。用 0 替换它,你应该没问题。 (另外,当然,注释行的末尾也不应该有逗号。)

所以试试

//Source Element Type,Source Stereotype Filter,Target Element Type,Target Stereotype Filter,Diagram Filter,New Element Type,New Element Stereotype,New Link Type,New Link Stereotype,New Link Direction,New Link Caption,New Link & Element Caption,Create Link,Create Element,Disallow Self Connector,Exclusive Stereotype Filter + No Inherit from Metatype,Menu Group,Complexity Level,Target Must be Parent,Embed Element,Precedes Separator LEAF,Precedes Separator GROUP,Dummy Column
Feature,ChiFeature,Requirement,ChiRequirement,,,,Realization,,to,satisfies,,TRUE,,TRUE,TRUE,Requirement,0,,,,,0

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-10
    • 1970-01-01
    • 2012-09-16
    • 1970-01-01
    相关资源
    最近更新 更多