Updating a mapping model after a source UML model changes

If you modify the source model of a transformation configuration, you can update the corresponding mapping model to reflect the changes. When you add model elements to the source model, you can then specify alternate file names for the files that the transformation generates for the added model elements. When you move model elements within the source model, for example from one package to another, you can update the mapping model to include the location of the moved source model elements. When you remove model elements from the source model, you can update the mapping model to reflect this change.

You must be in the Modeling perspective.
To update a mapping model after a source UML model changes:
  1. In the Model Explorer view, select the source model elements of a transformation configuration.
  2. Click Modeling > Transform > Configure Transformations.
  3. In the Configure Transformations window, from the Transformations/Configurations list, select a transformation configuration.
  4. Click the Mapping tab.
  5. On the Mapping page, click Update Mapping Model.
  6. In the Update Options window, complete one the following steps:
    • If you added elements to the source model, select the Add Artifacts for new source elements check box.
    • If you moved elements in the source model, select the Update model structure using source element structure check box
    • If you removed elements from the source model, select the Remove empty Packages and orphan Artifacts check box.
  7. Click OK.
  8. In the Update Results window, review the list of artifacts.
  9. Click OK. The mapping model is updated in the Model Explorer view.
  10. Click Close.
Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.