RE: Trying to import XMI 1.2/ UML 1.4 from Visual Paradigm
"Rus, Vasile" <[email protected]>
| Newsgroups | gmane.comp.lang.uml.argouml.user |
|---|---|
| Message-ID | <8C6D613869DD8248808AE655BDE6A61C01F409BD@tmav500a.ww011.siemens.net> |
Hi, First of all thanks for your effort. I tried both your suggestions but the result was: XMI format error : org.argouml.model.XmiException: javax.jmi.xmi.MalformedXMIException: org.netbeans.lib.jmi.util.DebugException: Invalid sub-element: UML:StateMachine I also tried to change the kind to a join and junction - to have a valid kind, but with the same error as above. Then I replaced in VP all the graphical symbols for Final state with a regular state which I called Final. And exported again but this time I get: XMI format error : org.argouml.model.XmiException: javax.jmi.xmi.MalformedXMIException: javax.jmi.reflect.TypeMismatchException So I don't know what else to try. Related to version, the XMI header says: <?xml version="1.0" encoding="UTF-8"?> <XMI xmi.version="1.2" xmlns:UML="org.omg/UML/1.4"> <XMI.header> <XMI.documentation> <XMI.exporter>Visual Paradigm for UML</XMI.exporter> <XMI.exporterVersion>5.1</XMI.exporterVersion> </XMI.documentation> <XMI.metamodel xmi.name="UML" xmi.version="1.4"/> </XMI.header> Best wishes, Vasile RUS -----Original Message----- From: Tom Morris [mailto:[email protected]] Sent: Wednesday, April 11, 2007 10:28 PM To: [email protected] Subject: RE: [argouml-users] Trying to import XMI 1.2/ UML 1.4 from Visual Paradigm > I'm trying to import XMI 1.2/ UML 1.4 from Visual Paradigm ... I'm using Argo > Error creating literal 'pk_final'. > Probably invalid literal name for enumeration PseudostateKind > I tried to find 'pk_final' with a text search in the XMI file, but it's not there. Try looking for just "final" or look for the PseudostateKinds. Are you sure this is a UML 1.4 file? The valid kinds for this enumeration are choice, deepHistory, fork, initial, join, junction, and shallowHistory, so it doesn't sound like you've got a valid UML 1.4 file. To preserve the semantics you may have to do some non-trivial editing to convert from a Pseudostate with kind="final" to a FinalState which is likely what's intended, but you could try just changing the metaclass name from "Pseudostate" to "FinalState" and deleting the "kind" attribute. That might be enough to sneak it through. Tom --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]