|
Re: Help with Element Based Edge [message #1852677 is a reply to message #1852609] |
Tue, 31 May 2022 06:54 |
|
Your configuration seems correct, though incomplete.
You need to add:
* "Semantic Candidates Expression": an expression that returns the instances of WasAttributedTo that should be actually displayed on your diagram. It can be all of them, or just a subset based on some criterion, it really depends on what your diagram is designed to show. From your metamodel it seems these are owned by Entity, so probably somehting like "aql:theSameExpressionYouUsedForThePROV_EntityMapping.theNameOfTheContainmentReference"
* "Source Finder Expression" and "Target Finder Expression": given one instance of WasAttributedTo returned from the previous expression, how does Sirius find which elements the edge should connect? Assuming the source is the Entity and the target is the Agent, the expressions should probably be: aql:self.eContainer and aql:self.agent
Also note that an edge will actually be displayed only if the configured source and target nodes are actually displayed on the diagram. If for some reason the Agent returned by aql:self.agent does not have a corresponding instance of PROV_Agent visible, no edge will be created (it would have nowhere to point to).
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.03300 seconds