Installing the examples

To use the MDWorkbench samples:

  1. Install a sample.
  2. Run it.
  3. Inspect the evaluation output.

Install a sample

  1. Click Help > Welcome.
  2. Click Samples.
  3. Click one of the available MDWorkbench samples (e.g. Java Generation).
  4. In the sample wizard, type the name of a project where to install the sample in the Project name field.
  5. Select the metamodel to use in the Metamodel combo-box.
  6. Click Finish.

Run a sample

  1. Open the sample main ruleset (e.g. com.sodius.mdw.samples.java.JavaGeneration).
  2. Create a launch configuration for this ruleset.
  3. Fill-in the execution parameters of the main rule:
    1. Click the in model parameter.
    2. In the model selection dialog, select the XMI connector.
    3. Click Browse workspace...
    4. Select an XMI file in the folder models of the sample project (e.g. models\product13.xmi).
    5. Click OK.
    6. If the rule expects an out model, repeat these steps to select an output location.
  4. Click Run.

Related tasks
Creating a launch configuration