Run the transformation

We can now run the ruleset using a sample model:

  1. Click Run > Run Configurations...
  2. Select MDWorkbench in the left hand list of launch configuration types, and press New.
  3. Type com.sodius.mdw.samples.tutorial in the Project field.
  4. Click Rule in the Main element section.
  5. Type tutorial.uml2relational.UML2Relational.main in the Main element field.
     
  6. Select an input UML model:
    1. Click on the source 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.

  7. Select an output Relational model:
    1. Click on the target parameter (second line of the Parameters section) to display the model selection dialog.
    2. Click New model.
    3. Select Relational\XMI 2.1 in the Model writer tree.

    4. Click Browse Workspace...
    5. Select a file com.sodius.mdw.samples.tutorial\models\result.xmi and Click OK.

  8. Click Run. The launch configuration should look like this:

MDWorkbench evaluates the ruleset using the specified models and prints messages in the Console view:

[progress] Evaluation of UML2Relational.main
[progress] Reading XMI - C:\MDWorkbench\workspace\com.sodius.mdw.samples.tutorial\models\product21.xmi
[progress] Writing XMI 2.1 - C:\MDWorkbench\workspace\com.sodius.mdw.samples.tutorial\models\result.xmi
[progress] Done.

Related tasks
Creating a launch configuration