IBM Support

How to make Rhapsody user profile override model property on project level

Question & Answer


Question

How do you make IBM Rational Rhapsody user profile to override model property on project level?

Cause

It is a good practice to introduce profiles into the model to manage common overridden properties; however, the overridden properties in the profile will not take effect on project level due to the limitation.

For example, property CG::General::IncrementalCodeGenAcrossSession is used to switch on/off incremental code generation between sessions and it is required to be set on project level; however, overriding CG::General::IncrementalCodeGenAcrossSession on profile will not take effect as expected because the property on project level is still set as the default value.

Answer

You can associate an additional property file with the profile by using Model::Profile::PropertyFile property in order to make the overridden CG::General::IncrementalCodeGenAcrossSession property take effect on project level as well.

Procedure:

  1. Create a property file (ex. proLevel.prp) with below info added.

  2. Add a profile (ex. userProfile) in the model and set the proLevel.prp path info into property Model::Profile::PropertyFile against userProfile.

  3. Save and reload the model.

  4. Check CG::General::IncrementalCodeGenAcrossSession on project level and the value should be overridden as "unchecked".

[{"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"},{"code":"PF016","label":"Linux"}],"Version":"7.5;7.5.0.1;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

swg21649512