Patterns - More than Mere Stencils

39
Patterns More than Mere Stencils

description

This presentation is an introduction to patterns for software development using Sparx Systems Enterprise Architect. The presentation starts with GoF design patterns and then moves to up to business architecture patterns.

Transcript of Patterns - More than Mere Stencils

Page 1: Patterns - More than Mere Stencils

PatternsMore than Mere Stencils

Page 2: Patterns - More than Mere Stencils

Stencils

Page 3: Patterns - More than Mere Stencils

What is a pattern?

Page 4: Patterns - More than Mere Stencils

We use patterns to do repeatable work quickly and easily.

Page 5: Patterns - More than Mere Stencils

Important Elements of Patterns:

Context

Page 6: Patterns - More than Mere Stencils

Important Elements of Patterns:

They apply at many levels

Page 7: Patterns - More than Mere Stencils

Important Elements of Patterns:

Domain Specific Languages

Page 8: Patterns - More than Mere Stencils

Important Elements of Patterns:

Patterns are a two way street

Page 9: Patterns - More than Mere Stencils

“Drawings help people to work out intricate relationships between parts.” - Christopher Alexander

Page 10: Patterns - More than Mere Stencils

What’s Our Game Plan?Design Patterns

Architectural Patterns

Analysis Patterns

SOA Patterns

Business Architecture

Patterns

Page 11: Patterns - More than Mere Stencils

Creational Patterns

These design patterns are all about class instantiation. These patterns can be further divided into class-creation patterns and object-creational patterns. While class-creation patterns use inheritance effectively in the instantiation process, object-creation patterns use delegation effectively to get the job done.

Behavioural Patterns

These design patterns are all about class objects’ communication. Behavioural patterns are those patterns that are most specifically concerned with communication between objects.

Structural Patterns

These design patterns are all about class and object composition. Structural class-creation patterns use inheritance to compose interfaces. Structural object-patterns define ways to compose objects to obtain new functionality.

Page 12: Patterns - More than Mere Stencils

Use in Enterprise Architect

1 23

Page 13: Patterns - More than Mere Stencils

An object-oriented state machine

State Pattern

Context

+ Request()state->Handle()

State

+ Handle()

ConcreteStateA

+ Handle()

ConcreteStateB

+ Handle()

-state

Page 14: Patterns - More than Mere Stencils

An object-oriented state machine

State Pattern

Page 15: Patterns - More than Mere Stencils

Architectural Patterns

Model-View-Controller

Page 16: Patterns - More than Mere Stencils

Architectural Patterns

Application of Model-View-Controller

Page 17: Patterns - More than Mere Stencils

Architectural Patterns

Let’s compose the Model-View-Controller

Page 18: Patterns - More than Mere Stencils

Adding Patterns to EA

Bring up the Resources window: View -> More Project Tools -> Project Resources

Then…

Page 19: Patterns - More than Mere Stencils

Till this point we’ve been down in the weeds and seeds

Page 20: Patterns - More than Mere Stencils

“Patterns are a starting point, not a destination” - Martin Fowler

Page 21: Patterns - More than Mere Stencils

Analysis Level Patterns

Accounting - Posting

Event

Processor

+ Process(Event)

AccountingEntryreads creates

http://martinfowler.com/apsupp/accounting.pdf

Page 22: Patterns - More than Mere Stencils

Analysis Level Patterns

Page 23: Patterns - More than Mere Stencils

Workflow Pattern Categories

Workflow Pattern Categories

1. Control2. Resource3. Data4. Exception Handling

Page 24: Patterns - More than Mere Stencils
Page 25: Patterns - More than Mere Stencils

Workflow Pattern Example

Simple Merge

Page 26: Patterns - More than Mere Stencils

Analysis Level Patterns

Program Management Patterns

Page 27: Patterns - More than Mere Stencils

Australian Government Use of Patterns

Page 28: Patterns - More than Mere Stencils
Page 29: Patterns - More than Mere Stencils
Page 30: Patterns - More than Mere Stencils
Page 31: Patterns - More than Mere Stencils
Page 32: Patterns - More than Mere Stencils

Brokered Authentication Pattern

Page 33: Patterns - More than Mere Stencils
Page 34: Patterns - More than Mere Stencils
Page 35: Patterns - More than Mere Stencils

An example of a business model from Tom Graves (see http://weblog.tomgraves.org)

Page 36: Patterns - More than Mere Stencils
Page 37: Patterns - More than Mere Stencils

Mapping Osterwalder’s Business Model Canvas to Archimate

Page 38: Patterns - More than Mere Stencils

Not Matched

Page 39: Patterns - More than Mere Stencils

w: www.itstrategies.info

e: [email protected]

t: www.twitter.com/adraffin