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