When you import a second Rose file, you add additional content
to the existing profile; you will update the java.epx profile in this lesson.
Before you import the RoseImportSample_custom.mdl file, you must import
the RoseImportSample.mdl file in Exercise 1.
When you import the RoseImportSample_custom.mdl file, you add additional
content to an existing profile, which causes the Rose Model Import wizard
to create a new version of the Java.epx profile.
To import the second Rose
sample model:
- Using the Rose Model Import wizard, import the RoseImportSample_custom.mdl file
into the same project that you imported the RoseImportSample.mdl file.
- Click File > Import > Other and
then double-click Rational Rose model. The Rational
Rose Model Import window opens.
- Click the source model Browse button, select
the RoseImportSample_custom.mdl file, and then click Open.
- Using the Existing project Browse button,
select the same project that you imported the RoseImportSample.mdl into,
and then click Next. The RoseImportSample_custom.mdl
file is scanned and existing profiles are verified for compatibility
with the model you are importing (as displayed in the progress bar).
- When the progress bar closes, notice that the Finish button
on the Resolve Subunits and Path map symbols page is not enabled as it was
in Exercise 1. You cannot finish the import process at this step because the
next page of the wizard displays a warning message in the header of the wizard.
Click Next to advance to the Map Property
Sets page and to view the warning message.
- On the Map Property Sets page, notice the warning message that
states, The existing profile Java.epx must have the following
elements added from the Java properties of the model: The Custom_EJB property
set stereotype is not defined. The warning message appears
because the existing Java.epx file (created when you imported RoseImportSample.mdl
in exercise 1) requires some information from the RoseImportSample_custom.mdl
file.
- On the Map Property Sets page, complete all of the following steps:
- Verify that the Import property sets as UML profiles option
is selected.
- Make sure that the Reference an existing profile option
is selected and that the filepath references the existing Java.epx file. If
the Java.epx profile is checked in to a source control system, a message window
opens indicating that the file must be checked out (after you click Finish).
- Click Finish.
The Java.epx profile is updated and saved as a new released version;
the RoseImportSample_custom.mdl is imported.