Skip to main content



      Home
Home » Eclipse Projects » Sirius » Subnode of Container(How to set relation, without relation edge)
Subnode of Container [message #1786856] Mon, 14 May 2018 06:55 Go to next message
Eclipse UserFriend
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 08:26 Go to previous message
Eclipse UserFriend
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
Previous Topic:How to increment an id feature automatically
Next Topic:How to integrate Sirius with Acceleo
Goto Forum:
  


Current Time: Fri Jul 04 19:24:11 EDT 2025

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

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

Back to the top