[ATL] Containment references cannot span across models [message #989468] |
Thu, 06 December 2012 05:46  |
Eclipse User |
|
|
|
Hi!
I've run into a problem using ATL:
I have a source meta-model (UML), and my target meta-model. Meta model is basically split into two: a common part, used by other models, and one of the concrete models.
Here is failing rule.
lazy rule createConetnt {
from
clazz: UML!Class
to
ds: Desc!ContentElem (
table1 <- thisModule.contentTable(clazz.name),
nestedFieldset <- thisModule.createNestedFieldSet(clazz),
table <- UML!Association.allInstances() -> select(
acc | acc.endType.first().name.endsWith(clazz.name)
)
)
}
rule createTableFromAssociation {
from
ass: UML!Association
to
table: FieldSet!TableElem (
id <- ass.endType.first().name,
desc <- ass.endType.first().name,
type <- ass.endType.first().name
)
}
It's falinig setting table with:
Cannot set feature table to value [org.eclipse.emf.ecore.impl.DynamicEObjectImpl@4a31a39e (eClass: org.eclipse.emf.ecore.impl.EClassImpl@7cf1f9d3 (name: TableElem) (instanceClassName: null) (abstract: false, interface: false))], containment references cannot span across models.
Both nestedFieldset and table feature type belongs to the 'common' metamodel. Is there any way to solve it? I hope it's a common problem, becouse keeping everything in one (very) doesn't looks like very good idea. Thanks in advance.
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.30148 seconds