430 likes | 684 Views
PDR603 PowerDesigner for PowerBuilder. Xiao Yun Wang PowerDesigner Chief Architect xwang@sybase.com / +33 1 4190 4032 August 6, 2003. Guo-bi Wu Power Builder Engineering guobi@sybase.com. Agenda. PowerDesigner Overview PowerDesigner 9.5.2 for PowerBuilder PowerDesigner Roadmap
E N D
PDR603 PowerDesigner for PowerBuilder Xiao Yun WangPowerDesigner Chief Architectxwang@sybase.com / +33 1 4190 4032August 6, 2003 Guo-bi WuPowerBuilderEngineeringguobi@sybase.com
Agenda • PowerDesigner Overview • PowerDesigner 9.5.2 for PowerBuilder • PowerDesigner Roadmap • PowerDesigner 10 and PowerBuilder 10 Together
PowerDesigner Overview • Why Modeling? • PowerDesigner History • PowerDesigner Features Summary
Why Modeling? – An analogy Would you build a house without a blueprint ? The Architect validatesthe concept with the client From these drawings, a technical diagram will be derived The Contractors will take this blueprint and optimise it based on technical considerations – linked to the Architectural View
The Application Development Process A Business Process Model describing the Software Development Lifecycle • Starts with Understanding Business Needs • IT Manager then: • Matches business needs with Technological Requirements • Manages the IT development team – a multi-discipline team • Most IT shops separate DB development from Application development • Specific tools needed for each population/role
Design Tools Market Landscape Three markets converging Business ProcessModeling(emerging standards) Business AnalystsLOBsCIOs TraditionalE/R DataModeling(James Martin) Object-orientedModeling (UML techniques) Designers/Analysts,DBAs, Database Developers Designers/Analysts,Developers, Programmers
Target Audience Business-centric IT-centric IT Directors and ManagersSenior Analysts & Designers CxOsLOBsBusiness Analysts Application- Designers - Developers -… SGBD-R - Designers - Developers -…
PowerDesigner’s Rich History Old Generation – Completed commitment to Traditional E/R 1996 1989 1990 1991 1992 1994 v2 French Only v5DFD Process Modeling v4Enterprise Edition v6Warehouse Modeling v1 v3 Multiple Models New generation - Reinvented and Refined - UML, Business Modeling 1999 2000 2001 Q1/2002 Q4/2002 v7First UML v7.5Enterprise Repository v8.0Enhanced UML v9.0J2EE in UMLNew Warehouse & Business Process Modeling v9.5All UML diagrams.NET in UML Integration
PowerDesigner 9.5 Integrated Enterprise Modeling Tool Business-centric Control Flow diagram BusinessAnalysis Businesscentric UML modeling (all diagrams) Entity/Relationship modeling (and DW extensions) Analysis&Design Repository Templates, Generic Generators,UML profiles, model-to-model generation… ITcentric RDBMS structuresObject Relational mapping Java, .Net, XML, PB... support IDEs & App Server support Development Source Sybase
Link and Synchronize All Models PowerBuilder, Java, J2EE XML, WSDL Object-Oriented Model (OOM) Business Process Model (BPM) ebXML, MessageBroker, Ohio C++, C#, VB.Net, Web Services, etc... O/R Mapping Conceptual Data Model (CDM) Physical Data Model (PDM) Forward Engineering ODBC Reverse Engineering Database SQL Script (DDL) Round-trip Engineering Import/Export
PowerDesigner 9.5.2 Features Summary • PowerDesigner is a good enterprise modeling tool • Leading Data Modeling tool • Complete UML support (9 UML diagrams) • Business Process Modeling features • Good Repository • Integration with Integration Orchestrator, Message Broker, ebXML • Design and generate code for PowerBuilder, Web Services, J2EE (EJB, O/R mapping), .NET, etc. • Support all major databases (more than 30) • Support major application servers (EAServer, WebLogic, WebSphere) • Integration with IDEs (Eclipse, JBuilder 8, Ant) • Support MDA • Extensibility (Profile, Code generator, VBScript, OLE automation)
PowerDesigner 9.5.2 for PowerBuilder • PowerDesigner for PowerBuilder Features Summary • PowerBuilder Applications Design and Development • Reverse Engineering PowerBuilder Applications • Designing PowerBuilder Applications • Generating PowerBuilder Applications • Extending PowerDesigner Features • Future Direction
PowerDesigner for PowerBuilder FeaturesSummary • PowerDesigner 9.5.2 introduces complete support for all PowerBuilder objects reverse engineering and generation • Support libraries (.pbl) and source files (.sr*) • Support PowerBuilder 6, 7, 8 and 9 • PowerBuilder tool palette for creating new objects • Model verification • Generate & reverse PowerBuilder extended attributes in PDM
Problem Statement • Most of PowerBuilder developers don’t do design. • Many PowerBuilder applications don’t have a good architecture and there is no documentation. • It is difficult to maintain and evolve when the developers are gone.
PowerDesigner Value Proposition • Help users to understand how the application was developed. • Help users to visually see the relationship between objects. • Help users to improve existing code, refactor the code. • Regenerate PowerBuilder application. • Generate documentation (report) in HTML and RTF format.
Reverse Engineering PowerBuilder Applications • Application, User Object, Structure, Function, Window, Proxy are represented by class structure • For the other objects (DataWindow, Query, Pipeline, …), the source code is preserved and can be regenerated • Both libraries (.pbl) and source files (.sr*) can be reverse engineered
Reverse Engineering PowerBuilder Applications • You could select reverse engineering options. • You could use PowerBuilder System Classes and PFC library models to represent parent classes that give you the complete definition of the System Classes.
Displaying PowerBuilder Objects in Class Diagram • A class diagram shows packages, inheritances, associations, dependencies, attributes, operations. • Each library is represented by a package. • A stereotype and a mini icon shows the type of object. • The dependencies show which menu or data window is used by which window. • Window, user object, application, structure, function and proxy are represented as classes and the code is regenerated from the class definition. • Other objects are represented as classes by the source code is kept and are not regenerated from the class definition. • Controls are represented by inner classes.
Designing PowerBuilder Applications • You can create, modify or delete objects or links. • You can use the PowerBuilder tool palette to create objects. • You could define interfaces and implement interfaces but the interfaces will not be generated. • You can preview the PowerBuilder code. • You can modify the PowerBuilder code in the code preview window. • You can write specification in RTF format. You could use Word to edit the description or annotation. • You can generate reports in HTML or RTF formats for documentation.
Defining Inheritances • A parent class could be a shortcut representing a class defined in another model for example for system classes.
Defining Events • Events are represented as operations. • An Event could be an operation with the «event» stereotype, with a language event or with an extended attribute EventID (pbm_*).
Overriding Properties • In the Attributes tab of the class property sheet, the Inherited button allows you to select the properties to override.
Previewing PowerBuilder Code • Open the properties of an object. Select the Preview tab. • For Window, User Object, Application, Structure, Function and Proxy, the code is generated from the class definition. You could change the code in the Preview window (add attributes, modify operations, …), the model will be updated to reflect the changes. • For DataWindow, Menu, Query, …, you could change the code in the Script tab
Verifying the Model • You could use the Check Model function to verify if the model is well defined. • There are PowerBuilder specific checks.
Generating PowerBuilder Applications • You can generate PowerBuilder objects into libraries or source files. • You can select the objects you want to generate.
Extending PowerDesigner Features • You could use various extensibility features of PowerDesigner to extend PowerDesigner’s PowerBuilder generation and reverse engineering capabilities: • Profile • GTL (template based code generator) • VBScript, OLE automation (PowerBuilder, .NET, Java, C++, …) • Plugins
Future Direction • PowerDesigner 10.0 will support tight integration with PowerBuilder 10 • PowerBuilder 10 will be able to embed PowerDesigner views inside PowerBuilder • PowerBuilder will be able to control PowerDesigner • PowerDesigner will generate complete PowerBuilder application code (post 10.0)
PowerDesigner Roadmap • PowerDesigner Athena (V10, December 2003) • Integration with PowerBuilder • Integration with Eclipse (Q1 2004) • Major BPM improvements • XML model • Fully support MDA • PowerDesigner Minerva (end of 2004) • Enterprise features (requirements, impact analysis, …) • XML and Web Services in database • UML 2.0 • Design patterns
Business Process Modeling Improvements • Add targets (Analysis, BPEL4WS , ebXML, Integration Orchestrator, MessageBroker, …) • Support simulation (use Simul8 engine) • Support Service-Oriented modeling • Model, generate & reverse BPEL4WS • Better integration with Integration Orchestrator (round-trip) • Better support ebXML BPSS
XML Model • Design, reverse engineer and generate XML Schema and DTD • Define mapping between XML Schema and database schema • Define mapping between XML Schema and objects • Support databases XML features
Other Athena Features • Support C# and VB .NET reverse engineering • Improve Web Services support (support Apache Axis, …)
PowerDesigner and PowerBuilder Together Summary • PowerDesigner: A Plugin Component in PowerBuilder 10 • Reverse Engineer From PowerBuilder • Design and Generate PowerBuilder Code Using PowerDesigner • Navigation Between PowerDesigner and PowerBuilder • Demo
PowerDesigner and PowerBuilder Together PowerDesigner: A Plugin Component in PowerBuilder 10 • PowerBuilder Plugin Manager Manages Plugin Components • A plugin component can enable or disable by Plugin Manager • PowerDesigner Feature Will Be Available Only When It Is Turned On
PowerDesigner and PowerBuilder Together PowerDesigner: A Plugin Component in PowerBuilder 10
PowerDesigner and PowerBuilder Together Reverse Engineer From PowerBuilder • Select “Reverse Engineer” From PowerBuilder Target Context Menu • Select PBLs and Objects to Reverse Engineer
PowerDesigner and PowerBuilder Together Design and Generate PowerBuilder Code Using PowerDesigner • Create a New PowerBuilder OOM (Object Oriented Model) • OOM name maps to PowerBuilder target name • Package name maps to PowerBuilder pbl name
PowerDesigner and PowerBuilder Together Design and Generate PowerBuilder Code Using PowerDesigner • Add Classes and Do Design • Although PowerBuilder doesn’t support interface yet, user can define interface in PowerDesigner, then implement interface in a PowerBuilder user object.
PowerDesigner and PowerBuilder Together Design and Generate PowerBuilder Code Using PowerDesigner • Check Model • Check model is customized for PowerBuilder, for example, it will check whether a object name is valid PowerBuilder name, a pbl can only have one application object • Check model results are printed in output window
PowerDesigner and PowerBuilder Together Design and Generate PowerBuilder Code Using PowerDesigner • Generate PowerBuilder Code • Select packages and classes from OOM to generate PowerBuilder code • If it is the first time to generate PowerBuilder code, a new PowerBuilder target will be created
PowerDesigner and PowerBuilder Together Navigation Between PowerDesigner and PowerBuilder • From PowerBuilder to PowerDesigner • Select “Open Class Diagram” from pbl context menu to open class diagram for this pbl • Select “Find in Class Diagram” from PB object context menu to find the corresponding class in class diagram • From PowerDesigner to PowerBuilder • Double click a class in class diagram to launch PowerBuilder painter to open corresponding PB object • Select “Find in PowerBuilder Workspace” from class context menu to find the corresponding PowerBuilder object in PowerBuilder workspace
PowerDesigner and PowerBuilder Together Demo Design in PowerDesigner Generate PowerBuilder Code Modify in PowerBuilder Debug and Run Reverse Engineer to Update Class Diagram
PDR603 PowerDesigner for PowerBuilder Xiao Yun WangPowerDesigner Chief Architectxwang@sybase.com / +33 1 4190 4032August 6, 2003 Guo-bi WuPowerBuilderEngineeringguobi@sybase.com