Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: dykebert on October 20, 2004, 07:45:58 am
-
Hi there,
I'm currently evalutating EA for our business.
When I import XMI (1.1 or 1.2) the Associations import correctly but ALL 0..* multiplicity is lost. This is true when the XMI is generated from another tool as well.
When I import XMI 1.0 generated by EA the 0..* is imported correctly.
I haven't tried all multiplicities, but 0..1, 1..1, and 1..* import just fine. It's only 0..* in XMI 1.1 or 1.2.
Looking forward to a fix.
Thanx,
Sharky
-
Hi,
Currently you can export and import a 0..* labelled multiplicity from an EA model to an EA model using XMI 1.1. I have confirmed this with tests here, so if you have a situation where this does not occur I would be very interested to know about it.
However when importing from other tools, or using XMI 1.2, you can only explicitly import 0..* if that association end has a rolename specified. However if no multiplicity is explicitly specified, then 0..* is the default in EA anyway.
To summarise: While not shown, the multiplicity is still set correctly. It will not be shown on the diagram unless you also specify the role of the association end.
CPT
-
Thanx for the quick reply.
I finally found some time to run some more tests.
And yes when I name the role, the 0..* multiplicity is correctly labled after import
You said that 0..* is the default. However when I generate a Schema from the imported model 0..1 is implemented. If the multiplicity is explicity set to 0..* then the Schema is 0..* as well.
While creating different scenarios I noticed two other issues.
1. Multiplicty of 1 is set to 0..1 during XMI 1.2 export
2. If the association has a name, the name is dropped on import.
Again all of this is EA to EA using XMI 1.2 on the export.
I've put this together in a MS Word doc that includes the graphics and the XMI. If you're interested message me with an e-mail address and I'll send it to you.
Thanx,
Sharky