Transforming models that contain cross-references

When you transform a model that contains a reference to another model, and if you plan to transform the referenced model as well, you can transform the two models at the same time. If you transform the models at the same time, the references in the output model point to the new output version of the referenced model.

About this task

Do not use this procedure if you want the referenced model to remain unchanged; for example, when the referenced model is a UML library that defines common types, or a UML profile that defines UML extensions. In these cases you want the original references to propagate unchanged to the generated output model.

To transform multiple models at the same time:

Procedure

  1. In the Project Explorer view, right-click a transformation configuration file; then click Open. The transformation configuration file opens in the transformation configuration editor.
  2. On the Source and Target page of the editor, select a pair of source and target models as the primary models.
  3. On the Auxiliary Transformation Sources and Targets page of the editor, specify the other pairs of source and target models.
  4. To run the transformations, on the Main page of the editor, click Run. The transformation creates updated cross-model references in the target models.

Feedback