| [EDAPT] Migration validation issue [message #892746] |
Fri, 29 June 2012 09:19  |
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

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
|
|
|