Hello all !
I have quite the same problem here :
I need to transform an EA model to an ECore model (Eclipse EMF model).
I also tried to use UML2Exporter for oAW, but I can't get it working. In the developper's blog, it is written that the new eaapi.jar (EA 7.1, which is the version I use) doesn't work with UML2Exporter. I'm about to try using EA 7.0 trial version (if the jar is provided in the trial version...) tomorrow. I'll tell you if it works for me (I'm new to oAW)...
But without using oAW, everything works fine using XMI export (then UML import under eclipse) if I export the whole model without "full EA roundtrip" and without tagged values (I only tried with class models).
But there's still a problem concerning primitive types and java types in class attributes types :
If I use a primitive type or a java type ("int" for instance), this type is simply lost during XMI export.
The only way is to define "int", "Date", and all such types in the EA model (by defining corresponding classes).
For instance, I must define my own "Date" class, and make an attribute of this type when I need a date in a class...
Here is the result when I use an attribute with type "MyInteger" :
<packagedElement xmi:type="uml:Class" xmi:id="EAID_FA828349_0ED1_4e39_B0F9_B5B021440195" name="Class2" visibility="public">
<ownedAttribute xmi:type="uml:Property" xmi:id="EAID_24AED5DC_959E_45da_9B9F_89FB2F8E4F24" name="einttest2" visibility="private" isDerived="false" isOrdered="false">
<type xmi:idref="EAID_173CF02C_EC25_47c1_8862_529665130B13"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="EAID_LI000003_959E_45da_9B9F_89FB2F8E4F24" value="1"/>
<upperValue xmi:type="uml:LiteralInteger" xmi:id="EAID_LI000004_959E_45da_9B9F_89FB2F8E4F24" value="1"/>
</ownedAttribute>
</packagedElement>
Where "EAID_173CF02C_EC25_47c1_8862_529665130B13" (in the "type" tag) refers to the "MyInteger" class defined elsewhere in the XMI file...
To integrate this into EMF, I would need to change the line :
<type xmi:idref="EAID_173CF02C_EC25_47c1_8862_529665130B13"/>
To
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/EcorePrimitiveTypes.library.uml#EInt"/>
Which involves parsing and transforming the XMI (I don't know if a xsl stylesheet would be enough...)
But there may be another way than XMI transform to achieve this... Any clues ?
I'm wondering which one is the best : coding a XMI transform or manage to get UML2Exporter working...
Thanks in advance for your answers

(and excuse me for my poor english

)