This technote explains how you can create a template that will allow you to display the alias information of a UML Classifier (eg class) in your IBM® Rational® SoDA template report.
The is no command in the Rational Software Architect domain of SoDA to display the alias information of a UML Classifier such as a Class, Use Case etc. In a UML Model, the Alias property is found in the Advanced drawer of Properties view of a classifier.
The attached model and template gives you an example of displaying the alias information can be achieved.
The following template extract shows that the information is stored at the Annotation level of the classifier.
OPEN RSA_Model, a RSA Model
DISPLAY RSA_Model.Name
REPEAT Classifier, a Classifier, using RSA_Model.OwnedElement
REPEAT EAnnotation, a EAnnotation, using Classifier.Annotations
REPEAT EStringToStringMapEntry, a EStringToStringMapEntry, using EAnnotation.Details
DISPLAY EStringToStringMapEntry.Key
|
[{"Product":{"code":"SSCLKU","label":"Rational Software Modeler"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Integrations: IBM","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.0.0.1;7.0.0.2;7.0.0.3;7.0.0.4;7.0.5;7.0.5.1;7.0.5.2;7.0.5.3;7.5;7.5.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SS4JCV","label":"Rational Software Architect for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Integrations: IBM","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.5;7.5.1","Edition":"","Line of Business":{"code":"LOB15","label":"Integration"}},{"Product":{"code":"SS4JE2","label":"Rational Software Architect Standard Edition"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Integrations: IBM","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.5;7.5.1","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}},{"Product":{"code":"SSJP3D","label":"Rational Systems Developer"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Integrations: IBM","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.0;7.0.0.1;7.0.0.2;7.0.0.3;7.0.0.4;7.0.5;7.0.5.1;7.0.5.2;7.0.5.3","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}},{"Product":{"code":"SSSHLQ","label":"Rational SoDA"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":" ","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.0.1.1;7.0.1.2;7.0.1.3;7.0.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]