Adding a node does not work [message #1861393] |
Tue, 10 October 2023 14:28  |
Eclipse User |
|
|
|
Hello all,
let me write it first: Thanks to the authors for the excellent Sirius!
And now I need your support. Attached is my metamodel and my definition of "Node Creation Server". Most things do work, but as a result I get the node with a red cross. What am I doing wrong?
EDIT and additional information:
According to another post "The red cross on the graphical element means the semantic element behind has been removed." In my case it means that there is no correct instance creation, right?
According to
https://eclipse.dev/sirius/doc/specifier/general/Model_Operations.html#create_instance "The reference name must correspond to a valid containment reference for the context element of the operation, otherwise the newly created object will not be properly integrated into the semantic model." So I should create the instance inside the "asset" container first and connect it to the "contains" reference or just set the "isLocatedIn" reference to the container that was clicked. Am I right on that? Unfortunately this does not work:
1. Click on a container
2. Change context to "System"
3. Create instance within the "asset" containment
4. Set the "isLocatedIn" reference to the clicked container
Why does it not work? Maybe I'm making a basic mistake somewhere. Can you help me please?
Kind regards
[Updated on: Wed, 11 October 2023 12:35] by Moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05628 seconds