Run the generation

We can now run the doc template using a sample model:

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

    4. Click OK.

  8. 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.

Related tasks
Creating a launch configuration