Papyrus Banner

Introduction

This tool is providing a way to migrate profiled model from a profile version V1 to the same profile version V2. This tool try to make the most part of the migration automatically but in some case it is necessary that the user make a choice.

How to use it

Run the migration

If the Profile migration tool is selected in preferences (see Configuration, to run the migration, you just have to open the profiled model which have to be migrated. The following pop-up will appear, then you just have to select one or many profiles you want to migrate and click on "OK".

Pop-up asking which profile the user want to migrate

Since the tool is base on the comparison of the old version of the model and the new one, the tool will ask you to select the file corresponding to the profile before modifications (pop-up in the following image). Then the tool will start the migration and if necessary ask you to make some choice.

Pop-up asking which profile the user want to migrate

Migration actions

The tool will determine some actions of migration according to differences between the two version of the profile. Some of this actions will be manage automatically for example: when the isUnique feature of a property is set to true then the Profile Migration Tool will delete every duplicated values in each slot corresponding to this property. However, some action can't be done without choices of the user.

In the following lines you will see each case where the tool will ask you to do something.

Pop-up replace abstract Stereotype

Pop-up initialize new property value

Pop-up replace a deleted enumeration literal

Pop-up replace every slot corresponding to the static property by the same value

Pop-up apply the profile owning the moved stereotype

Pop-up add or remove values to match with the new multiplicity

Note: note that for each pop-up display you free to tick the box "do not show this pop-up again". You can still display it again by using preferences (see Configuration)

Configuration

To configure the profile migration tool there is two interesting preference pages.

The first one is the Profile Application preference page (which can be find under Papyrus preference group), this property allow you to choose the tool you want to use, to run our tool you have to select Profile migration tool (like in the following screenshot).

Preference page to select the Profile application tool

The second interesting preference page is named "Profile Migration Tool", and it can be find under Papyrus/Profile Application group.

Preference page for the profile migration tool

This page allow you to do:

  1. You can choose if you want or not display the pop-up in different situations. For example you can choose to not display the pop-up when there was a stereotype which has been moved into an unapply profile. If you decide to not display some pop-up then default actions will be done instead. Default actions are described bellow:
  2. During the execution, the program keep in cache files you select for the migration. If you made twice the same migration the tool will not ask you again to select the file corresponding to the profile before modifications. However if you really need to change the file it is used, you can remove cached files in this preference page.

Video

A quick video can be found on the Papyrus' Youtube channel right here showcasing the use of the current iteration of the Profile Migration Tool.