Replies: 2 comments 7 replies
-
Hi, @tortmayr is currently working on providing a template project for this or at least a very similar set up (nodejs, custom JSON format, VS Code integration). So if you can wait until end of next week, it should be easier to wait. Essentially, instead of extending the bind(SourceModelStorage).to(YourModelStorage);
bind(YourModelState).toSelf().inSingletonScope();
bind(ModelState).toService(YourModelState);
bind(GModelFactory).to(YourModelFactory).inSingletonScope(); Note however that this is the API as currently defined in master. The latest release diverges a bit from that (the SourceModelStorage was called |
Beta Was this translation helpful? Give feedback.
-
@planger: I have also just started a view days ago to implement my first custom implementation loading my model. In this way I think I was able to implement my custom But your binding example above is confusing me now. I have extended the public class BPMNDiagramModule extends DiagramModule {
@Override
protected Class<? extends SourceModelStorage> bindSourceModelStorage() {
return BPMNSourceModelStorage.class;
}
@Override
protected Class<? extends GModelFactory> bindGModelFactory() {
return BPMNGModelFactory.class;
}
.... I do not understand what you mean with the example code bind(SourceModelStorage).to(YourModelStorage);
bind(YourModelState).toSelf().inSingletonScope();
bind(ModelState).toService(YourModelState);
bind(GModelFactory).to(YourModelFactory).inSingletonScope(); Does this mean we should not overwrite the Also my ServerLauncher seems now complaining about the line:
The method expect now a mixinModules? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Good morning ,
i'am looking to make a custom implementation of the Workflow example (since there is no minimal example with a 'nodejs server' as opposed to the java one ) , where i'll be changing the default existing nodes into custom ones with different names and different behaviors(A only linked with C , different views etc) , while keeping all of the functionalities that already exist but I find my self being overwhelmed with the workflow example being big and having it's JSON file containing the GModel directly.
I'am basically just looking to link a json file containing my elements with the existing implementation , I have tried with the documentation but it somehow feels lacking .
I know this might seem simple so thats why it would be great if someone could guide me , thank you .
Beta Was this translation helpful? Give feedback.
All reactions