Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Subnode of Container(How to set relation, without relation edge)
Subnode of Container [message #1786856] Mon, 14 May 2018 10:55 Go to next message
Andreas Buchner is currently offline Andreas BuchnerFriend
Messages: 47
Registered: August 2017
Member
index.php/fa/32812/0/

Hi,

I can drop a Sub(Node) and a Main (Container) on the Platform and connect them with a relation edge, so the program knows, that the Sub is a child of the Main Container.

index.php/fa/32811/0/

I would like to drop the "createSub" directly in the Container and by doing that, have the relation clarified, without needing to connect them with the edge.

is that possible?
Re: Subnode of Container [message #1786857 is a reply to message #1786856] Mon, 14 May 2018 12:26 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
Hello,

In your Node Creation Tool "createSub" you will need to add a conditions on the "container" variable type, if the "container" variable is a MainTitle (container.oclIsKindOf(MainTitle) then in the CreateInstance operation the reference name will be "subtitles".
Are you sure about the part where you can create subtitles on your platform and then connect them on a MainTitle? That leaves you with a step where a subtitle as no main title and force you to handle the container type when creating a subtitles.
It would be simpler if the node mapping for Subtitles would be only contained in a MainTitle. Furthermore, do you really need a difference between MainTitle and Subtitle? If you only have a Title concept that is self contained it is even easier to set both the container mapping and the container creation tool.

Regards,
Steve


Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:How to increment an id feature automatically
Next Topic:How to integrate Sirius with Acceleo
Goto Forum:
  


Current Time: Fri Mar 29 01:05:24 GMT 2024

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

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

Back to the top