Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMF-Xpand workflow problems(Errors when running mwe workflow)
GMF-Xpand workflow problems [message #552509] Thu, 12 August 2010 12:34 Go to next message
No real name is currently offline No real nameFriend
Messages: 3
Registered: July 2010
Junior Member
Hi all,

I'm trying to get the mindmap2csv example working from the Domain specific language toolkit book but receive errors when running the workflow.

I'm using eclipse Helios with the latest version of Xpand.

I created a new GMF-Xpand template which is:

«IMPORT 'http:///Mindmap.ecore

«DEFINE Main FOR mindmap::Map»
«FILE title + ".csv"-»
«title»
«ENDFILE»
«ENDDEFINE»

Where http:///Mindmap.ecore is the NS URI of my ecore. My .mwe workflow is:

<?xml version="1.0"?>
<workflow>
<property name="model" value="org.eclipse.gmf.examples.mindmap1/model/Map.xmi"/>
<property name="output" value="output" />

<!-- set up EMF for standalone execution -->
<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup" >
<platformUri value=".."/>

</bean>

<!-- instantiate metamodel -->
<bean id="mm" class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>

<!-- load model and store it in slot 'model' -->
<component class="org.eclipse.emf.mwe.utils.Reader">
<uri value="platform:/resource/${model}" />
<modelSlot value="model" />
</component>

<!-- generate code -->
<component class="org.eclipse.xpand2.Generator">
<metaModel idRef="mm"/>
<expand
value="mindmap2csv::Main FOR model" />
<outlet path="${output}" />
</component>

</workflow>

The error i receive is:

SEVERE: Error in Component of type org.eclipse.xpand2.Generator:
EvaluationException : No Definition 'mindmap2csv::Main for mindmap::Map' found!
[23,34] on line 1 'EXPAND mindmap2csv::Main FOR model'

The template and workflow files are in the same folder called templates and my ecore and xmi files are in a folder called model

Can anyone offer any hints?

Many thanks and Regards,

jB
Re: GMF-Xpand workflow problems [message #552803 is a reply to message #552509] Fri, 13 August 2010 15:05 Go to previous message
Siegfried Nolte is currently offline Siegfried NolteFriend
Messages: 48
Registered: August 2009
Member
Hi OAW-Folks,

I don't have an answer to this question, instead I can confirm the question. It's pretty hard to get - in my case - Xpand workflows to work. I try to migrate an OAW4 UML-example to Eclipse Galileo and to OAW5 (oaw-workflows to mwe-workflows). Well, my "architecure" has broken down completely, in other words, the mwe doesn't work. Is there a working UML-transformation workflow somewhere in the OAW's world? And no Xtext/mydsl-stuff please. Well, and yes, I already tried to get some help from the Xpand docs. Anyway, I think, an easy sample will do.

Thanks,
Siegfried



Previous Topic:Dividing root canvas into predefined compartments
Next Topic:Affixed element resizable.
Goto Forum:
  


Current Time: Tue May 28 08:47:33 GMT 2024

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

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

Back to the top