Sirius web representationId [message #1853480] |
Mon, 04 July 2022 14:01 |
Michael C Messages: 53 Registered: April 2019 |
Member |
|
|
Hello,
I'm trying to follow the recent example from EclipseCon with the creation of a new type of representation.
I'm not sure how to set the id of the created representation.
After creating it, I have this message :
o.e.s.c.c.e.EditingContextEventProcessor : The representation with the id xxxx does not exist
I tried to set the id with createRepresentationInput.getId().toString() but it seems that theEditingContextEventProcessor is registering a different id.
[Updated on: Mon, 04 July 2022 14:02] Report message to a moderator
|
|
|
Re: Sirius web representationId [message #1853553 is a reply to message #1853480] |
Thu, 07 July 2022 14:55 |
|
It's up to each representation implementation to create the id of a new instance.
For example for diagrams it is determined here. It's a random UUID for a newly created diagram, and if its a new version/refreshed state of a previously existing diagram we reuse that.
The id associated with CreateRepresentationInput.getId() is the id of the input event itself. It is only useful as a correlation id between an input event and the payload(s) returned to the frontend.
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.03015 seconds