Run the generation
We can now run the doc template using a sample model:
- Ensure you saved your doc template (Click File > Save in Microsoft WordŽ or OpenOffice)
- In MDWorkbench, click Run > Run...
- Select MDWorkbench in the left hand list of launch configuration types, and press New.
- Type com.sodius.mdw.samples.tutorial in the Project field.
- Click Text Template in the Main element section.
- Type tutorial.doc.DocSample in the Main element field.
- Select an input UML model:
- Click on the model parameter (first line of the Parameters section) to display the model selection dialog.
- Click Recent model.
- Select UML 2.1\XMI - product21.xmi in the Recent model tree.

- Click OK.
Click Run. The launch configuration should look like this:

MDWorkbench evaluates the doc template using the specified model and prints messages in the Console view:
[progress] Evaluation of DocSample
[progress] Reading XMI - C:\MDWorkbench\workspace\com.sodius.mdw.samples.tutorial\models\product21.xmi
[progress] Generating result.xml
[progress] Done.

Creating a launch configuration