Chapter 6 Managing Models
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
Inter model generation
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.
Model to model generation
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.
To select transformations for generation:
- Select Tools→Generate Model to open the Model Generation Options dialog box.
- Click the Details tab, and click the Enable Transformations to display the Extended Model Definitions, Pre-generation, and Post-generation tabs.
- Click the Extended Model Definitions tab to select the extended model definitions in which you have defined your transformations.
- 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
- Click the Post-generation tab and select profiles and transformations to be applied after generation.
- Click OK in the Model Generation Options dialog box.
Copyright (C) 2007. Sybase Inc. All rights reserved.
|
|