IBM Support

How to get Attribute declaration generated in Interface Header of Rational Rhapsody

Question & Answer


Question

How do you get Attribute or FlowProperty declaration generated in Interface Header of IBM Rational Rhapsody code?

Cause

If an Attribute or FlowProperty exists under an Interface then there would be no declaration of it in the Rational Rhapsody generated code. The reason being that an Interface is an Abstract type of Class which cannot be instantiated.

Answer

If you would like the declaration of Attribute or FlowProperty to be present in the Interface header in the code then you must create a FlowSpecification under the Interface and then have Attribute or FlowProperty under it

This would create FlowSpecification as a Class under Interface and the declaration of Attribute or FlowProperty would be present under it.

Note: If you have created a similar model in Rational Rhapsody v7.6.x or earlier then you would notice that there is a Attribute declaration in the Interface header file (This has now been enhanced as per the Coding standards). If you wish to reuse those models in Rhapsody 8.0.x then you will still get the Attribute or FlowProperty declared as they are protected with Backward Compatibility profiles.

[{"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":"8.0.2;8.0.3","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21643345