About mapping models

When you run a UML transformation, it assigns default file names to the files and folders that it generates. You can specify alternate file names for any of the files and folders that a transformation generates by creating a mapping model.

To create a mapping model, you must select the source model elements on which you want to run a transformation. When you generate a mapping model, a separate model is created that contains an artifact for each element that you select in the source model. A manifestation relationship exists between each created artifact and its corresponding element in the source model.

The transformation assigns a default name to each artifact that refers to and has the same name as the corresponding source model element. The file name property of each artifact remains empty until you specify an alternate name by specifying one in a mapping model. If you specify an alternate file name for a folder such as a UML package element, the change affects all resources that the transformation generates in that folder.

When you update a mapping model, the file name property of each artifact in the mapping model is updated. The alternate file names that you specify in a mapping model are applied to the elements that a transformation generates the next time that you run a transformation by using a mapping model.

You must create a mapping model in the same workspace and project as the selected model elements.

Related tasks
Specifying alternate file names for the transformation output
Creating and editing transformation mapping models
Selecting a mapping model
Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.