Chapter 4 Managing Profiles


Defining Transformations in a Profile

In PowerDesigner, a transformation defines a set of actions to be executed during generation or upon request. You define a transformation in the profile category of an extended model definition, either on a metaclass or on a selected stereotype or criterion. Transformations have to be inserted in a transformation profile to be used during model generation or applied in a model.

For more information on transformation profiles, see the "Transformation profile category" section in the "Extended Model Definitions Reference Guide" chapter.

You define a transformation:

When you need a utility that modifies objects in a model In order to adapt the model to special needs. For example, you can create a transformation in an OOM that converts <<control>> classes into components

or

When you need a way to modify an object and be able to undo this modification You can create one transformation to perform one task and another transformation to undo this task. This feature can be very useful during round trip engineering. Suppose you generate a PDM from an OOM in order to create O/R mapping. If the source OOM contains components, you can create transformations that convert classes from components in order to easily generate and map tables in a PDM. However, when you update the source OOM from the generated PDM, you can use another transformation that will automatically regenerate the components from the classes

 


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