learning uml with enterprise architect

22
Learning UML: Use Case Development and CIM Profiling EPRI Power Quality and Smart Distribution 2012 Conference and Exhibition June 4, 2012 Gerald R. Gray, PhD Sr. Project Manager Enterprise Architecture | Utility Enterprise Integration

Upload: gerald-r-gray-phd

Post on 06-Dec-2014

3.983 views

Category:

Education


9 download

DESCRIPTION

Use Case Development and CIM Profiling. This presentation walks the user through typical diagrams used to complement use case development in standard UML.

TRANSCRIPT

Page 1: Learning UML with Enterprise Architect

Learning UML: Use Case Development and CIM Profiling

EPRI Power Quality and Smart Distribution

2012 Conference and Exhibition June 4, 2012

Gerald R. Gray, PhDSr. Project Manager

Enterprise Architecture | Utility Enterprise Integration

Page 2: Learning UML with Enterprise Architect

2© 2012 Electric Power Research Institute, Inc. All rights reserved.

Disclaimer

• Not a celebrity spokes model• Not a SparxSystems representative

Page 3: Learning UML with Enterprise Architect

3© 2012 Electric Power Research Institute, Inc. All rights reserved.

Course Outline

• EA Strengths/Weaknesses• Pre-requisites• Creating common use case related diagrams

– Used by UCAIUG, CIMug, OpenSG, MultiSpeak…• Model Baselines• Versioning Setup & Configuration• CIM Profiling

– CIMEA

Page 4: Learning UML with Enterprise Architect

4© 2012 Electric Power Research Institute, Inc. All rights reserved.

Enterprise Architect: Uses and Benefits

• Supports IT system, software, and business processes• Model, design, build, and test software• Uses standard Unified Modeling Language (UML) • Central repository for process and IT system information• Interfaces with version control e.g. Subversion• Fast, built-in or custom document generation & HTML

Page 5: Learning UML with Enterprise Architect

5© 2012 Electric Power Research Institute, Inc. All rights reserved.

Enterprise Architect: Weaknesses

•May be a poor choice for complex system diagrams – Visio is “prettier”– PowerPoint also an option

•Complex User Interface– Extensive feature set may lead to confusion– Time saving “tricks” difficult to learn

•Diagrams not useful if team doesn’t see value– UML/BPM may be used currently at their site– Some users intimidated by tool

Page 6: Learning UML with Enterprise Architect

6© 2012 Electric Power Research Institute, Inc. All rights reserved.

Installation

• SparxSystems Enterprise Architect– http://www.sparxsystems.com.au/

• $135 - $699 depending on version• Enterprise Architect (v7.5 or greater) • v9.2 recently released

• Subversion command-line client• http://www.collab.net/downloads/subversion/

• TortoiseSVN (Windows)• http://tortoisesvn.net/downloads

Page 7: Learning UML with Enterprise Architect

7© 2012 Electric Power Research Institute, Inc. All rights reserved.

Common UCAIUG / CIMUG Diagrams

• Top Down Approach– Use Case– Business Process (Activity)

• Integration Requirements– Sequence Diagram– Profile

• Let’s look at some examples!

Page 8: Learning UML with Enterprise Architect

8© 2012 Electric Power Research Institute, Inc. All rights reserved.

Adding a Use Case

• Project Browser– New Package – grouping of diagrams– Add new diagram: Use Case– In the workspace add

• Actors, cases, associations– Save changes, check-in package

Page 9: Learning UML with Enterprise Architect

9© 2012 Electric Power Research Institute, Inc. All rights reserved.

Adding a Business Process

• Project Browser– Add new diagram: Activity– Open workspace, right-click for

Swimlanes and Matrix…– Add swimlanes

• Create new or use classifier to select existing actors

– Add Activity and flows

Page 10: Learning UML with Enterprise Architect

10© 2012 Electric Power Research Institute, Inc. All rights reserved.

Integrations Requirements

• Addition to the Activity diagram– Typically a hand-off from the business user to the

architect/software– Object flow between two activities, spanning actors

(swimlanes), between two systems– Add requirement (from common tools)

• Right-click properties• Type dropdown: Add integration

– Change node to identify service

Page 11: Learning UML with Enterprise Architect

11© 2012 Electric Power Research Institute, Inc. All rights reserved.

Adding Sequence Diagram

• Project Browser– Add diagram: sequence– Open workspace– Add Actors– Add flows (asynchronous)– Add returns (“Is Return” checkbox)

Page 12: Learning UML with Enterprise Architect

12© 2012 Electric Power Research Institute, Inc. All rights reserved.

Manage Baselines

• Corporate version required*• Internal “version control”

– Can be used in conjunction with DBMS• Baseline can be added to each package• Complements import/export of XMI

– Import XMI replaces everything in a target package– Can be compared to XMI to replace only desired

changes

Page 13: Learning UML with Enterprise Architect

13© 2012 Electric Power Research Institute, Inc. All rights reserved.

Enterprise Architecture: Version Control

• Working Directory creation:– C:\Test\Working

• In Windows Explorer, right-click on folder• TortoiseSVN ►Create repository here…

– Connecting to a remote repository: • Using TortoiseSVN repo browse to repository

location:– Enter credentials if prompted– Right-click on folder in left-hand panel– Select Export… to directory created above

Page 14: Learning UML with Enterprise Architect

14© 2012 Electric Power Research Institute, Inc. All rights reserved.

Enterprise Architect: Version Control Settings

• From main menu select– Project Version Control

Version Control Settings…– Create a unique name– Select type: Subversion– Point to working directory– Subversion exe path should

pre-populate– Click Save

Page 15: Learning UML with Enterprise Architect

15© 2012 Electric Power Research Institute, Inc. All rights reserved.

Enterprise Architect: Adding a branch

• Right-click on Package• Select Package Control• Select Add Branch to Version

Control…• The key icon is added to each

package under version control

Page 16: Learning UML with Enterprise Architect

16© 2012 Electric Power Research Institute, Inc. All rights reserved.

CIM EA

• Addin to Enterprise Architect– Easy to create

• CIM UML profiles• Generate XSDs, RDFs• Uses CIM, MultiSpeak, and other models as reference• Used to design message payloads, etc

• Other tools can create CIM profiles, e.g. CIMTool

Page 17: Learning UML with Enterprise Architect

17© 2012 Electric Power Research Institute, Inc. All rights reserved.

Example UML Profile

Page 18: Learning UML with Enterprise Architect

18© 2012 Electric Power Research Institute, Inc. All rights reserved.

Profile Design

• CIMEA integrates into the EA user interface• Profiles built from references model, (CIM or other)• Right-click on reference model, select

– Add In (“Extensions” in v9.x) CIM EA Create a CIM profile…

– Give name…– Select classes, attributes, relationships

Page 19: Learning UML with Enterprise Architect

19© 2012 Electric Power Research Institute, Inc. All rights reserved.

Generating artifacts

• Using CIM EA add in facilitates quick artifacts (XSD, RDF) generation– Select Add In (“Extensions” in v9.x) CIM EA Generate

Artifacts– Example CIM profile

• Change the namespace• Change message – usually to just “m”• Change model location – this is used for sawsdl attributes

• Generate – and open in your favorite XML editor

Page 20: Learning UML with Enterprise Architect

20© 2012 Electric Power Research Institute, Inc. All rights reserved.

Recap

• Learned how to go from – Use case to…– Business process to…– Identifying integration requirements…– Creating sequence diagrams…

• Configuring version control• Design profile to…

– Generate an artifact

Page 21: Learning UML with Enterprise Architect

21© 2012 Electric Power Research Institute, Inc. All rights reserved.

Reference

•EA Free Trial– http://www.sparxsystems.com/products/ea/trial.html

•Subversion Documentation– http://svnbook.red-bean.com/en/1.5/index.html

•EA Tutorials and Online Help– http://www.sparxsystems.com/resources/index.html

• CIMEA– http://www.cimea.org

Page 22: Learning UML with Enterprise Architect

22© 2012 Electric Power Research Institute, Inc. All rights reserved.

Together…Shaping the Future of Electricity