|
Re: [EDAPT] Migration validation issue [message #892886 is a reply to message #892746] |
Sun, 01 July 2012 12:15 |
Markus Herrmannsdoerfer Messages: 50 Registered: July 2009 |
Member |
|
|
Hi Romain,
can you please upload or send me the files. Then I can take a look at
your problem.
Cheers,
Markus
Am 29.06.2012 15:19, schrieb Romain Bioteau:
> Hi,
> I'm trying to follow the tutorial using Library example.
>
> I successfully create my migrator with the library.history file. The
> problem appears at the end of the migration, during the check of the
> conformance. I get the following validation error :
> The 'validContainment' constraint is violated on 'Instance of type
> "Writer"'
>
> I had a look to this validation rule and it appears that there might be
> a problem with the instance.getReferences not return all the references.
>
> Here myLibrary in version 1.0.0
>
> Tolkien Writer instance is referenced in 2 books (no containment
> references) and in library (containment reference). However in the
> validContainment rule, the call to instance.getReferences() only returns
> the two books references and as Writer is not the root instance, it fails.
>
> I don't think the changes made in the migration are involved in this, I
> just changed the Book feature name "title" to "bookTitle".
> If a someone have encounter the same issue and solve it, I'll be happy
> to know how ! If it's bug I'll be glad to fill a bugzilla.
>
> Thanks
>
> Romain.
|
|
|
|
Re: [EDAPT] Migration validation issue [message #893124 is a reply to message #893003] |
Mon, 02 July 2012 18:00 |
Markus Herrmannsdoerfer Messages: 50 Registered: July 2009 |
Member |
|
|
Hi Romain,
I just took a look at your upload. The reference Library.writers is
derived and thereby is not converted to the migration structure. As a
consequence, the containment constraint naturally fails after migration.
You made the reference derived, since you are using feature maps.
Unfortunately, at the moment, feature maps are not supported by Edapt.
However, if you really need support for feature maps, I may be able to
implement it. For your example, this does not seem to be too difficult.
However, I have not yet looked at all the possibilities that feature
maps offer. If you need feature maps, please create a CR and assign it
to my email address.
Cheers,
Markus
Am 02.07.2012 11:05, schrieb Romain Bioteau:
> Hello Markus,
>
> I attached, two files :
> My.extlibrary is the EXTLibrary instance I want to migrate which is conform to the default EXTLibrary example ecore in Eclipse.
>
> The zip file contains the new target model with .history file and new generated projects. The only I've made in the new ecore is changing the feature Book::title to Book:bookTitle.
>
> Thanks to have look to this.
>
> Romain
>
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03720 seconds