Skip to main content



      Home
Home » Eclipse Projects » Sirius » How to difference elements in some diagrams under the same model
How to difference elements in some diagrams under the same model [message #1765612] Mon, 12 June 2017 15:21 Go to next message
Eclipse UserFriend
Hi,

I have an Archimate model with strategy elements, This element could have some representations based in the same odesign diagram. The representations has Stakeholders in the palette and I need the diagrams -representations - to be different and has their own instance elements. I think that my problem is on the stakeholder semantic candidates expression.


When the strategy element has two or more representation, all the representations looks at the same because they paint all the stakeholder elements inside the strategy element. How can I "put this elements within the diagram in which the stakeholders were created" like the attached image shows viewpoint for cu and viewpoint for cu2. I try using [diagram.diagramElements/] on stakeholder semantic candidates expression but I have no idea how to differentiate the diagrams inside the element.

index.php/fa/29617/0/
The attached image shows my problem with strategy element cu2 and the two viewpoints that shows the same stakeholder.

Now my candidate expression is feature:elements to make difference between all strategy elements instances and do not create the same stakeholder for all strategy element.

Is my problem a semantic candidate expression trouble? Do you have a acceleo 3 tutorial link in which I can learn? or book i can buy?


Thank you so much for your help.

Lina
Re: How to difference elements in some diagrams under the same model [message #1765675 is a reply to message #1765612] Tue, 13 June 2017 04:58 Go to previous message
Eclipse UserFriend
Hi,

I do not understand what you mean by "put this elements within the diagram in which the stakeholders were created". I may be wrong, but from what I understand it seems you may need to use Unsynchronized mappings (see the paragraph named "Synchronization" in https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#graphical_elements), and then control explicity the creation and deletion of the graphical views on your various diagrams (see the "Create View" and "Delete View" operations: https://www.eclipse.org/sirius/doc/specifier/general/Model_Operations.html#representations). By default Sirius will make sure the state of a diagram matches the state of the underlying semantic model. If you create two instances of the same diagram definition on the same semantic element, they will always show the same content (ignoring the layout/styling information). If this is not what you want, you need to use unsynchronized mappings (where Sirius will not automatically create graphical elements for each matching semantic element), and create those yourself by invoking "Create View" operations in your tools.

Regarding Acceleo, I don't think your issues are related to that. Anyway, the documentation is accessible from https://wiki.eclipse.org/Acceleo. Note that we now recommend to use AQL instead of Acceleo (https://www.eclipse.org/sirius/doc/specifier/general/Writing_Queries.html#aql): it is syntactically similar, but much better adapted to Sirius (and much more lightweight and faster in this context). There are no books on either, nor on Sirius itself, but we (Obeo) offer training (see https://www.obeodesigner.com/en/services).

Regards,
Pierre-Charles David
Previous Topic:A node instance doesnt appear on the canvas of a second representation
Next Topic:links between two nodes
Goto Forum:
  


Current Time: Thu Nov 06 15:17:36 EST 2025

Powered by FUDForum. Page generated in 0.03153 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top