Applying Transformations During Generation

Transformation profiles can be used during model generation:


  • pre-generation transformations are applied to the source model

  • post-generation transformations are applied to the target model

During inter-model generation, it is impossible to execute both lists of transformations of the same transformation profile, because the current model is the source of generation but not the target as defined in the following example.



When you generate a model to the same type of model, you can execute both lists of transformations of the transformation profile provided you select the same extended model definition in the source and in the target model.



  1. Select Tools > Generate Model to open the Model Generation Options dialog box.
  2. Click the Details tab, and click the Enable Transformations to display the Extended Model Definitions, Pre-generation, and Post-generation tabs.
  3. Click the Extended Model Definitions tab to select the extended model definitions in which you have defined your transformations.
  4. Click the Pre-generation tab and select profiles and transformations to be applied before generation. If you deselect a profile checkbox, none of its transformations will be executed. You can drag and drop profiles to modify transformation execution order. During generation, transformations are executed in the following order:

    • The order of profiles in the pre and post generation pages

    • The order of transformations in the profile itself

    • The order in which objects are treated in the model, that is to say beginning at the model level and recursing into sub-packages



  5. Click the Post-generation tab and select profiles and transformations to be applied after generation.
  6. Click OK in the Model Generation Options dialog box.