Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [Xtend] Workflow interrupted(Workflow interrupted (Couldn't find extension))
[Xtend] Workflow interrupted [message #533135] Wed, 12 May 2010 11:26 Go to next message
Pete_W is currently offline Pete_WFriend
Messages: 3
Registered: May 2010
Junior Member
Hello,

I'm new to oaw.
I am trying to get a simple model to model transformation running but i get an exception in the workflow.

What is wrong with the following workflow?

<workflow>
  
	<bean class="org.eclipse.xtend.typesystem.uml2.Setup" standardUML2Setup="true"/>

	<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup" >
		<!--<registerGeneratedEPackage value="org.eclipse.uml2.uml.UMLPackage"/>--> 
		<platformUri value="../"/>
	</bean>
	

	
	<component class="org.eclipse.xtend.typesystem.xsd.XMLReader">
		<modelSlot value="modelInTEST"/>
		<uri value="${oaw.dokumodel}"/>				
 		<metaModel id="testDoku"
      		class="org.eclipse.xtend.typesystem.xsd.XSDMetaModel">
      		<schemaFile value="metamodel/TESTDoku.xsd" />
      		<registerPackagesGlobally value="true" />
    	</metaModel> 
	</component>
	<component class="org.eclipse.xtend.XtendComponent">
		<metaModel id="mm.emf" class="org.eclipse.xtend.typesystem.emf.EmfMetaModel">
			<metaModelPackage value="org.eclipse.emf.ecore.EcorePackage"/>
		</metaModel>
		<metaModel id="mm.UML2" class="org.eclipse.xtend.typesystem.uml2.UML2MetaModel"/> 
		<metaModel idRef="testDoku">
    	</metaModel> 
		
		<globalVarDef name="nsUriPrefix" value="'http://www.test.de/testdoku'"/> 
   	  	<invoke value="template::ecore2uml::transform(modelInTEST)"/>	   
	   <outputSlot value="uml2Model"/>
	</component>


 </workflow>


Exception:
0    INFO  WorkflowRunner     - --------------------------------------------------------------------------------------
16   INFO  WorkflowRunner     - EMF Modeling Workflow Engine 0.7.2, Build v200908120417
16   INFO  WorkflowRunner     - (c) 2005-2009 openarchitectureware.org and contributors
16   INFO  WorkflowRunner     - --------------------------------------------------------------------------------------
16   INFO  WorkflowRunner     - running workflow: D:/EigeneDaten/workspace2/testdoku-transformer/src/workflow/generate.mwe
16   INFO  WorkflowRunner     - 
1407 INFO  StandaloneSetup    - Registering platform uri 'D:\EigeneDaten\workspace2'
1438 INFO  XSDMetaModel       - Loading XSDSchema from 'metamodel/TESTDoku.xsd'
2578 INFO  OawXSDEcoreBuilder - Creating EPackage 'testDoku' from XSDSchema 'file:/.../bin/metamodel/TestDoku.xsd' (http://www.test.de/testdoku)
2657 WARN  OawXSDEcoreBuilder - Name Conflict: Created EAttribute 'rootTable1', EReference 'rootTable' is in the way. Container:/EPackage'testDoku'/EClass'TLockObject'
2703 INFO  XSDMetaModel       - Registering EPackage 'testDoku' (http://www.test.de/testdoku) globally.
2703 INFO  CompositeComponent - XMLReader: Loading XML file D:\temp\Testdaten_UML.testdoku
2766 INFO  OawEcoreBuilder    - Already loaded EPackage requested. Namespace:http://www.test.de/testdoku
24079 INFO  CompositeComponent - XtendComponent: executing 'template::ecore2uml'
24407 ERROR AbstractExpressionsUsingWorkflowComponent - Error in Component  of type org.eclipse.xtend.XtendComponent: 
	EvaluationException : Couldn't find extension 'transform(type::AnyType)'!
	nofile[0,26] on line 1 'transform(modelInTEST)'

24407 ERROR WorkflowRunner     - Workflow interrupted. Reason: Couldn't find extension 'transform(type::AnyType)'!
24407 ERROR WorkflowRunner     - [ERROR]: Couldn't find extension 'transform(type::AnyType)'!(Element: transformiere(modelInTEST); Reported by: XtendComponent: executing 'template::ecore2uml')


Re: [Xtend] Workflow interrupted [message #533139 is a reply to message #533135] Wed, 12 May 2010 11:39 Go to previous messageGo to next message
MaximeLecourt  is currently offline MaximeLecourt Friend
Messages: 108
Registered: February 2010
Location: France
Senior Member
Error seems not be in the workflow, but in your template.

EvaluationException : Couldn't find extension 'transform(type::AnyType)'!

As I read it, you have a template/ecore2uml.xpt file
and in that file, the workflow is searching for a transform(type::AnyType) template.

And as the workflow doesn't find it, it stops.

Can you post the beginning of your ecore2uml.xpt file ?


One day I shall master M2T, but that day has yet to come...
Re: [Xtend] Workflow interrupted [message #533142 is a reply to message #533139] Wed, 12 May 2010 11:56 Go to previous messageGo to next message
Pete_W is currently offline Pete_WFriend
Messages: 3
Registered: May 2010
Junior Member

Here is the template:


import testDoku; //(Model defined)

create uml::Model this transform(Model model):
	this.setName(getModelName())-> 
	setXmiId(getModelName(),this)->
	applyProfile(this, getUMLStandardProfileName())->....
	
Re: [Xtend] Workflow interrupted [message #533151 is a reply to message #533142] Wed, 12 May 2010 12:43 Go to previous message
MaximeLecourt  is currently offline MaximeLecourt Friend
Messages: 108
Registered: February 2010
Location: France
Senior Member
Pete_W wrote on Wed, 12 May 2010 13:56

import testDoku; //(Model defined)

create uml::Model this transform(Model model):



I don't think you need the "this" (in fact I don't understand what it is).
For Model model, the Model is in testDoku ?
In that case, you should write testDoku::Model, especially as I see that you have a Model class in your uml metamodel.

Something I didn't see in your workflow at first, if it's complete, you will do your m2m transformation, but you don't save the results anywhere. Did you post your complete workflow ?


One day I shall master M2T, but that day has yet to come...
Previous Topic:[QVTo] How to resolve eProxyURI
Next Topic:how can I explore .xmi files othther than text editor
Goto Forum:
  


Current Time: Thu Mar 28 22:31:51 GMT 2024

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

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

Back to the top