Home » Modeling » UML2 » Problem to load Rose model
|Re: Problem to load Rose model [message #1689724 is a reply to message #1689585]
||Tue, 24 March 2015 07:33
| Ed Merks
Registered: July 2009
I'd need some more details and would point out that Rose itself is way,
way, way past end of life. Such problems are often encountered as a
result of trying to load Rose cross model references.
On 23/03/2015 10:56 PM, Christian W. Damus wrote:
> This is a question for the EMF newsgroup (copied in this reply).
> Hopefully somebody there can help, but they will probably need more
> specifics of your situation, such as what particular errors are reported.
> On 2015-03-23 21:12:55 +0000, lami P said:
>> I have problems to create an EMF model from the rose model (.mdl),
>> there occur loads of errors . "Problems were encountered processing
>> the Rose model"
>> Hopefully someone can help me please, thanks in advance
Professional Support: https://www.macromodeling.com/
|Re: Problem to load Rose model [message #1689981 is a reply to message #1689599]
||Tue, 24 March 2015 19:53
|| Christian Damus
Registered: July 2009
I think many of these are real problems that indicate that your source
Rose model is not sufficiently specified to generate a valid Ecore model
(by the way, are you importing from Rose to Ecore or to UML?)
On 2015-03-23 22:47:35 +0000, lami P said:
> Hi, when i load the rose model , this error appears "Problems were
> encountered processing the Rose model"
> with the following details:
> Duplicate 'classifierMap' reference in 'Classifier' will be discarded
> Duplicate 'featureMap' reference in 'Feature' will be discarded
These indicate that the classes (Classifier, Feature) somehow define
the same reference property more than once, probably by inheriting
properties of the same name from multiple superclasses.
Java does not support repeated features, so neither does Ecore.
Possibly this is harmless if the features would have the same
semantics, but it may indicate a problem in the source model.
> Data type not set for 'Any' so 'java.lang.String' will be used
> Data type not set for 'Float' so 'java.lang.String' will be used
Ecore needs to know what Java type an EDataType in the source model
represents so that it can generate complete and correct code. This is
specified in an Ecore EDataType by setting its instanceClassName
attribute. I don't know how the Rose importer infers EDataTypes from
Rose models, so I can't help any further with this (I don't even know
whether Rose distinguishes DataTypes from Classes).
> Duplicate 'responsibleParty' reference in 'Contact' will be discarded
> Duplicate 'component' reference in 'DeployedComponent' will be discarded
> Duplicate 'set' reference in 'AttributeAssignement' will be discarded
cf. earlier remarks
> Container relation must have multiplicity upper bound 1; reference
> 'categoryMap' -> 'taxonomy'
The run-time object graphs modelled by Ecore are strictly
tree-structured: an object can have at most one container. The Rose
model has a composite association where the composing end has a
multiplicity greater than one, which implies multiple owners. Ecore
does not support that.
> Data type not set for 'Double' so 'java.lang.String' will be used
> Duplicate 'renderedObject' reference in 'RenderedObjectSet' will be discarded
> Duplicate 'renderedObject' reference in 'Rendering' will be discarded
> Duplicate 'description' attribute in 'ExternalEvent' will be discarded
> thanks for help
|Re: Problem to load Rose model [message #1690067 is a reply to message #1689981]
||Tue, 24 March 2015 23:05
| lami P
Registered: November 2014
to Christian W. DamusFriend,|
I import the Rose model to Ecore.
My general aim is to extend the CWM (Common Warehouse Metamodel) metamodel , so i import its Rose model (.mdl that i found in the OMG group) to ecore , when i load the model i find the errors displayed before, but i have always the possibility to pass to the next step.
In this case, i generate the .ecore, .genmodel, .edit and .editor and i can also creat instances of that model, but when i validate the .ecore, lot of errors appear and some relations between model instances are missing
As you said, i think that the errors are comming from the Rose model (which dates from 2003 !!)
i hope to find an alternative
|Re: Problem to load Rose model [message #1690097 is a reply to message #1690067]
||Wed, 25 March 2015 09:08
| Ed Willink
Registered: July 2009
Early OMG models predated good modeling tools and so the models often
vary from bad to dreadful.
e.g. UML 2.5 is the first version with fewer than a couple of hundred
OCL itself does not have useable models available from OMG; the QVT 1.2
models are perhaps the best.
Within OMG there has occasionally been discussion about moving from MOF
to Ecore in order to exploit the more coherent tooling.
Today, the implementer of a specification generally should expect to do
significant work with old 'official' models and probably use a certain
amount of common sense to resolve difficulties.
So your Rose problems may well be down to questionable models that were
never exposed to the increasingly strong validation checks that EMF now
On 24/03/2015 23:05, lami P wrote:
> to Christian W. DamusFriend,
> I import the Rose model to Ecore.
> My general aim is to extend the CWM (Common Warehouse Metamodel)
> metamodel , so i import its Rose model (.mdl that i found in the OMG
> group) to ecore , when i load the model i find the errors displayed
> before, but i have always the possibility to pass to the next step.
> In this case, i generate the .ecore, .genmodel, .edit and .editor and
> i can also creat instances of that model, but when i validate the
> .ecore, lot of errors appear and some relations between model
> instances are missing
> As you said, i think that the errors are comming from the Rose model
> (which dates from 2003 !!)
> i hope to find an alternative
Current Time: Sat Jun 25 15:19:58 GMT 2022
Powered by FUDForum
. Page generated in 0.02220 seconds