|
Re: Edge creation tool not working [message #1750780 is a reply to message #1750777] |
Wed, 28 December 2016 16:21 |
|
Hi,
From the screenshot it looks like the tool definition is *almost* right, except for one point: as mentioned in the documentation, the operations executed by your tool will start in the context of the semantic element of the source of the new edge. That's where your "Create Instance" operation will be executed, and it will probably be either an Entity or an Attribute. Sirius will try to attach the newly created element in that element, using the "Reference Name" you configured, "relationships". Neither Entity nor Attribute defines such a relationship, so the new instance can not be attached.
The solution is probably just to wrap your "Create Instance" operation inside a "Change Context" which navigates to the enclosing "EntityRelationShip" element first, as this is the one defining the "relationships" containment reference and this is where the new instance must be attached.
Regards,
Pierre-Charles David
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.03809 seconds