Specifying sources and targets for transformations

You can select the source model or model elements on which to run a transformation, and specify a location where the transformation generates target elements or files.

About this task

Valid sources and targets vary. Depending on the transformation, a source can be a UML model, packages or classes; target locations can be a project in your workspace, a folder in a project, a UML model file, or a specific model element in a model. Refer to the Problems view if there are errors with your transformation configuration.

To specify the source and target of a transformation:

Procedure

  1. In the navigation view, right-click a transformation configuration file; then click Open.
  2. Click the Source and Target tab.
  3. In the Selected source pane, select a valid source model or model elements for the transformation.
  4. In the Selected target pane, select a valid target location for the artifacts that the transformation generates.
    Note: To create a new target location, click Create New Target Container and complete the pages in the wizard.
  5. Click File > Save.

Results

The options are applied the next time that you run the transformation.
Note: If you create a new transformation configuration, you can specify this information on the Source and Target page of the New Transformation Configuration wizard.

Feedback