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 Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21386084