Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » BPEL 2 XML using ATL
BPEL 2 XML using ATL [message #882024] Tue, 05 June 2012 16:44
nemaetf@gmail.com nema is currently offline nemaetf@gmail.com nema
Messages: 1
Registered: June 2012
Junior Member
Hello,

I'm trying to establish a transformation between BPEL to XML.
I have two metamodels:

- bpel.ecore
- XML.ecore

The ATL code is:

module BPEL2XML;  
create OUT : XML from IN : BPEL; 

rule Process2Root{
	
	from
	  s : BPEL!Process 
	to
	  	t : XML!Root( 
	  	 name <- 'process', 
	  	 children <- Sequence{xmlns, name, tgnsp, s.partnerLinks, 
	  	                s.variables, s.scopeElementActivity} 
	  	 ), 
	  	xmlns : XML!Attribute( 
	  	name <- 'xmlns', 
	  	value <- 'Z'
	  	),  
	  	name : XML!Attribute( 
	  	 name <- 'name', 
	  	 value <- s.name ), 
	  	tgnsp : XML!Attribute( 
	 	  name <- 'targetNamespace', 
		   value <- s.targetNameSpace 
	  	) 
	do 
		{
		s.debug('bpel2xml applied');
		}
}



However, no transformation is done and I get errors like this:

Metamodel contains several classifiers with same name: ecore::EByte
Metamodel contains several classifiers with same name: EByteArray
Metamodel contains several classifiers with same name: ecore::EByteArray
Metamodel contains several classifiers with same name: EByteObject
Metamodel contains several classifiers with same name: ecore::EByteObject
Metamodel contains several classifiers with same name: EChar
Metamodel contains several classifiers with same name: ecore::EChar
Metamodel contains several classifiers with same name: ECharacterObject
Metamodel contains several classifiers with same name: ecore::ECharacterObject
Metamodel contains several classifiers with same name: EDate
Metamodel contains several classifiers with same name: ecore::EDate
Metamodel contains several classifiers with same name: EDiagnosticChain
Metamodel contains several classifiers with same name: ecore::EDiagnosticChain
Metamodel contains several classifiers with same name: EDouble
Metamodel contains several classifiers with same name: ecore::EDouble
Metamodel contains several classifiers with same name: EDoubleObject
Metamodel contains several classifiers with same name: ecore::EDoubleObject
Metamodel contains several classifiers with same name: EEList
Metamodel contains several classifiers with same name: ecore::EEList
Metamodel contains several classifiers with same name: EEnumerator
Metamodel contains several classifiers with same name: ecore::EEnumerator
Metamodel contains several classifiers with same name: EFeatureMap
Metamodel contains several classifiers with same name: ecore::EFeatureMap
Metamodel contains several classifiers with same name: EFeatureMapEntry
Metamodel contains several classifiers with same name: ecore::EFeatureMapEntry
Metamodel contains several classifiers with same name: EFloat
Metamodel contains several classifiers with same name: ecore::EFloat
Metamodel contains several classifiers with same name: EFloatObject
Metamodel contains several classifiers with same name: ecore::EFloatObject
Metamodel contains several classifiers with same name: EInt
Metamodel contains several classifiers with same name: ecore::EInt
Metamodel contains several classifiers with same name: EIntegerObject
Metamodel contains several classifiers with same name: ecore::EIntegerObject
Metamodel contains several classifiers with same name: EJavaClass
Metamodel contains several classifiers with same name: ecore::EJavaClass
Metamodel contains several classifiers with same name: EJavaObject
Metamodel contains several classifiers with same name: ecore::EJavaObject
Metamodel contains several classifiers with same name: ELong
Metamodel contains several classifiers with same name: ecore::ELong
Metamodel contains several classifiers with same name: ELongObject
Metamodel contains several classifiers with same name: ecore::ELongObject
Metamodel contains several classifiers with same name: EMap
Metamodel contains several classifiers with same name: ecore::EMap
Metamodel contains several classifiers with same name: EResource
Metamodel contains several classifiers with same name: ecore::EResource
Metamodel contains several classifiers with same name: EResourceSet
Metamodel contains several classifiers with same name: ecore::EResourceSet
Metamodel contains several classifiers with same name: EShort
Metamodel contains several classifiers with same name: ecore::EShort
Metamodel contains several classifiers with same name: EShortObject
Metamodel contains several classifiers with same name: ecore::EShortObject
Metamodel contains several classifiers with same name: EString
Metamodel contains several classifiers with same name: ecore::EString
Metamodel contains several classifiers with same name: ETreeIterator
Metamodel contains several classifiers with same name: ecore::ETreeIterator
Metamodel contains several classifiers with same name: EInvocationTargetException
Metamodel contains several classifiers with same name: ecore::EInvocationTargetException
Metamodel contains several classifiers with same name: Import
Metamodel contains several classifiers with same name: ExtensibleElement


Thx in advance for your help.

[Updated on: Tue, 05 June 2012 16:50]

Report message to a moderator

Previous Topic:Ecore 2 Ecore using ATL ->output java objects
Next Topic:How to improve my ATL transformation
Goto Forum:
  


Current Time: Sun Sep 21 02:18:07 GMT 2014

Powered by FUDForum. Page generated in 0.01992 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software