Problem When Deleting Relation Based Edge [message #1847256] |
Thu, 21 October 2021 04:36  |
Eclipse User |
|
|
|
Hi everyone, I am new at learning Eclipse Sirius, I have a problem when trying to delete an edge which is a relation based edge.
First of all, My Model like this;
Node1:
-links: Link_Type [array]
Node2:
-name: EString
Link_Type:
-otherNode: Node2
-link_no: EInt
I can create an edge with relation based edge. There is no problem when creation. But I have no idea how to delete an edge. I am trying to delete like this;
Relation Based Edge---->
--------------------------
source mapping: node1
target mapping: node2
target finder expression: aql:self.links.otherNode
------------------------------------------------------------------------------
Section Tools:
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Create Edge--->
--------------------------
change context: var: source
------>create Instance Model::Link_Type
------------------> set target:
------------------------------------> feature name:otherNode
------------------------------------> value expression: var:target
Delete Element--->
--------------------------
change context: var: element
------> unset links
------------------------> Feature name: links
------------------------> Element Expression: aql: self.links
When I am trying to delete, it deletes all of the links for the Node1,
How can I delete the selected edge and the relation?
aql: self.links->at ( index)---> how can I access the attributes of the selected edge? If I can access the attributes, may be I can use this function.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02970 seconds