how to link xpand in workflow file [message #519795] |
Tue, 09 March 2010 20:24  |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.17524 seconds