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:
- In the runtime workbench, click . If Transformation Configuration is
not a menu item, click .
- In the New Transformation Configuration wizard,
on the Name and Transformation page, specify the following values:
- In the Name field, type FirstConfiguration.
- From the Forward transformation list,
expand Generalize_Classes and select Generalize_Classes
Transform.
- In the Configuration file destination field,
if it is not specified already, type /TransformationTest.
- Click Next.
- On the Source and Target page, specify the source model that the
transformation transforms, and the target model where the transformation generates
output:
- In the Selected source pane, click .
- In the Selected target pane, click .
- Click Next and accept the default values
on the remaining pages in the wizard.
- 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.