|
Re: Feature not found exception when trying to create node [message #1850899 is a reply to message #1850701] |
Mon, 21 March 2022 17:19   |
|
Hello,
Based on the screenshot and the error, it looks like your tool is trying to add an Asset directly to a BusinessScenario instead of a ServiceDomain. My guess is that you have the node mapping for Asset at the same level as the node/container mapping for ServiceDomain so your tool has the wrong container type on execution.
If it is not the case, can you attach your odesign or a screenshot of the mappings, node creation tool and its model tasks?
Best regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Re: Feature not found exception when trying to create node [message #1850982 is a reply to message #1850954] |
Wed, 23 March 2022 21:53  |
|
Hello,
You can indeed have your node mappings with the Domain class and no "semantic candidate expression" so Sirius will look for any element of that type in the resource to display them. However, as you can see for the creation tool the containment information is missing. You can have a more complicated tool where you would select on which container the element should be created but it is easier (and recommended) to have a proper hierarchy between mappings and have semantic candidate expressions set. These expressions do not need to follow exactly the features in your metamodel, it is just a way to navigate through your model. However, if you are starting with Sirius, it is easier to start by have your mappings to reflect the metamodel containment features. Later, you can have more complex references if you want.
Best regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.02122 seconds