Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Problem When Deleting Relation Based Edge
Problem When Deleting Relation Based Edge [message #1847256] Thu, 21 October 2021 08:36 Go to next message
Hakan  Yüksek is currently offline Hakan YüksekFriend
Messages: 22
Registered: October 2021
Junior Member
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 09:46 Go to previous message
Glenn Plouhinec is currently offline Glenn PlouhinecFriend
Messages: 22
Registered: April 2020
Junior Member
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


Glenn Plouhinec - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Connecting Viewpoint Specification Project to Sirius Web
Next Topic:Call to Services class not working
Goto Forum:
  


Current Time: Mon Oct 03 22:32:10 GMT 2022

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

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

Back to the top