Chapter 4 Managing Profiles


Generate a textual description of messages

You are going to generate a textual description of the messages existing in the collaboration diagram. The description should provide for each diagram in the model, the name of the message sender, the name of the message and the name of the receiver.

You generate this description using templates and generated files, because by default PowerDesigner does not provide such a feature. Templates and generated files use the PowerDesigner Generation Template Language (GTL). Generated files evaluate templates defined on metaclasses and output the evaluation result in files.

For more information on GTL, see the "Generation Reference Guide" chapter.

What template to define and where?

To generate a textual description of the collaboration diagram message, you have to define templates on the following metaclasses:

For more information on the PowerDesigner metaclasses, see the "PowerDesigner Public Metamodel" chapter.

The generated file is defined on metaclass BasePackage in order to scan the entire model, that is to say the model itself and the packages it may contain. This is to make sure that all messages in the model and its packages are described in the generated file. There will be one generated file since metaclass BasePackage has only one instance.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.