IBM Support

Why do some GUIDs sometime change when you generate new code in Rational Rhapsody

Question & Answer


Question

When generating new code in IBM Rational Rhapsody, why do some GUIDs in the repository files (such as package files) sometimes change?

Cause

A GUID is a unique identifier of a Rhapsody element. Changing the GUID mainly occurs for auto generated functions like constructors, destructors, set/get functions. When displaying these functions in the Rhapsody browser, they are added and saved with the package file.

Generating new code removes all auto generated functions (and their GUIDs) first and then regenerates them which can cause different GUIDs.

When using textual diff tools, you see these changes. When using the Rhapsody Diff/Merge tool, these changed GUIDs are not displayed.

Answer

If you have difficulties with GUID changes in your configuration management system, it is recommended to switch off the property CG::CGGeneral::GeneratedCodeInBrowser before code generation, saving the model and check in to the config management tool.

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"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;7.6.1.5;8.0;8.0.1;8.0.2;8.0.3;8.0.4;8.0.5;8.0.6;8.1;8.1.1;8.1.2;8.1.2.1;8.1.3;8.1.4;8.1.5;8.2;8.2.1;8.3","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21616764