Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Stephane W.

Pages: [1]
1
Uml Process / Re: conversion EA Models to uml format
« on: April 22, 2008, 09:14:05 pm »
I tried to use oAW with the old eaapi.jar, but I still get the same problem :
ERROR WorkflowRunner - Package [...] not found in model!
I tried using a lot of package paths, but no one works.
I know you already told that this forum is not an oAW forum, so I won't discuss this problem further.

Concerning the other method : changing the XMI export for attribute types.
Can you tell me a simple way to achieve this using EA, or give me some piece of advice ?
Maybe I should open a new thread to discuss this ?
Thanks in advance  :)

2
Uml Process / Re: conversion EA Models to uml format
« on: April 22, 2008, 03:46:40 am »
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" :
Code: [Select]
<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 :
Code: [Select]
<type xmi:idref="EAID_173CF02C_EC25_47c1_8862_529665130B13"/>To
Code: [Select]
<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  :-[)

3
Automation Interface, Add-Ins and Tools / Re: Class template
« on: May 20, 2008, 02:27:11 am »
I have the same issue...
There doesn't seem to be a way to extend something involving two template parameters.
For instance, if I generalize a class with a template, I can't realize an interface with another template parameter. The opposite is also true...
Can someone help us please ?

Pages: [1]