Customizing and Extending Powerdesigner SAP Powerdesigner Documentation Collection Company
Total Page:16
File Type:pdf, Size:1020Kb
USER GUIDE | PUBLIC SAP PowerDesigner Document Version: 16.7.00 – 2020-04-03 Customizing and Extending PowerDesigner SAP PowerDesigner Documentation Collection company. All rights reserved. All rights company. affiliate THE BEST RUN 2020 SAP SE or an SAP SE or an SAP SAP 2020 © Content 1 PowerDesigner Resource Files..................................................9 1.1 Opening Resource Files in the Editor...............................................10 1.2 Navigating and Searching in Resource Files..........................................12 1.3 Editing Resource Files.........................................................13 1.4 Saving Changes............................................................. 13 1.5 Sharing and Embedding Resource Files.............................................13 1.6 Creating and Copying Resource Files...............................................14 1.7 Specifying Directories to Search for Resource Files.....................................15 1.8 Comparing Resource Files......................................................15 1.9 Merging Resource Files........................................................16 2 Extension Files.............................................................18 2.1 Creating an Extension File......................................................19 2.2 Attaching Extensions to a Model................................................. 20 2.3 Exporting an Embedded Extension File for Sharing.....................................21 2.4 Extension File Properties.......................................................21 2.5 Example: Adding a New Attribute from a Property Sheet.................................23 2.6 Example: Creating Robustness Diagram Extensions....................................24 Creating New Types of Objects with Stereotypes....................................25 Specifying Custom Symbols for Robustness Objects.................................27 Example: Creating Custom Checks on Instance Links................................28 Example: Defining Templates to Extract Message Descriptions..........................33 Example: Creating a Generated File for the Message Information........................35 Example: Testing the Robustness Extensions......................................37 2.7 Metaclasses (Profile)......................................................... 39 Extended Objects, Sub-Objects, and Links (Profile)..................................42 2.8 Stereotypes (Profile)..........................................................43 Creating New Metaclasses with Stereotypes...................................... 46 Positioning Custom EAM Tools in the Web Client Toolbox..............................47 2.9 Criteria (Profile).............................................................53 2.10 Extended Attributes (Profile)....................................................54 Calculated Attribute Scripts..................................................58 Creating an Extended Attribute Type............................................60 Specifying Icons for Attribute Values............................................61 Linking Objects Through Extended Attributes......................................63 Aggregating Attribute Values with Aggregated Metrics............................... 63 2.11 Extended Collections and Compositions (Profile)......................................64 Customizing and Extending PowerDesigner 2 PUBLIC Content 2.12 Calculated Collections (Profile).................................................. 67 2.13 Dependency Matrices (Profile)...................................................69 Specifying Advanced Dependencies.............................................71 2.14 Forms (Profile)..............................................................73 Adding Extended Attributes and Other Controls to Your Form...........................75 Example: Creating Common Form Controls.......................................79 Example: Creating a Property Sheet Tab..........................................81 Example: Including a Form in a Form............................................84 Example: Opening a Dialog from a Property Sheet...................................87 2.15 Custom Symbols (Profile)......................................................90 2.16 Custom Checks (Profile).......................................................92 Example: PDM Custom Check.................................................94 Example: PDM Autofix......................................................94 2.17 Event Handlers (Profile)....................................................... 96 Example: Setting Default Property Values........................................100 2.18 Methods (Profile)............................................................101 2.19 Menus (Profile).............................................................102 Example: Opening a Dialog Box from a Menu......................................104 2.20 Templates (Profile)..........................................................106 2.21 Generated Files (Profile)...................................................... 107 Example: JavaGenerated File and Templates......................................109 Generating Your Files in a Standard or Extended Generation...........................111 2.22 Transformations (Profile)......................................................113 Transformation Profiles (Profile)...............................................115 Developing Transformation Scripts.............................................116 2.23 XML Imports (Profile).........................................................117 XML Import Mappings......................................................118 Metamodel Mapping Properties...............................................122 Metamodel Object Properties................................................123 2.24 Object Generations (Profile)....................................................124 Model-to-Model Generation Mappings..........................................125 2.25 Chart Datasets (Profile).......................................................126 EA Example Charts........................................................128 2.26 Global Script (Profile).........................................................131 3 Object, Process, and XML Language Definition Files................................133 3.1 Settings Category: Process Language.............................................135 3.2 Settings Category: Object Language..............................................136 3.3 Settings Category: XML Language............................................... 138 3.4 Generation Category.........................................................138 Example: Adding a Generation Option.......................................... 139 Example: Adding a Generation Command and Task.................................140 Customizing and Extending PowerDesigner Content PUBLIC 3 3.5 Profile Category (Definition Files)................................................143 4 DBMS Definition Files.......................................................144 4.1 Triggers Templates, Trigger Template Items, and Procedure Templates......................145 4.2 Database Generation and Reverse Engineering.......................................145 Script Generation.........................................................146 Script Reverse Engineering..................................................149 Live Database Generation...................................................150 Live Database Reverse Engineering............................................150 Defining Generation and Reverse-Engineering of New Metaclasses......................158 Adding Scripts Before or After Generation and Reverse Engineering.....................158 4.3 General Category (DBMS).....................................................159 4.4 Script/Sql Category (DBMS)...................................................160 Syntax Category (DBMS)...................................................160 Format Category (DBMS)...................................................161 File Category (DBMS)......................................................163 Keywords Category (DBMS).................................................164 4.5 Script/Objects Category (DBMS)................................................166 Common Object Items.....................................................168 Table Category (DBMS).....................................................172 Column Category (DBMS)...................................................176 Index Category (DBMS)....................................................183 Pkey Category (DBMS).....................................................186 Key Category (DBMS)......................................................187 Reference Category (DBMS).................................................189 View Category (DBMS).....................................................192 Tablespace Category (DBMS)................................................194 Storage Category (DBMS).................................................. 194 Database Category (DBMS)................................................. 195 Domain Category (DBMS)...................................................196 Abstract Data Type Category (DBMS)...........................................197 Abstract Data Type Attribute Category (DBMS)................................... 199 User Category (DBMS).................................................... 200 Rule Category (DBMS).....................................................200