[ATL] Containment references cannot span across models [message #989468] |
Thu, 06 December 2012 10:46 |
Leonid Ripeynih Messages: 150 Registered: February 2012 |
Senior Member |
|
|
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.
|
|
|
|
|
|
|
|
|
Re: [ATL] Containment references cannot span across models [message #989963 is a reply to message #989837] |
Mon, 10 December 2012 09:42 |
Hugo Bruneliere Messages: 674 Registered: July 2009 |
Senior Member |
|
|
Hello,
Thus it seems that the current content assist version does not support auto-completion for elements coming from indirectly referred metamodels.
You could raise an ATL bug to keep track of this.
Hugo
--------------------------------------------------------
Hugo Bruneliere, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
|
|
|
Powered by
FUDForum. Page generated in 0.03911 seconds