Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » how to link xpand in workflow file(xpand, m2t, workflow)
how to link xpand in workflow file [message #519795] Wed, 10 March 2010 01:24 Go to next message
gkr  is currently offline gkr Friend
Messages: 13
Registered: March 2010
Junior Member
This is the content of workflow file I'm using to generate code from hairsalon.xmi file which contains instance of ecore model in hairdresser.ecore.

<workflow>
<property name='instanceFile' value='ass1.xmi'/>
<property name='targetDir' value='./src-gen'/>
<component class='org.openarchitectureware.emf.XmiReader'>
<modelFile value='${instanceFile}'/>
<outputSlot value='theInstance'/>
</component>
<component class='oaw.xpand2.Generator'>
<metaModel id='mm' class='org.eclipse.m2t.type.emf.EmfRegistryMetaModel'/>
<expand value='DisplayTemplate::display FOR theInstance'/>
<outlet path="${targetDir}" >
<postprocessor class="org.openarchitectureware.xpand2.output.JavaBeautifier " />
</outlet>
</component>
</workflow>


this is xpand file's content
«IMPORT metamodel»

«DEFINE display FOR hairdresser::Salon»
«FOREACH this.appointments AS e»

«ENDFOREACH»
«ENDDEFINE»

it's not fully written. I'm try to link it to workflow first

Please suggest - how can I link these two.
the name of xpand file is displaytemplate.xpt


Re: how to link xpand in workflow file [message #519832 is a reply to message #519795] Wed, 10 March 2010 06:59 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14721
Registered: July 2009
Senior Member
hi, the syntax is

<expand value='path::to::displaytemplate::display FOR theInstance'/>


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Previous Topic:Trouble getting a list of "items" of a certain type
Next Topic:[Xtend] creating an element results in a List[Object]
Goto Forum:
  


Current Time: Tue Oct 08 00:42:36 GMT 2024

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

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

Back to the top