IBM Support

Cannot reorder attributes or operations in a Rhapsody model

Troubleshooting


Problem

IBM Rational Rhapsody will not allow me to reorder attributes or operations. I receive the following message: "Class_X is mapped to a component file. Changing order of its descendants will not have any effect on generated code.

Cause

The class in question is mapped to a Source Artifact file.

Resolving The Problem

Typically the class in question is mapped to Source Artifact files. Source Artifact files are generated for classes during reverse engineering or when a "Roundtrip for Selected Classes" is chosen. When present, Source Artifact files will control code generation for the class in question. They force Rhapsody to "respect" the order of the generated code within the Source Artifact files. By default they are not visible in the Browser. To view these files choose "View" - "Browser Display options" - "Show Source Artifacts". So, when a user has the "Enable Ordering" feature turned on and attempts to reorder some attributes or operations, the user receives the error stated above.

The solution here is to simply delete the Source Artifact files associated with the class and the "Enable Ordering" feature will now work.

[{"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.4;7.4.0.1;7.5;7.5.0.1;7.5.1;7.5.1.1;7.5.2;7.5.2.1;7.5.3","Edition":"All Editions","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21386084