Enterprise Architect 中的包验证不会警告部署规范实例部署到节点或设备
Package Validation in Enterprise Architect does not warn about Deployment Specification Instance deployments to Nodes or Devices
我对 Enterprise Architect 中的包验证有疑问。根据 UML Specification v2.5.1 部分 19.2.3 "Semantics" 第 3 段:
DeploymentSpecifications can only be associated with DeploymentTargets that are
ExecutionEnvironments
但是,当我通过 Deployment Connector
将 Deployment Specification Instance
连接到 Node
或 Device
时,如下图所示 ...
...当我调用 Validate Current Package
:
时没有出现警告或错误
我启用了 Model Validation Configuration
对话框中的所有选项:
问题
- 如何在 Enterprise Architect 中强制执行该行为以仅生成符合标准的 UML?
- 或者如果不符合 UML 标准,我至少如何才能得到警告结果?
EA 中的标准验证规则仅验证一组有限的 UML 语法规则。
您可以将此报告为 bug,并让 Sparx 添加此规则,但您需要耐心等待。
作为替代方案,您可以编写可由标准模型验证执行的 own validation rules。这将需要您为每个规则编写加载项和验证代码。
或者您可以使用我们开发的开源 validation framework,您可以在其中使用 SQL 查询定义规则。
我对 Enterprise Architect 中的包验证有疑问。根据 UML Specification v2.5.1 部分 19.2.3 "Semantics" 第 3 段:
DeploymentSpecifications can only be associated with DeploymentTargets that are ExecutionEnvironments
但是,当我通过 Deployment Connector
将 Deployment Specification Instance
连接到 Node
或 Device
时,如下图所示 ...
...当我调用 Validate Current Package
:
我启用了 Model Validation Configuration
对话框中的所有选项:
问题
- 如何在 Enterprise Architect 中强制执行该行为以仅生成符合标准的 UML?
- 或者如果不符合 UML 标准,我至少如何才能得到警告结果?
EA 中的标准验证规则仅验证一组有限的 UML 语法规则。
您可以将此报告为 bug,并让 Sparx 添加此规则,但您需要耐心等待。
作为替代方案,您可以编写可由标准模型验证执行的 own validation rules。这将需要您为每个规则编写加载项和验证代码。
或者您可以使用我们开发的开源 validation framework,您可以在其中使用 SQL 查询定义规则。