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

OCCI extension (occie) to ecore #53

Closed
mehdiAhmed opened this issue Mar 9, 2016 · 4 comments
Closed

OCCI extension (occie) to ecore #53

mehdiAhmed opened this issue Mar 9, 2016 · 4 comments
Assignees

Comments

@mehdiAhmed
Copy link
Contributor

Hello,

After generating OCCI extension (extension.occie) following new -> Cloud Designer -> OCCI extension Project, I don't have the possibility to generate extension.ecore from extension.occie. Even if I use
Cloud Designer -> Generate EMF Tooling.

I'm using Eclipse Mars.1 in Ubuntu 14.04 LTS.

@philippemerle philippemerle self-assigned this Mar 9, 2016
@philippemerle
Copy link
Member

Hi Mehdi,

I ran the latest cloud designer.
I created an OCCI extension following new -> Cloud Designer -> OCCI extension
I run Cloud Designer -> Generate EMF Tooling.
extension.ecore and extension.genmodel are generated.
I have tested various cases and it always worked.
Expect one case that failed: if the extension has an empty scheme then the generator produces an exception :(

So check that your extension has a correct scheme, e.g., http://extension#

@philippemerle
Copy link
Member

Need to add a new OCL constraint checking that scheme are well-formed, e.g., not empty string, well-formed URI, etc.
This requires to update the OCCI metamodel, i.e., module https://github.com/occiware/ecore/tree/master/clouddesigner/org.occiware.clouddesigner.occi/

@mehdiAhmed
Copy link
Contributor Author

Thanks Philippe,

My scheme is not empty.
<occi:Extension xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:occi="http://schemas.ogf.org/occi" name="simulation" scheme="http://occiware.org/simulation#">
And Generate EMF Tooling does not work. Maybe there are a bug in Studio for Linux !

@philippemerle
Copy link
Member

Hi Mehdi,
I tried to generate Ecore for your simulation.occie then I saw that this extension violates OCL constraints related to Category.scheme. Then I corrected schemes (see commits ce18779).
Now I could generate the .ecore for your simulation.occie.
Coud you try too?

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

No branches or pull requests

2 participants