Chapter 6 Managing Models


Applying transformations on demand

Transformations can also be applied on demand in your model as a sort of design pattern. You can design a pattern using the transformation feature and "play" it in your model in order to modify objects.

For example, if you are working in an OOM, you can create a transformation that converts all analysis classes with the <<control>> stereotype into components in order to add an implementation layer to your model.

Note   Post-Generation Transformations only
You can only invoke post-generation transformations on demand.

There are two methods for applying transformations on demand in a model:

Steps To use the Apply Transformations window:

  1. Add one or more extended model definitions containing post-generation transformations to your model
  2. Select Tools→Apply Transformations to open the Apply Transformations window.
  3. Select transformations profiles and transformations on the Transformations tab.
  4. [optional] Click the Selection tab and deselect any objects that you want to exclude from the transformation.
  5. Click OK to apply the transformations.

 


Copyright (C) 2007. Sybase Inc. All rights reserved.