|
Re: Mapping of a group of instances as a node in a diagram [message #1784940 is a reply to message #1784843] |
Fri, 06 April 2018 07:32 |
|
Yann Andenmatten wrote on Wed, 04 April 2018 19:44
I thought of two options:
1. Use one of the ABRelation instances to represent the group
2. Define a derived/transient association to a "derived/transient" class to represent the grouping (hence not changing the serialization of the model)
I think in this case you can use another approach: create an Relation-Based Edge Mapping from A to B, and in the Target Finder Expression navigate through ABRelation to all the Bs accessible from A. This should create a single edge between each A and B which are connected via ABRelation.
Note that with this approach the semantic element behind the edge will be the source element, i.e. an instance of A. You can associate the ABRelation instances themselves to the edge using the Associated Semantic Elements expression in the Advanced tab of the mapping configuration. This will make the ABRelations visible in the Properties view when the edge is selected so they can be edited (if needed).
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.02997 seconds