# Step 6: Execute Workflow aka Generate Code

Before you actually execute the workflow, or in case of errors, you can use Figure 5, “Files of this Tutorial” to double check your files.

Figure 5. Files of this Tutorial

To execute the workflow, click with your right mouse button on the workflow file and choose "Run As", "MWE Workflow" , as it is shown in the section called “Step 6: Execute Workflow aka Generate Code” .

Figure 6. Execute Workflow

When executing the workflow, this output is supposed to appear in Eclipse's Console View. If that View does not pop up automatically, you can reach it via "Window", "Show View", "Console" .

    May 25, 2009 3:09:35 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
    INFO: running workflow: /Users/meysholdt/Eclipse/workspace-3.5-M7/org.eclipse.xpand.examples.xsd.m2t.minimal/src/xsd/m2t/minimal/minimal.mwe
    May 25, 2009 3:09:35 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
    INFO:
    May 25, 2009 3:09:36 PM org.eclipse.xtend.typesystem.xsd.XSDMetaModel addSchemaFile
    INFO: Loading XSDSchema from 'xsd/m2t/minimal/metamodel.xsd'
    May 25, 2009 3:09:37 PM org.eclipse.xtend.typesystem.xsd.builder.OawXSDEcoreBuilder initEPackage
    INFO: Creating EPackage 'metamodel' from XSDSchema 'file:/.../bin/xsd/m2t/minimal/metamodel.xsd' (http://www.example.org/wizard)
    May 25, 2009 3:09:37 PM org.eclipse.emf.mwe.core.container.CompositeComponent internalInvoke
    INFO: XMLReader: Loading XML file xsd/m2t/minimal/model.xml
    May 25, 2009 3:09:37 PM org.eclipse.emf.mwe.core.container.CompositeComponent internalInvoke
    INFO: Generator: generating 'xsd::m2t::minimal::template::Root FOR model' => src-gen
    May 25, 2009 3:09:38 PM org.eclipse.xpand2.Generator invokeInternal2
    INFO: Written 1 files to outlet [default](src-gen)
    May 25, 2009 3:09:38 PM org.eclipse.emf.mwe.core.WorkflowRunner executeWorkflow
    INFO: workflow completed in 657ms!

After code generation, there is a file called `wizard.txt` within the `src-gen` folder. Its contents is supposed to look like shown below. You should be able to recognize the structure you've defined within the template file and the contents from your XML model.

    Name: My Example Setup
    Welcometext: Welcome to this little demo application.
    First Page Title: Wizard Page One