Transformation Profiles (Profile)

A transformation profile groups transformations together, and makes them available during model generation or by selecting Tools > Apply Transformations.

  1. [if the Transformation Profiles category is not present] Right-click the root node, select Add Items, select Transformation Profiles, and click OK to create this folder.
  2. Right click the Transformation Profiles folder, and select New to create a transformation profile.
  3. Enter the following properties as appropriate:

    Property

    Description

    Name / Comment

    Specify the name of the transformation profile and provide an explanation of what it is intended to do.

    Model Type / Family / Subfamily

    [optional] Specify the type of model with which the transformation profile can be used during generation and (if the type supports a language definition file) the family and subfamily. If one or more of these fields is completed, the profile will only be displayed if the model to be generated conforms to them. For example, if you define the transformation in a PDM or PDM extension and specify Object-Oriented Model and Java, then the profile will only be available when you select to generate the PDM into a Java OOM.

  4. Click the Pre-generation tab and click the Add Transformations tool to add transformations to perform prior to generation.
    These transformations are executed before generation on the objects in your source model. If objects are created by these transformations then they are automatically added to the list of objects to be generated. Any changes to existing objects or new objects created by these transformations are reversed after generation, so that your model returns to its previous state.
  5. Click the Post-generation tab and click the Add Transformations tool to add transformations to perform after generation. Transformations added on this tab are also made available to apply outside of the context of a generation by selecting Tools > Apply Transformations.
    These transformations are executed on the objects generated in your target model.
  6. Click Apply to save your changes.