|
|
|
Re: How To Use The Element Based Edge Creation Tool [message #1833651 is a reply to message #1833180] |
Tue, 20 October 2020 11:45   |
|
Hello,
In an element based edge creation tool, you usually need a Create Instance model operation. The reference Name is the name of the containing EReference where the new element will be placed. This means that the Create Instance needs to be in the proper context with a Change Context operation if nedded (usually using the viriable var:source).
The variable name is just an identifier that can be used in sub model operation. For instance, under your Create Instance model operation, you may want to had a Set operation to set the name or the target of the reference you are creating. If in these sub operation you need to reference the newly created element, you then can use the defined variable name (var:instance by default).
Best regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Re: How To Use The Element Based Edge Creation Tool [message #1848518 is a reply to message #1848513] |
Mon, 06 December 2021 18:01   |
|
Hi Tim,
In your Edge Mapping definition, I think that you need to fix two expressions:
- your semantic candidate expression: I do not see the definition of the parent of your Edge Mapping (the Diagram Description) but I guess its "Domain Class" is the MetaClass that contains your "Project" EClass. Therefore, your expression misses "one level of containment" and should probably be "aql:projects.versionRelation" (or "feature:eAllContents" but it can be less performant).
- you still need to fill the source finder expression otherwise Sirius will not know from which source your reference should be starting. In your case it would just be "feature:eContainer".
Your edge creation tool looks good to me.
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.02711 seconds