Skip to content

Serializing the model diagram as XML #526

Answered by planger
IngaleAbhishek asked this question in General
Discussion options

You must be logged in to vote

Hi,

You would have to overwrite the registered Model Source Loader and Save Action Handler (which is bound in the super class of the linked method).

Please be aware that the usual approach is as follows:
You have a source model, whatever that is in your use case, e.g. a XML.
You load that in the Model Source Loader implementation and put it into the Model State.
In your registered implementation of the GModelFactory, this source model is translated at runtime into a GModel that represents the diagram to be rendered. This GModel is sent from the server to the client and will be rendered there.
When diagram editor users perform a change operation, your operation handlers on the server are i…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tortmayr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants