IBM Support

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

Technote (FAQ)


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.

Document information

More support for: Rational Rhapsody
General Information

Software version: 8.0.2, 8.0.3

Operating system(s): Linux, Windows

Reference #: 1643345

Modified date: 09 July 2013