|Re: problem converting uml file to ecore and genmodel file [message #902170 is a reply to message #902162]
||Thu, 16 August 2012 08:25
| Ed Merks
Registered: July 2009
On 16/08/2012 9:56 AM, hugh hawks wrote:
> I have constructed an uml model in Papyrus within which an UML
> profile has been used,therefore,two files were generated by
> Papyrus,one called "myUMLModel.uml",and the other is
> But when convert these two uml model to ecore and genmodel,I get the
> following error:
> "Problems encountered in the model. A containment reference of a type
> with a container feature
> that requires instances to be contained elsewhere cannot be populated".
> Has anyone ever seen a problem like this or know how to fix it?
This happens when you have an object that's contained in more than one
place, but the container features declare that they're required (not
optional, lower bound 1). So no matter where you contain the object, it
will be invalid, because the other container feature will be null. So
change the lower bounds for both container features to 0.
Note you can ignore this error too. The wizard still produces a
*.genmodel and when you open it, you can turn to the Generator tab and
still use the model.
Powered by FUDForum
. Page generated in 0.05136 seconds