IBM Support

How to create customized submenu using property files in Rational Rhapsody

Question & Answer


Question

How do you create a customized submenu in IBM Rational Rhapsody?

Cause

You are searching for a possibility to group elements inside a profile or you want to define your own submenu.

Example:

Answer

Procedure:

  1. Create a customize property file named testfile.prp to get a submenu named MySubmenu and MyTestSubmenu and its child as shown above.

    You can refer below sample code to create .prp file :-


    Subject General Metaclass Model
    Property Submenu5Name String "MySubmenu"
    Property Submenu5List String "MyTest1,MyTest2"
    Property Submenu6Name String "MyTestSubmenu"
    Property Submenu6List String "Test1,Test2"
    end
    end
    end


    // An empty file contains'end' at the end of the file

  2. Edit the properties submenuList with Submenu5 and Submenu6 as shown below:




  3. Create a profile(named MyProfile) and New Term stereotype for all the element which is given in the Submenu#List in the profile.

  4. Include property file in profile (Model::Profile::PropertyFile)

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.5;7.5.1;7.5.1.1;7.5.2;7.5.2.1;7.5.3;7.5.3.1;7.5.3.2;7.5.3.3;7.6;7.6.0.1;7.6.1;7.6.1.1;7.6.1.2;7.6.1.3;7.6.1.4;8.0;8.0.1;8.0.2;8.0.3;8.0.4","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21650901