PowerDesigner supports the definition and maintenance of an enterprise data dictionary in a CDM. A data dictionary defines the data items, entities and attributes of the enterprise, and by managing it in a CDM and linking it (through generation or through the mapping editor) with your data and other models, you can ensure consistency of use and benefit from sophisticated impact analysis and "where used" reporting.
Some examples of entities are Customer, Product, Order. When you create entities, a symbol for each one will be created in the CDM diagram. While such a graphical representation is not strictly necessary for the purposes of creating a data dictionary, you may find this diagram useful to help you visualize the content and structure of business concepts.
For more information about defining entities, see Entities (CDM/LDM).
Create a new attribute by reusing an existing data item by clicking the Reuse Data Item tool and selecting the data item that you want to reuse. By default, PowerDesigner allows you to reuse a data item for more than one entity attribute so that, for example, you can define a Zip Code data item once, and reuse it in whatever entities contain addresses. If you then update the data item, your changes will simultaneously cascade down to all the entity attributes that use it. This is a great way to enforce consistency throughout the data dictionary model.
You can also create data items in this list by clicking the Insert a Row or Add a Row tool to add a new line in the list and entering an appropriate name. PowerDesigner will create the attribute and an associated data item. You can also create a new attribute by creating a copy of an existing data item. Click the Add Data Item tool and select the data item that you want to copy. Any changes made through this attribute or directly to this copy of the data item will only affect this attribute and no others.
Generation - If you have no existing PDM, you can generate a new model from your data dictionary. Click Generate new... option, and specify a name for the model to generate. Click the Selection tab and select the concepts you want to generate to the new model, and then click OK.
You can review the links created between the data dictionary and your other models in the Generation Links Viewer (select ).
You can regenerate whenever necessary to propagate updates or additions in the data dictionary to your other models. The Merge Models dialog (see
Chapter 7, Comparing and Merging Models in the Core Features Guide
) will appear, which lets you review and approve (or reject) the changes that will be propagated from the data dictionary to the model.
For detailed information about generating models, see Generating Other Models from a Data Model.
Mapping Editor - If you have an existing PDM or other model it may be more appropriate to map your data dictionary concepts to your PDM objects using the Mapping Editor, which provides a finer degree of control and a simple drag and drop interface.
Open the model containing the objects you want to link with your data dictionary and select Data Source field, select Conceptual Model in the Model type list, and click Next. Select your data dictionary CDM and click Next. Select the Create default mapping option to instruct PowerDesigner to auto-create mappings where possible based on shared names, and click Finish to open your model and the data dictionary in the Mapping Editor:
You can create additional mappings as necessary by dragging and dropping entities and attributes from the data dictionary onto objects in the target model. Note that mappings created in this way will not automatically propagate changes.
For detailed information about using the Mapping Editor, see Chapter 12, Object Mappings in the Core Features Guide .
To launch an impact analysis, select one or more objects in a diagram or the Browser and select
You can edit the rule sets used to control the analysis and manually adjust the tree view by right-clicking items. Once the analysis view contains the level of detail you want, click the Generate Diagram button to create an impact analysis diagram. This diagram, which can be saved and compared to other impact analysis snapshots, shows the connections that link your dictionary concepts through intermediate objects and models to the physical objects that implement them, providing a graphical "where used" report:
The diagram helps you plan the implementation of a change, as everything defined in the diagram will require further assessment to ensure the change does not invalidate any specific work we have done at the implementation level.
For detailed information about working with impact analysis, see Chapter 13, Impact and Lineage Analysis in the Core Features Guide .