eclipse - Can't add InputPin as a Node of an Activity (Eclipse/Epsilon)
问题描述
I'm writing a model-to-model transformation at the moment. Here is a part of my ETL file:
rule process2activity
transform p : input!Process
to a : UMLOutput!Activity{
...
var ip : new UMLOutput!InputPin;
var op : new UMLOutput!OutputPin;
ip.activity = a;
op.activity = a;
...
}
When I validate my output, I get: "The opposite features 'activity' of 'Input Pin' and 'node' of 'Activity test' do not refer to each other".
The "activity" feature of my Input Pin is displayed correctly. However, the "node" feature of my Activities are empty.
What is strange though is that when I try this:
a.nodes.println();
I DO get both Pins returned. But they do not show up in the "Properties" window of my model.
Any ideas?
解决方案
没有元模型信息很难判断。似乎活动和节点是1:1的相反关系。所以op.activity = a
实际上导致activity从ip.activity关系中移除,即activity只能与一个pin相关。
推荐阅读
- python - 如何在 keras 顺序模型中获取来自未来的输出
- cypress - 在 Cypress 的 Save as 对话框中单击下载按钮后获取文件名
- c# - 在子节点使用 c# 解析 Soap XML 响应
- java - Spring Webflux - 使用Webflux webclient时不显示记录连接ID和新连接日志
- pip - 有什么方法可以使用 pip 获取没有版本信息的已安装模块?
- google-cloud-platform - 错误:无法部署资产“webhooks/ActionsOnGoogleFulfillment”
- java - 更改工具栏图标和工具提示 JavaSwing
- c# - Entity Framework Core 3.x 数据库首次设计,其中数据库设计时没有外键
- swift - 在 swift/firebase 项目中,当使用 .observe 而不是使用 SingleEvent 时,是什么导致数组可读?
- postgresql - 序列必须具有与其链接到的表相同的所有者