Reverse-engineering multiple iterations

You might want to model external code for referencing without regenerating it. However, the external code might change and the external element is updated according to the changes in the code.

About this task

To accomplish this external code reverse engineering task, you must do the following sets of steps.

Setting up your model

Procedure

  1. Complete the steps in the Reverse-engineering external elements procedure to create a new external model (for example, ExternalModel).
  2. Save your model, then close it.
  3. Open a new, development model.
  4. Choose File > Add to Model, then select the external model. Select As Reference and select all the top-most packages and the component (ExternalModel). The elements are imported as read-only (RO).
  5. Create a dependency with a «Usage» stereotype to the ExternalModel.

Synchronizing the code changes

Procedure

  1. Open the external model.
  2. Update the reverse engineering options as needed to include the code modifications (such as including new folders), and then click Import.
  3. Close the external model.
  4. Open the development model.
  5. Update the model according to the changes in the external model:
    1. Remove references to elements deleted from the external model.
    2. Update references to renamed elements from the external model (they become unresolved).
    3. New elements are added to the model.

Feedback