Skip to content

Implementing domain specific language #498

Answered by planger
jobdk asked this question in Q&A
Discussion options

You must be logged in to vote

You are on the right path!

In the simple workflow example, the GModel is loaded from a JSON file and manipulated directly. Thus, there is no mapping required from the original model source (in this case the GModel itself) and the GModel that is then sent to the client. This is just to keep the example as simple as possible.

In most of the actual GLSP-based diagram editor implementations that I'm aware of, the model source is not the GModel directly, but rather another resource, such as an EMF model or something else. In those cases, you need to do the following:

  1. Typically you want to extend the GModelState class to be able to store your custom model source in a typed way and keep a mappi…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jobdk
Comment options

You must be logged in to vote
2 replies
@planger
Comment options

@jobdk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants