Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sintefmod java code needs to link comp and channel to node #11

Open
sdalgard opened this issue May 5, 2015 · 3 comments
Open

sintefmod java code needs to link comp and channel to node #11

sdalgard opened this issue May 5, 2015 · 3 comments
Assignees

Comments

@sdalgard
Copy link
Contributor

sdalgard commented May 5, 2015

When pulling model from sintefboard the components and channels are visible in the library on the left side of the Kevoree Web Editor. It is not possible to drag-n-drop those components onto the sintefboard node. This was demonstrated on the project meeting at SINTEF. Maxime told me that the model build by sintefmod java code was incomplete. I need input to get further.

@maxleiko
Copy link
Contributor

maxleiko commented May 5, 2015

Kevoree DeployUnit can have meta-data called filters which is a map of key:value
For every platform we agreed on a convention that requires your DeployUnit to target one (or more) platform. For instance, the kevoree-js model generator always add:

var type = factory.createValue();
type.name = 'platform';
type.value = 'javascript';
deployUnit.addFilters(type);

So each DeployUnit targetting kevoree-js has a filter value of platform:javascript.
Same goes for Java with platform:java

What you want to do is to add your own platform filter to your DeployUnit.
The problem is that you do not have DeployUnit because you do not have any code for your components/nodes/channels.
Therefore, you might want to add DeployUnit for every TypeDefinition created by the sintefmodcomponent and set something like platform:sintefmod as filter.

I also need to add the possibilty to set those DeployUnit filters using the Yeoman kevoree-model generator

@maxleiko
Copy link
Contributor

maxleiko commented May 5, 2015

I am currently working on the new feature to allow you to set a filter for your DeployUnit in Yeoman kevoree-model generator

@maxleiko
Copy link
Contributor

maxleiko commented May 5, 2015

You can update generator-kevoree-model to v1.1.0 by running:

npm i -g generator-kevoree-model@latest

This new version will prompt for DeployUnit & DeployUnit filters. It will also save the JSON model using the given TypeDefinition and Version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants