Import model from XMI 2.1
Import model from XMI 2.1 or later. This will move the legacy of multiple users to the cloud very quickly, making GenMyModel adoption much faster. The lack of this import is an obstacle for those who have many models in another tool.
I was actually evaluating GenMyModel to make a switch from Draw.io/Visual Paradigm we currently use. I really liked the experience on most parts but a couple of things are missing at this moment.
Firstly, I wanted to achieve the functionality below (present in Draw.io):
1. Let's say I have classes like LoginPresenter, LoginInteractor, LoginView, LoginController etc in my Class Diagram following the Clean Architecture pattern
2. Now I want to follow the same pattern across various use-cases, let's say for Home Screen the classes are named HomePresenter, HomeInteractor, HomeView, HomeController etc. Now, I can copy the diagram : yes; but to rename the each class to change the prefix from Login to Home will require manual effort of clicking each class unit and renaming it. I was thinking of a functionality like a Batch Rename, so for this I was exporting the XMI, replacing the prefix using a text editor and importing it back.
Second functionality which I really require is:
When I generate code for Classes which implement an interface, the interface functions are not part of the Class files generated.
Thank you for your feedback.
Unfortunately, unlike the BPMN2 standard, the XMI standard does not include the diagram in the exchange format, only the model part is concerned.
Could you share with us your use case?
GenMyModel already includes a versioning system.
Why do you need to export and re-import from and to GenMyModel?
Feel free to contact us in private message.
I exported a test UML project I created on genMyModel to XMI, and then imported it back to check if it works, but it doesn't. The project gets created with classes but the diagram page is blank. Can you please look into this? Being exported from genMyModel and importing it here itself, I expected it to work.
GenMyModel natively supports the last UML version: 2.5 (Eclipse implementation).
Yes, please, send us the XMI files. We will have a look on them.
Frédéric Hoogstoel commented
I tried unsuccessfully to export-import via XMI a model package from modelio 3.3 to GenMyModel.
Here are the tests and results :
1 - Export sous Modelio 3.3 en EMF UML 3.0 et import sous GenMyModel avec autodetection du type de modèle source
=> Sorry, we couldn't autodetect your model type. Please select a model type to get more detailed errors.
2 - export en EMF UML 3.0 et import avec XMI-starUML comme type de modèle source
=> Failed to import model with error: Project identified by UMLPrimitiveTypes.library.uml not found
3 - export en OMG UML 2.4.1, et import en choisissant model source : XMI v2.0 - UML v2 (Eclipse)
=> Failed to import model with error: Package with uri 'http://www.omg.org/spec/UML/20110701'; not found. (, 2, 62)
4 - export en OMG UML 2.3, et export en choisissant model source : XMI v2.0 - UML v2 (Eclipse)
=> Failed to import model with error: Package with uri 'http://www.omg.org/spec/UML/20090901'; not found. (, 2, 62)
5 - export en OMG UML 2.2, et import en choisissant model source : XMI v2.0 - UML v2 (Eclipse)
=> Failed to import model with error: Package with uri 'http://schema.omg.org/spec/UML/2.2'; not found. (, 2, 62)
6 - OMG UML 2.1.1, et importée en choisissant model source : XMI v2.0 - UML v2 (Eclipse)
=> Failed to import model with error: Package with uri 'http://schema.omg.org/spec/UML/2.1.1'; not found. (, 2, 62)
I can give you the various xmi files exported by modelio. Herad is the head of OMG UML 2.1.1 XMI file generated by modelio :
<?xml version="1.0" encoding="UTF-8"?><xmi:XMI xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:default="http:///schemas/default/_JCQdkA8mEeeu9shmoOze9w/0" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://schema.omg.org/spec/UML/2.1.1" xmi:version="2.1" xsi:schemaLocation="http://www.eclipse.org/uml2/3.0.0/UML http://schema.omg.org/spec/UML/2.1.1 http:///schemas/default/_JCQdkA8mEeeu9shmoOze9w/0 default.profile.xmi#_JCTg5w8mEeeu9shmoOze9w">
<uml:Model xmi:id="_JCH6sA8mEeeu9shmoOze9w" name="circuit">
I have a problem when a tried to import a StarUml 2.7.0 file into WhiteStarUml 126.96.36.199.
I had installed xmi extension in StarUml, export xmi work fine but import in WhiteStarUml don't work. Model is not charged
Michael Faughn commented
The apparent inability of GenMyModel to import existing UML projects is what is keeping me (and my company) from giving it a real go. As far as I know, GenMyModel is the only web application that treats UML as more than pictures. We would love to have a good, collaborative web app for modeling. We use MagicDraw now and have developed several code generation plugins that seem like a natural fit for porting to use with GenMyModel but there is just no point in undertaking that work until we can move our existing projects into GenMyModel.
Even if you haven't the resources to fully implement the import of every type of diagram or element specified by XMI it might be worth taking a stab at handling just some of the most common UML features / elements. Being able to import just a basic class diagram information (packages, classifiers, properties, associations, etc....maybe stereotypes) might be enough to get us and a lot of others to really give it a try.
If you have to pick which version of XMI to use it seems the latest one that was an ISO standard
would be the best choice.
We still are working to support as much as tool XMI variations.
Are you able to send us the model?
It would be very helpful to improve our test cases.
And, you are right, we can try to send a more detailed error message when the XMI isn't recognized.
Viggo Holmstedt commented
I tried all the different versions of Visual Paradigm XMI exports in combination with all import XMI options in GenMyModel.
All I get is "An unknown exception has been encountered". I would at least appreciate a more concise error description, if I can't have a successful import.
Diogo Castro commented
From the Dashboard, you can select "Projects" from the left sidebar -> click on the green ARROW next to the "New Project" button at the top -> select "Import project". On the new screen, select "XMI v2.0" as the model source.
Doug Scott commented
I agree. GenMyModel is a great tool, but to be able to exchange models both ways with other tools via XMI is critical. XMI is a standards-compliant exchange medium.
sorry but without XMI import, the project is pee ing in the wind.
Kevin Godden commented
I also find that feature essential.
What is the status of this idea? Is there any improvement? It would be interested to import UML model as well.