< Previous | Next >

Lesson 3: Create a transformation configuration

This lesson shows you how to create a transformation configuration. A transformation configuration specifies the information that a transformation requires to generate the expected output.

You can apply a transformation configuration to transform the specified content into different content in the target model. When the specified source is a model, the transformation interprets the elements of the source model and generates output in the specified target. In most cases, the source model remains unchanged. The transformation generates a new set of files or modifies an existing set of files.

To simplify working with the transformation configuration file, you should save the configuration file in the project that contains the source of the transformation. In this lesson, you save the transformation configuration file in the runtime workbench, in the TransformationTest project. Transformation configuration files have .tc as a file name extension.

To create a transformation configuration:

  1. In the runtime workbench, click File > New > Transformation Configuration. If Transformation Configuration is not a menu item, click File > New > Other > Transformation Configuration.
  2. In the New Transformation Configuration wizard, on the Name and Transformation page, specify the following values:
    1. In the Name field, type FirstConfiguration.
    2. From the Forward transformation list, expand Generalize_Classes and select Generalize_Classes Transform.
    3. In the Configuration file destination field, if it is not specified already, type /TransformationTest.
    4. Click Next.
  3. On the Source and Target page, specify the source model that the transformation transforms, and the target model where the transformation generates output:
    1. In the Selected source pane, click TransformationTest > Models > SourceModel.
    2. In the Selected target pane, click TransformationTest > Models > TargetModel.
  4. Click Next and accept the default values on the remaining pages in the wizard.
  5. Click Finish.
A transformation configuration file is created in the runtime workbench, in the TransformationTest project, and the transformation configuration file is displayed in the transformation configuration editor. You can now run the transformation.
< Previous | Next >

Feedback