IBM Support

How to list Rational Rhapsody applied stereotypes as attributes in Rational DOORS

Question & Answer


Question

How do you list IBM Rational Rhapsody applied stereotypes as attributes in IBM Rational DOORS?

Cause

When you are using Rational DOORS and you export information from Rational Rhapsody to Rational DOORS you need to see the applied stereotypes in Rational DOORS.

Answer

To list a Rational Rhapsody stereotype in Rational DOORS, you will need to create a new type in Gateway for applied stereotypes, and also set the intermediate file to be generated for your Rational Rhapsody project.

Steps to list Rational Rhapsody stereotypes in Rational DOORS as attributes:

  1. Open your project in Rational Rhapsody, right-click on your project in the browser and select Rational Rhapsody Gateway -> Open.

  2. Select Tools -> Options inside Gateway to open the Configuration dialog.

  3. Select the 'Types' button in the left-hand pane and expand the Unified Modelling Language(UML) node in the Type Editor.

  4. Right-click on the Rational Rhapsody option and select 'Duplicate'.

  5. Expand the newly created Rhapsody1 Type node created under Project_rpy, and expand the revealed attribute node.

  6. Right-click on the Tag type and select Duplicate.

  7. Rename the tag to "AppliedStereotype" in both the Name field and in the Analysis tab, and set the Display value to Stereotype=$i.

  8. Delete the label and condition attributes, both named "name", change the value of the identifier(id) attribute to "name", and delete its value.

  9. Select the Project button in the left-hand pane and select your Project in the Project Editor.

  10. Select "Rhapsody1" in the Details tab for your project, as the type of analysis, and check the checkbox labelled "Intermediate File".

  11. Select "With stereotypes applied" from the Variable drop down options.

  12. Check the checkbox labelled "Value".

The next time you export to Rational DOORS, any elements that have an applied stereotype will have an attribute in their properties with the name "AppliedStereotype", and the value set to the name of the stereotype applied to that element.

Attached is an example Rational Rhapsody project with these settings already configured.

Disclaimer

All source code and/or binaries attached to this document are referred to here as "the Program". IBM is not providing program services of any kind for the Program. IBM is providing the Program on an "AS IS" basis without warranty of any kind. IBM WILL NOT BE LIABLE FOR ANY ACTUAL, DIRECT, SPECIAL, INCIDENTAL, OR INDIRECT DAMAGES OR FOR ANY ECONOMIC CONSEQUENTIAL DAMAGES (INCLUDING LOST PROFITS OR SAVINGS), EVEN IF IBM, OR ITS RESELLER, HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.


CapturingStereotype.zipCapturingStereotype.zip

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Integrations - IBM","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.0.3","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21659901