Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EDAPT] Migration validation issue
[EDAPT] Migration validation issue [message #892746] Fri, 29 June 2012 09:19 Go to previous message
Romain Bioteau is currently offline Romain Bioteau
Messages: 59
Registered: August 2009
Location: Grenoble
Member
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
http://uploadpad.com/files/libraryExample.png

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.


R&D Engineer at BonitaSoft
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:[Teneo] HbHelper.INSTANCE.deRegisterDataStore
Next Topic:[Texo] My template overrides are not being used
Goto Forum:
  


Current Time: Tue May 21 10:45:31 EDT 2013

Powered by FUDForum. Page generated in 0.04730 seconds