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;

-links: Link_Type [array]

-name: EString

-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.


Glenn Plouhinec - Obeo

Need training or professional services for Sirius?
Previous Topic:Connecting Viewpoint Specification Project to Sirius Web
Next Topic:Call to Services class not working
Goto Forum:

Current Time: Wed Jun 07 20:33:49 GMT 2023

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

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

Back to the top