Skip to main content



      Home
Home » Eclipse Projects » Sirius » Problem When Deleting Relation Based Edge
Problem When Deleting Relation Based Edge [message #1847256] Thu, 21 October 2021 04:36 Go to next message
Eclipse UserFriend
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.

Re: Problem When Deleting Relation Based Edge [message #1847305 is a reply to message #1847256] Fri, 22 October 2021 05:46 Go to previous message
Eclipse UserFriend
Hi Hakan,

Could you please share with us your metamodel and the viewpoint specification project, or give us more information about them? This would help us to find an appropriate solution to your problem. Nevertheless, I can advise you to have a look at the use of Java services, it can be a workaround. https://www.eclipse.org/sirius/doc/specifier/general/Writing_Queries.html#service_methods

Regards
Previous Topic:Connecting Viewpoint Specification Project to Sirius Web
Next Topic:Call to Services class not working
Goto Forum:
  


Current Time: Tue May 13 14:20:05 EDT 2025

Powered by FUDForum. Page generated in 0.02970 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top