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

Weird/Incomplete EMF serialization of OCCI configurations #129

Open
vincent-zurczak opened this issue Jun 23, 2016 · 1 comment
Open

Weird/Incomplete EMF serialization of OCCI configurations #129

vincent-zurczak opened this issue Jun 23, 2016 · 1 comment
Assignees
Labels

Comments

@vincent-zurczak
Copy link
Member

We have made (and demonstrated) a Sirius modeler for our Roboconf extension.
This extension is defined here.

Among other things, we have defined facets and components as specialized resources.
When we drop such elements on our Sirius diagrams, they are saved as resources XML elements. Something like...

<resources xsi:type="roboconfgraph:RoboconfFacet" id="0efc24dd-5a67-4df6-998b-a58d3a3024cc" title="0efc24dd-5a67-4df6-998b-a58d3a3024cc" name="Facet 6"/>

When we validate such diagrams, we get the following error...

The required feature 'kind' of '<Configuration>::Facet 6' must be set

When we add links between our resources, the kind is set automatically.

<resources xsi:type="roboconfgraph:RoboconfComponent" id="c658608d-bf72-4fbf-92e3-966833502cfc" title="c658608d-bf72-4fbf-92e3-966833502cfc" name="MySQL" installerName="script">
    <kind href="http://schemas.ogf.org/occi/core#//@kinds[term='resource']"/>
    <attributes name="occi.core.id" value="c658608d-bf72-4fbf-92e3-966833502cfc"/>
    <attributes name="occi.core.title" value="c658608d-bf72-4fbf-92e3-966833502cfc"/>
  </resources>

Same thing if we set a new attribute's value.
But nothing with basic attributes (id, title). Given the content of the kind attribute, and given the way this extension was modelled, I would expect the EMF model to serialize everything correctly, that is to say automatically adding the occi.core.id and occi.core.title attributes, as well as setting the kind for all the resources.

Any idea about this?
This is really blocking, because it is almost impossible to create a valid diagram from an OCCI extension. I tried to compare with other modellers, but I failed to find a significant difference. Any help would be appreciated.

@vincent-zurczak
Copy link
Member Author

This problem also occurs with links.
The kind sub-element is missing in the serialization.

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

No branches or pull requests

3 participants