Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » [ATL] Containment references cannot span across models (Meta-model in split in two ecore files.)
[ATL] Containment references cannot span across models [message #989468] Thu, 06 December 2012 05:46 Go to previous message
Leonid Ripeynih is currently offline Leonid Ripeynih
Messages: 42
Registered: February 2012
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.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Stack size limitation in EMF-specific VM
Next Topic:missing metdamodel
Goto Forum:
  


Current Time: Fri May 24 04:01:56 EDT 2013

Powered by FUDForum. Page generated in 0.01736 seconds