new york university computer science department …...1 software engineering session 7 – main...

66
Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer Science Department Courant Institute of Mathematical Sciences 2 3 Business Process Modeling Business Process Modeling 4 Capturing the Organization and Location Aspects Capturing the Organization and Location Aspects Agenda 1 Introduction Introduction 8 Summary and Conclusion Summary and Conclusion 2 Business Model Representation Business Model Representation 5 Developing a Process Model Developing a Process Model 7 Business Process Interoperability Business Process Interoperability 6 BPMN, BPML, and BPEL4WS BPMN, BPML, and BPEL4WS

Upload: others

Post on 13-Jul-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

1

Software Engineering

Session 7 – Main ThemeBusiness Model Engineering

Dr. Jean-Claude Franchitti

New York UniversityComputer Science Department

Courant Institute of Mathematical Sciences

2

33 Business Process ModelingBusiness Process Modeling

44 Capturing the Organization and Location AspectsCapturing the Organization and Location Aspects

Agenda

11 IntroductionIntroduction

88 Summary and ConclusionSummary and Conclusion

22 Business Model RepresentationBusiness Model Representation

55 Developing a Process ModelDeveloping a Process Model

77 Business Process InteroperabilityBusiness Process Interoperability

66 BPMN, BPML, and BPEL4WSBPMN, BPML, and BPEL4WS

Page 2: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

3

What is the class about?

Course description and syllabus:» http://www.nyu.edu/classes/jcf/g22.2440-001/

» http://www.cs.nyu.edu/courses/spring10/G22.2440-001/

Textbooks:» Software Engineering: A Practitioner’s Approach

Roger S. PressmanMcGraw-Hill Higher InternationalISBN-10: 0-0712-6782-4, ISBN-13: 978-00711267823, 7th Edition (04/09)

» http://highered.mcgraw-hill.com/sites/0073375977/information_center_view0/» http://highered.mcgraw-

hill.com/sites/0073375977/information_center_view0/table_of_contents.html

4

Icons / Metaphors

4

Common Realization

Information

Knowledge/Competency Pattern

Governance

Alignment

Solution Approach

Page 3: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

5

33 Business Process ModelingBusiness Process Modeling

44 Capturing the Organization and Location AspectsCapturing the Organization and Location Aspects

Agenda

11 IntroductionIntroduction

88 Summary and ConclusionSummary and Conclusion

22 Business Model RepresentationBusiness Model Representation

55 Developing a Process ModelDeveloping a Process Model

77 Business Process InteroperabilityBusiness Process Interoperability

66 BPMN, BPML, and BPEL4WSBPMN, BPML, and BPEL4WS

6

Business Model Representation

See Session 7 Handouts:» Handout 30 – OMG’s BPMN Resource Page» Handout 31 – BPMN 1.0 Specification» Handout 32 – BPMN Patterns» Handout 33 – Business/Application Arch. Engineering» Handout 34 – Sample Business Architecture» Handout 35 – Sample BPMS (Lombardi TeamWorks)

Page 4: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

7

33 Business Process ModelingBusiness Process Modeling

44 Capturing the Organization and Location AspectsCapturing the Organization and Location Aspects

Agenda

11 IntroductionIntroduction

88 Summary and ConclusionSummary and Conclusion

22 Business Model RepresentationBusiness Model Representation

55 Developing a Process ModelDeveloping a Process Model

77 Business Process InteroperabilityBusiness Process Interoperability

66 BPMN, BPML, and BPEL4WSBPMN, BPML, and BPEL4WS

8

Section Outline

Business Process Modeling backgroundBusiness Process Modeling Phases

Page 5: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

9

Discussion

How do you know that what you are doing is the right thing to do?Who do you build your interfaces for? How can you ensure that you are “doing the right thing”?

Has anyone built something that missed the mark?

• It failed to meet the business need• End-users did not use it

10

What is BPM?

A standardized approach to analyze, streamline and integrate business processes independent of organizational boundaries, to provide maximum operating efficiencies via clearly defined business and IS projects

A business process focused methodology» Not Business Process Reengineering» Led by the business» Facilitated by IS

Page 6: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

11

Why BPM?

Identify and document business process improvement opportunities» To gain operating efficiencies through analysis of

current and future business processesAlign business and IS» To promote integration of business processes and

technologies by identifying strategic initiativesIdentify and reuse processes» To identify core business processes» To share and reuse business processes across

organizational boundaries

12

BPM Objectives

Analyze business processes independent from organizationQuantify the benefits and savings for each proposed initiativeIdentify opportunities for process elimination and/or reassignmentIdentify opportunities for business process improvement through automation and optimization

Page 7: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

13

Risks without BPM

Systems could be implemented as a “forced fit”Potential loss of business and technology alignmentIncreased manual processes and “workarounds”Building unnecessary user interfacesNot identifying the best possible solutions

14

The Value of BPM

Business area and IS develop a common understanding of business requirements» Simple modeling notation» Consistent, repeatable approach

Short, focused BPM efforts» Swift identification of process improvement

initiativesPromotes seamless integration and reuse of processes, data and technologiesCaptures current business processes that can be used as a knowledge-base for training

Page 8: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

15

BPM Methodology Phases

Business ProcessModeling

(BPM)

Business ProcessModeling

(BPM)

Pre-ProjectAssessment

Pre-ProjectAssessment

Business NeedsAnalysis

Business NeedsAnalysis

Current ProcessUnderstanding

Current ProcessUnderstanding

New ProcessDesign

New ProcessDesign TransformationTransformationProject

PlanningProject

Planning

16

Project Planning

Develop project plan» High-level scope definition

Build project teamConduct project kick-off meeting» Core team» Stakeholders

Initiate project management activitiesTraining of Core team and subject matter experts

Page 9: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

17

Business Needs Analysis

Define BPM detailed scope»Define project purpose, goals and

objectives»Identify problems to be addressed»Determine key measures

18

Current Process Understanding

Develop business process modelsIdentify business process information needsCapture current process metrics and characteristicsIdentify areas of opportunity for improvement

Page 10: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

19

New Process Design

Develop Global Business Function Model» Based on annotated CPU models from

Optimization» Incorporate process improvement

opportunities

20

Transformation

Document recommended business initiativesProduce list of recommended projectsIdentify sequence for recommended IS projects

Page 11: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

21

33 Business Process ModelingBusiness Process Modeling

44 Capturing the Organization and Location AspectsCapturing the Organization and Location Aspects

Agenda

11 IntroductionIntroduction

88 Summary and ConclusionSummary and Conclusion

22 Business Model RepresentationBusiness Model Representation

55 Developing a Process ModelDeveloping a Process Model

77 Business Process InteroperabilityBusiness Process Interoperability

66 BPMN, BPML, and BPEL4WSBPMN, BPML, and BPEL4WS

22

Sample Business Process Map (Trading)

Client

OTCMarket

Clientlogs in

"Personalized" Web Page

SubmitsOrder

Validate Order

Valid

"Not a validorder"

Manual ReviewNeeded

Is this a product in yourinventory or available on

ECN.

No

Route toTradingDesk

Yes

Electronic Trading

Available

NoYes

"Electronicpass

through"

Electronicsubmissionexecution

NonAutomatedExecution

No

MonitorExecution

E-mailConfirmation

ConfirmExecution(price Qty,

Etc..)

Updatecustomeraccount

"Real-timealert"

Is itDomestic

TriggerFXNo

FX Process

Front/BackOffice

ElectronicExecution?

Yes

*

Client

Client Callsin Order

Sales DeskContacts

ClientRecordOrder

No

Yes

Yes

Page 12: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

23

Understanding Business Model Engineering

• Data conversion• Supplied volume

data

• Projects creation and update• Projects approval• KPI creation• Project information retrieval• System administration

• Hardware• Standard system

software• Reporting software• Ad-hoc spreadsheet

functions• Security and

performance

• Site navigation design• Site content design• Reusable components• Security workflow • Help

Location

Data

Technology

Organization BusinessProcess

Application

• Implementation Team• Training Team

• Office hosting development

24

33 Business Process ModelingBusiness Process Modeling

44 Capturing the Organization and Location AspectsCapturing the Organization and Location Aspects

Agenda

11 IntroductionIntroduction

88 Summary and ConclusionSummary and Conclusion

22 Business Model RepresentationBusiness Model Representation

55 Developing a Process ModelDeveloping a Process Model

77 Business Process InteroperabilityBusiness Process Interoperability

66 BPMN, BPML, and BPEL4WSBPMN, BPML, and BPEL4WS

Page 13: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

25

UML and Business Process Modeling

See:»http://xml.coverpages.org/ni2003-08-29-a.html

26

Page 14: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

27

Models of Business Processes

UML became the standard modeling language for business processes.Of the 9 UML diagram types, 3 are particularly important:

use cases, activity diagrams and scenarios (sequence or colaboration diagrams).

Use cases show informally how the business process interactswith outside actors (customers, stakeholders, suppliers etc.)

The process dynamics is modeled by activity diagrams.

Often only specific scenarios are of interest. E.g. service monitoring, system reconfiguration, performance degradation etc.

28

A Use Case

WEB

HotelDesk

ReservationSystem

Room Service

<<extends>>

<<extends>>

<<includes>>

John

Markus

Room Reservation

Page 15: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

29

Activity Diagrams

Activity Diagram: state transition diagram with concurrent states (Statechart)

Activity: state with internal action

BPM: activity = Mealy state

Activity diagrams constitute the core of a business model.

action agent

inputdata

outputdata

event

30

Page 16: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

31

A UML Business Process Model: Different Views

32

Page 17: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

33

Activity Diagram Applications

Intended for applications that need control flow or object/data flow models …... rather than event-driven models like state machines.For example: business process modeling and workflow.The difference in the three models is how a step in a process is initiated, especially with respect to how the step gets its inputs.

34

Control Flow

Each step is taken when the previous one finishes …regardless of whether inputs are available, accurate, or complete.Emphasis is on order in which steps are taken.

Not UMLNotation! Start TripStart Trip Cancel TripCancel Trip

Analyze Weather InfoAnalyze Weather Info

Weather InfoStart

Page 18: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

35

Object/Data Flow

Each step is taken when all the required input objects/data are available …… and only when all the inputs are available.Emphasis is on objects flowing between steps.

Design ProductDesign Product

ProcureMaterialsProcureMaterials

Acquire CapitalAcquire Capital

BuildSubassembly 1

BuildSubassembly 1

BuildSubassembly 2

BuildSubassembly 2

FinalAssembly

FinalAssembly

Not UMLNotation

36

State Machine

Each step is taken when events are detected by the machine …… using inputs given by the event.Emphasis is on reacting to environment.

Ready To StartReady To StartCoin

Deposited

Ready For OrderReady For OrderSelection

Made

DispenseProduct

DispenseProduct

ReturnChangeReturnChange

Cancel Button Pressed

Not UMLNotation

Page 19: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

37

Action (State)

Subactivity (State)

Just like their state machine counterparts (simple state and submachine state) except that ...... transitions coming out of them are taken when the step is finished, rather than being triggered by a external event, ...... and they support dynamic concurrency.

Kinds of Steps in Activity Diagrams

Action

Subactivity

38

Action (State)

An action is used for anything that does not directly start another activity graph, like invoking an operation on an object, or running a user-specified action.

However, an action can invoke an operation that has another activity graph as a method (possible polymorphism).

Action

Page 20: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

39

A subactivity (state) starts another activity graph without using an operation.

Used for functional decomposition, non-polymorphic applications, like many workflow systems.

The invoked activity graph can be used by many subactivity states.

Subactivity (State)

Subactivity

40

Example

POEmployee.sortMail Deliver Mail

POEmployee

sortMail() Check OutTruck

Put MailIn Boxes

Deliver Mail

Page 21: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

41

THE model (application) is completely OOwhen all action states invoke operations, and all activity graphs are methods for operations.

Activity Graph as Method

POEmployee

sortMail()deliverMail()

«realize»

POEmployee.sortMail POEmployee.deliverMail

Check OutTruck

Put MailIn Boxes

PO Employee Deliver Mail Method

42

Invokes an action or subactivity any number of times in parallel, as determined by an expression evaluated at runtime..Upper right-hand corner shows a multiplicity restricting the number of parallel invocations.Outgoing transition triggered when all invocations are done.Currently no standard notation for concurrency expression or how arguments are accessed by actions. Attach a note as workaround for expression.

Dynamic concurrency

Action/Subactivity *

Page 22: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

43

Object Flow (State)

A special sort of step (state) that represents the availability of a particular kind of object, perhaps in a particular state.

No action or subactivity is invoked and control passes immediately to the next step (state).

Places constraints on input and output parameters of steps before and after it.

Class[State]

44

Object Flow (State)

Take Order must have an output parameter giving an order, or one of its subtypes.

Fill Order must have an input parameter taking an order, or one of its supertypes.

Dashed lines used with object flow have the same semantics as any other state transition.

Order[Taken]Take Order Fill Order

Page 23: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

45

Inherited from state machines

Initial state

Final state

Fork and join

Coordinating Steps

46

Coordinating Steps (1/2)

Decision point and merge ( ) are inherited from state machines.

For modeling conventional flow chart decisions.

CalculateCost

ChargeAccount

GetAuthorization

[cost < $50]

[cost >= $50]

Page 24: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

47

Coordinating Steps (2/2)

Synch state ( ) is inherited from state machines but used mostly in activity graphs.Provides communication capability between parallel processes.

State machinenotation

Inspect

BuildFrame

InstallFoundation

InstallElectricity

in Foundation

PutOn

Roof

InstallElectricityIn Frame

InstallElectricityOutside

InstallWalls

* *

48

Convenience Features (Synch State)

Forks and joins do not require composite states.Synch states may be omitted for the common case (unlimited bound and one incoming and outgoing transition).

BuildFrame

InstallFoundation

InstallElectricity

in Foundation

PutOn

Roof

InstallElectricityIn Frame

InstallElectricityOutside

InstallWalls

Inspect

Activity diagramnotation

Page 25: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

49

Convenience Features (Synch State)

Object flow states can be synch states

Obj[S2]

A11 A12 A13

A21 A22 A23

50

Convenience Features (1/3)

Fork transitions can have guards.

Instead of doing this:

RegisterBug

EvaluateImpact

FixBug

RevisePlan

ReleaseFix

TestFix

[ priority = 1]

RegisterBug

EvaluateImpact

FixBug

RevisePlan

ReleaseFix

TestFix

[ priority = 1]

[else]

Page 26: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

51

Convenience Features (2/3)

Partitions are a grouping mechanism.Swimlanes are the notation for partitions.They do not provide domain-specific semantics.Tools can generate swimlane presentation from domain-specific information without partitions.

RegisterBug

EvaluateImpact

FixBug

RevisePlan

ReleaseFix

TestFix

[ priority = 1]

Management

Support

Engineering

52

Signal send icon

… translates to a transition with a send action.Signal receipt icon

… translates to a wait state (an state with no action and a signal trigger event).

Convenience Features (3/3)

Signal

Coffee Done

Wake Up

Get Cups

Drink Coffee

Turn on Coffee Pot

CoffeePot

Signal

Page 27: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

53

Case

Stud

y

Submission Team Task Force Revision Task Force

Issue RFP

Evaluate initialsubmissions

Submitspecification

draft

Collaborate withcompetitivesubmitters

Developtechnology

specification

partition

action state

RFP[issued]

[optional]

control flow

Finalizespecification

Specification[initial

proposal]

input value

Begin

object flow

initial state

join of controlconditionalfork

fork of control

Specification[final

proposal]

Ada

pted

from

Kob

ryn,

“UM

L 20

01”

Com

mun

icat

ions

of t

he A

CM

Oct

ober

199

9

54

Case

Stud

yA

dapt

ed fr

omK

obry

n, “U

ML

2001

”C

omm

unic

atio

ns o

f the

AC

MO

ctob

er 1

999

Evaluate initialsubmissions

Evaluate finalsubmissions

Vote torecommend

Enhancespecification

Implementspecification

Revisespecification

Finalizespecification

Specification[final

proposal]

Specification[adopted]

Recommendrevision

Specification[revised]

[NO][YES]

[else] [Enhanced]

decision

final state

guard

Collaborate withcompetitivesubmitters

Page 28: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

55

When to Use Activity Diagrams

Use activity diagrams when the behavior you are modeling ...

» does not depend much on external events.

» mostly has steps that run to completion, rather than being interrupted by events.

» requires object/data flow between steps.

» is being constructed at a stage when you are more concerned with which activities happen, rather than which objects are responsible for them (except partitions possibly).

56

Activity Diagram Modeling Tips (1/6)

Control flow and object flow are not separate. Both are modeled with state transitions.

Dashed object flow lines are also control flow.

You can mix state machine and control/object flow constructs on the same diagram (though you probably do not want to).

Page 29: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

57

Activity Diagram Modeling Tips (2/6)

RequestReturn

Get ReturnNumber

Ship Item

Item[returned]

ReceiveItem

RestockItem

CreditAccount

Item[available]

Customer Telesales WarehouseAccountingFrom UMLUser Guide:

58

Activ

ity M

odeli

ng T

ips

RequestReturn

Get ReturnNumber

Ship Item

Item[returned]

ReceiveItem

RestockItem

CreditAccount Item

[available]

Customer Telesales WarehouseAccounting

Page 30: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

59

Activity Diagram Modeling Tips (3/6)

Activity diagrams inherit from state machines the requirement for well-structured nesting of composite states.

This means you should either model as if composite states were there by matching all forks/decisions with a correspond join/merges …

… or check that the diagram can be translated to one that is well-nested.

This insures that diagram is executable under state machine semantics.

60

Activity Diagram Modeling Tips (4/6)

Well-nested:

Page 31: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

61

Not well-nested:

Apply structured coding principles. (Be careful with goto’s!)

Activity Diagram Modeling Tips (5/6)

62

Activity Diagram Modeling Tips (6/6)

Can be translated to well-nesteddiagram on earlier slide:

Page 32: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

63

33 Business Process ModelingBusiness Process Modeling

44 Capturing the Organization and Location AspectsCapturing the Organization and Location Aspects

Agenda

11 IntroductionIntroduction

88 Summary and ConclusionSummary and Conclusion

22 Business Model RepresentationBusiness Model Representation

55 Developing a Process ModelDeveloping a Process Model

77 Business Process InteroperabilityBusiness Process Interoperability

66 BPMN, BPML, and BPEL4WSBPMN, BPML, and BPEL4WS

64

See:» http://www.bpmi.org» http://www.processwave.net/Articles/SoftwareProcess/BusinessModelingArticles.htm» http://cde.berkeley.edu/resources/bpmn/» http://www.popkin.com/» http://www.popkin.com/customers/customer_service_center/demos/business/bpmn_tutorial_viewlet_swf.html» http://www.popkin.com/customers/customer_service_center/demos/demos_with_overview_process_map.htm

Business Process Modeling Notation (BPMN) and BPML / BPEL4WS

Page 33: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

65

Procedural Knowledge Road Map

Type ofknowledge/

LevelsConceptual model Deployment

methodologyInteroperability

ProcessInstance

levelProcess instance

conceptBPMN+ Wf-XML

Processdefinition

level

Process definitionconcept

WfMC meta-model+BPMN XPDL+

BPMN - Business Process ModelingNotation, BPMI, 11.02XPDL - XML Process Definition Language, WfMC, 07.02Wf-XML - Workflow Interoperability Binding, WfMC, 11.01

66

ICONS’ conceptual models

Process definition concepts - WfMC’sworkflow meta-model extended with » time modeling» flexible Workflow Participant Assignment

[Momotko2002]Process instance concepts» advanced process instance and activity

instance behavioral models (timing and criticality behavior)

» advanced time management

Page 34: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

67

BPMN and XPDL extensions

BPMN extension (BPMN+)» idea - standard well-known notation for both

process definition adjusted to the needs for process instance

» ICONS’ approach - a BPMN extension to visualise process execution

XPDL extension (XPDL+)» performer relationships (WPA)» pre & post conditions

68

Process Definition - An Example

Page 35: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

69

Possible Process Execution

70

33 Business Process ModelingBusiness Process Modeling

44 Capturing the Organization and Location AspectsCapturing the Organization and Location Aspects

Agenda

11 IntroductionIntroduction

88 Summary and ConclusionSummary and Conclusion

22 Business Model RepresentationBusiness Model Representation

55 Developing a Process ModelDeveloping a Process Model

77 Business Model InteroperabilityBusiness Model Interoperability

66 BPMN, BPML, and BPEL4WSBPMN, BPML, and BPEL4WS

Page 36: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

71

Semantic Web & Ontology

Semantic Web» Machine-processible semantics of data

• Semantic annotation, XML, RDF» Explicit representation of the semantics of data

accompanied with domain theories (i.e. ontologies)

» Lead to a highly knowledgeable world-wide system

Ontology» “specifications of a shared conceptualization of a

particular domain”» Describe the semantics of information exchange» Ontology description tools : ontolingua, OIL,

DAML

72

Generic Interoperability Methodology

Framework BFramework A ECIMF Interop. ModelBusiness Context MatchingBusiness Context Model

Semantic Model

Business Process Model

Syntax Model

Semantic Translation

Process Mediation

Syntax Mapping

Business Context Model

Semantic Model

Business Process Model

Syntax Model

Example: ECIMF methodology

Page 37: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

73

Generic Interoperability Methodology

Example: Relationship between the ECIML and other modeling standards.

74

Semantic Translation Layer

Box+height+width+depth+weight+stackingLevels+topSide+fragile+productID+shippingNo

Box+height+width+depth+weight+stackingLevels+topSide+fragile+productID+shippingNo

Box+height+width+depth+weight+stackingLevels+topSide+fragile+productID+shippingNo

Box+height+width+depth+weight+stackingLevels+topSide+fragile+productID+shippingNo

Box+height+width+depth+weight+stackingLevels+topSide+fragile+productID+shippingNo

Box+height+width+depth+weight+stackingLevels+topSide+fragile+productID+shippingNo

Payload

Payloadontology

Hi-Fi equipment

TV-set+color+stereo+height+width+depth+unitPrice+productID+serialNo

TV-set+color+stereo+height+width+depth+unitPrice+productID+serialNo

TV-set+color+stereo+height+width+depth+unitPrice+productID+serialNo

TV-set+color+stereo+height+width+depth+unitPrice+productID+serialNo

TV-set+color+stereo+height+width+depth+unitPrice+productID+serialNo

TV-set+color+stereo+height+width+depth+unitPrice+productID+serialNo

Hi-Fiontology

TV-set in a cardboard

box

Properties’ space

Prop

ertie

s’ sp

ace

TV-set in a cardboard

boxTV-set in a cardboard

box

Real-world entities

Mapping concepts from different ontologies

Page 38: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

75

Semantic Translation Layer

Semantic Translation meta-model

76

Business Process Mediation Layer

Enterprise A Process Mediator Enterprise BRequest

ResponseTransaction boundaries (also legal)

Transaction boundaries (also legal)Request

Response

Request

Response

Request

Response

Request

Response

Request

Response

Transaction boundaries (also legal)

Transaction boundaries (also legal)

Example scenario that requires Process Mediator.

Page 39: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

77

Business Context Matching

«Event» Shipment

«Resource» Car

2 - GIVE

«Agent» ShippingAgent

custody

stock-flow{use}

role

«Agent»Customer

1 - TAKE

«Event»CashRcpt

«Resource» Cash

«Agent» Cashier

collaboration

collaboration

role

«Commitment»Shipment

«Commitment»Payment

«Agreement»ShippingContract

labor cars

used carscash

collaborationexecutes

Uses {when, how long, etc …}Gives {when, where to, etc …}

Business Context model as seen by the shipping agency

78

Business Context Matching

«Event» Shipment

«Resource» Truck

2 - TAKE

«Agent» ShippingAgent

custody

stock-flow{use}

role

«Agent»Customer

1 - GIVE

«Event»CashRcpt

«Resource» Cash $1000

«Agent» ShippingAgent

collaboration

collaboration

role

Uses {when, how long, etc …}Gives {when, where to, etc …}

«Commitment»Shipment

«Commitment»Payment

«Agreement»ShippingContract

cash

executes

payload

shipped payload

Business Context model as seen by the customer

Page 40: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

79

Process Mediation (1/2)

80

Process Mediation (2/2)

Customer(RNIF)

Process Mediator ShippingAgency (EDI)

SecureFlowRemAdv

SecureFlowQuoteReqSecureFlow

QuoteConfirm

SecureFlowPOReqSecureFlow

POConfirm

SecureFlowInvoice

REQUOTE

QUOTES

ORDERS

ORDRSP

INVOIC

APERAK

?

Payment

Transaction boundaries (also legal)

Transaction boundaries (also legal)

Transaction boundaries (also legal)

Transaction boundaries (also legal)

Transaction boundaries (also legal)

Transaction boundaries (also legal)

REMADV?

CONTRL

?

Page 41: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

81

Semantic Translation (1/2)

Semantics of the two corresponding concepts

Box → Tv_set: needs to be obtained from a product catalogue (external resource)

N/ATv_set → Box: not neededColor

Box → Tv_set: not needed

FragileMarks the payload as fragile (requiring special care

during transportation)

Tv_set → Box: always set to True.N/A

Box → Tv_set: not needed

StackingLevelsRepresents the number of levels the boxes can be

stacked, one on top of the other.

Tv_set → Box: needs to be obtained from a product catalogue (external resource)

N/A

Box → Tv_set: not needed

WeightRepresents the weight of the box with the contents.

Tv_set → Box: needs to be obtained from a product catalogue (external resource)

Not available (N/A)

Box → Tv_set: dimension values will always be lower. Need to be obtained from a TV products catalogue (external resource) using productID

HeightWidthDepthRepresent the physical dimensions of the cardboard

box used to ship the electronic equipment of any kind. The values are discrete, because only certain box sizes are available.

Tv_set → Box: dimension values will always be higher, but discrete. Need to be obtained from a cardboard box catalogue (external resource)

HeightWidthDepthRepresent the physical dimensions of the TV set

chassis.

PropertiesMapping RulesProperties

Shipping Agency: BoxSemantic TranslationCustomer: TV-set

82

Semantic Translation (2/2)

Analyze the message delivery control mechanisms

SecureFlow

Signal

Document

Exception

RcptAckExc. GeneralExc.

RcptAck

APERAK

ORDERS

QUOTESREQUOTE

CONTRL ORDRSP

INVOICREMADV

CONTRLThis message is sent when parsing errors occur. Business data was not considered at all.

The semantics of both messages is identical, which means a 1:1 mapping can be applied, both ways.

ReceiptAckExceptionThis signal means the document was not well-formed (parsing errors). Business data was not considered at all.

EDI → RNIF: needs to be synthesized from the response document. Possible problems with timing constraints… (ack. too late)

N/A – implementation choice (positive acknowledgements are implicit).

RNIF → EDI: not needed – don’t forward.ReceiptAckThis signal means that the document business data has been accepted for further processing (which implies also well-formedness)

In this particular case, the EDI system uses APERAK and CONTRL messages only to signal exceptions. Acknowledgements are implicit, in the form of response business documents.

The RNIF business documents map 1:1 to EDI business messages, e.g.:QuoteRequest ↔ REQUOTEQuoteConfirm ↔ QUOTESPORequest ↔ ORDERSPOConfirm ↔ ORDRSPetc ...However, individual data elements can be missing, and will have to be collected from the previous messages, or supplied explicitly in the rules, or obtained from external resources.

SecureFlow consists of a business document (containing business data), and a responding business signal (acknowledgement).

Shipping Agency (EDI)Semantic TranslationCustomer (RNIF)

Page 42: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

83

Syntax Mapping

RNIFPurchaseOrderRequest

PurchaseOrder

fromRole (Supplier)

ProductLineItemProductIdentificationOrderQuantity

totalAmount

EDIORDERS

SG 28

NAD (SU)

PIA

NAD (BY)

QTYMEA

MOA

TAX-MOA-LOC

LIN

Item Catalog

Directory Economy data

X

X

fromRole (Buyer)

XrequestedUnitPrice

Message syntax mapping

84

Shared Ontology Approach to Semantic Translation

local ontology

Multiple ontologies + labels

local ontology

local ontology

Shared ontology

local ontology

Multiple ontologies + labels

local ontology

local ontology

Shared ontology

Page 43: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

85

EDOC & ebXML: Vision

EDOC» Simplify the development of component based

EDOC systems by means of a modelingframework, based on UML 1.4 and conforming to the OMG Model Driven Architecture.

» Provide a platform independent, recursive collaboration based modeling approach that can be used at different levels of granularity and different degrees of coupling, for both business and systems modeling.

» Embrace MDA – Provide design and infrastructure models and mapping

ebXML» Creating a single global electronic market

86

The Internet Computing Model

Collaboration of independent entitiesDocument exchange over internet technologies» Large grain interactions, not

“method calls”No required infrastructure *Long lived business processesBusiness transactions» Not technical transactions

BusinessParty

BusinessParty

Portals

Page 44: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

87

Requirements for the “ICM”

Contract of Collaboration» Meta-Model (EDOC-ECA) and

representation (I.E. XMI, ebXML-BPSS)

» Shared Repository for Contracts (MOF, UDDI, ebXML)

» Tightly coupled systems may simulate the repository with file exchange (I.E. IDL)

Connectivity which meets requirements of the contractImplementation of each contract role providing connectivity (application server)

BusinessPartner

BusinessPartner

Repository

Contracts(Metadata)

Contract of collaboration can be mapped to the format of various technologies. (ebXML, Soap, .NET)

Instance Data

88

Two Levels of Interoperability

Instance data and interoperability

Metadata (model) interoperability

BusinessPartner

BusinessPartner Bridge

Each can be transformed

EDOCECA

BiztalkebXML

ebXML Biztalk

Normal Form

Over Soap Over Soap

Page 45: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

89

Drilling Down – Inside a Role

Inside one role you frequently find moreCollaborating “parts”of the enterpriseUntil you get to a role within a domain» These can share

resources!» E.G. Common access to

a DBMS or Service» Exist within a managed

domain» Can also be a legacy

application

Inner RoleLegacy

InnerRole

Inner RoleDomain

ebXML does not go here, Only EDOC-ECA

Cust

90

Standards for collaboration

Internet document exchangeInternet document exchange, entities, business processes, objects and events

Computing Models Supported

Yes – As ebXML transport. BPSS includes timing and security parameters.

No – Requires technology mapping

Detail sufficient to drive communications

No – Only “B2B”Yes – Recursive Composition into Enterprise

Recursive Composition

Uses external forms, such as XML Schema

Yes – Document ModelContent Model

Yes – Binary Collaboration with Choreography and Business Transactions

Yes – Protocol with Choreography & Object Interface

Contract of InteractionYes – Multi Party CollaborationYes – Community ProcessBusiness Collaborations

ebXML-BPSSEDOC-ECA

Page 46: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

91

Parts of EDOC

Enterprise Collaboration Architecture (PIM)» Component Collaboration Architecture» Business Process Specification» Entities» Business Events» Patterns

Technology Mapping (PSM)» Flow Composition Model (Messaging)» EJB & Corba Components» ebXML (In progress)» Others…

MAPPING – Models are the standards and are source code

92

HTTP Web ServerApplications

Enterprise ArchitectureEnterprise Architecture

SQL DBMS,Client/Server

& Legacy Applications

ClientApplications

Business and datarules go here

User interface andapplication logic gohere

The data goes here

EAI Applications &B2B E-Commerce

WebBrowser

Standard Middlewareconnects applications to components & components to components

XMLCorbaEJB

DCOMMQ

Supply Chain

EnterpriseComponents

Page 47: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

93

Parts of ebXML

Business Process Specification (Like CCA)» XML Representation of business process

Core Components » Business Data Types

Collaboration Protocol Profile» What business partners implement what business processes

using what technologies» One-One agreement for doing business

Transport Routing & Packaging » Messaging Built on Soap

Registry & Repository» Finding business partners, document and process

specifications

94

ebXML Architecture

BPSpecification

Business Process

Core Data Blocks

Business Messages

CPA

Context For Built With

Implement one Partner Role Implement other

Partner Roles

Register

Designtime Designtime

CPP CPP

Transport

Package

Business Service Interface

Internal Business App

Internal Business App

Business Service Interface

Runtime

Page 48: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

95

Component Collaboration Architecture (The Model of Doing)The Marketplace Example

Mechanics Are UsBuyer

Acme IndustriesSeller

GetItThere FreightShipper

Order

Conformation

Ship Req

Shipped

Shipped

PhysicalDelivery

Delivered

Status

ProcessComplete

96

The Seller’s Detail

Order

Conformation

Shipped

Ship Req

Shipped

Delivered

Order Processing

Shipping

Receivables

Event

Page 49: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

97

Parts of a CCA Specification

Structure of process components and protocols» Process components, ports, protocols and

documents• Class Diagram or CCA Notation

Composition of process components» How components are used to specify components

• Collaboration diagram or CCA Notation

Choreography » Ordering of flows and protocols in and between

process components• Activity Diagram

98

The Community Process

Identify a “community process”, the roles and interactionsUsing CCA Notation

Buyer Seller

BuySell CommunityProcess

Buy Sell

Shipper

ShipDelivery

ShipDelivery

Page 50: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

99

Seller

Sell

Buyer

Buy

Component structure

Buys(from Buyer)

<<ProtocolPort>>

Buyer<<ProcessComponent>> <<initiates>> Sells

(from Seller)

<<ProtocolPort>>

Seller<<ProcessComponent>><<responds>>

BuySellProtocol<<Protocol>>

Component structure Defines the “outside”Contract of a component

100

OrderData<<CompositeData>>

OrderConfirmationData<<CompositeData>>

Order(from OrderBT)

<<FlowPort>>OrderConfi rmat ion

(from OrderBT)

<<FlowPort>>

OrderBT<<Protocol>><<responds>>

<<initiates>>

OrderDeniedData<<CompositeData>>OrderDenied

(from OrderBT)

<<FlowPort>>

<<initiates>>

Protocol Example

Specification of a protocol

Protocol OrderBT

OrderDenied

OrderConfirmationOrder

responderRoleSeller

initiatorRoleBuyer

Page 51: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

101

Protocol OrderBT

OrderDenied

OrderConfirmationOrder

responderRoleSeller

initiatorRoleBuyer

Choreography of Protocol

<<initiates>> Order

<<responds>> OrderDenied <<responds>> OrderConfirmation

Failure Success

102

Object Interfaces

Use standard interface notationAre a subtype of “Protocol” in the MetaModelAllow modeling of and integration with classical and/or existing objects

CustS ervic e

+ checkCustomer()+ checkCredit()

<<Interface>>

EnqStatus(from CustomerComponent)

<<ProtocolPort>>

CustomerComponent<<Entity>>

<<responds>>Interface

Protocol

Page 52: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

103

Composition

Seller : Sells

Validate : OrderValidation

: checkOrder

: reject

: acceptOrder

: CheckCustomer

Process : OrderProcessing

: doOrder

: ProcessedOrder

CustB ean : CustomerComponent

: SendOrder

: GetDenied

: GetConfirmation

: EnqStatus

Seller Composit ion

1: checkCustomer(order : Order)

Use of an interface

Composition definesthe “inside” of a component

104

ECA Entity Profile (The Model of Things)Sample Information Model

+Street : String+City : String+State : String+Zip : String

«EntityData»Addtress

+Cust

1

+Adr

1..*

+Name : String+Balance : Decimal = 0+AccountNo : long

«EntityData»Account

+InvNum : Integer+Total : Decimal

«EntityData»Invoice

-Act1-Invoices*

+Quantity : float-Price : Currency

«EntityData»LineItem +PartId : String

+Description : String+QtyInStock : float(idl)

«EntityData»Part

-Env

1

-Items

*

-Items

*

-Part

1+InvNum : Integer

«Key»InvoiceKey

-.

1

-.

1

+PartId : String

«Key»PartKey

-. 1

-. *

+AccountNo : String

«Key»AccountKey

-.

1

-.

1

+Name : String-CompanyId : String

«EntityData»Company

+CompanyId : String

«Key»CompanyKey

-.

1

-.

1

Page 53: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

105

Adding Entities

Entities are added to manage entity dataEntity Roles are managers that provides a view of the same identity in another contextThe Entities have ports for managing and accessing the entitiesNon-entities which are owned by (aggregate into) an entity are managed by the entity

+Street : String+City : String+State : String+Zip : String

«EntityData»Addtress

+Cust

1

+Adr

1..*

+Name : String+Balance : Decimal = 0+AccountNo : long

«EntityData»Account

+AccountNo : String

«Key»AccountKey

-.

1

-.

1

+Name : String-CompanyId : String

«EntityData»Company

+CompanyId : String

«Key»CompanyKey

-.

1

-.

1

.Manages

<<Entity>>CompanyManager

Manage

<<EntityRole>>AccountManager

Manage

-Manages1-.1

106

Business Process

Business Entity

BusinessRules

Business Events

Business Actions

Business Process

Business Entity

BusinessRules

Business Events

Business Actions

Event Notification

ECA Business Events (The Model of When …)Event-Based Business Processes

Page 54: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

107

App

Business Process

Business Entity

BusinessRules

Business Events

Business Actions

App

Business Process

Business Entity

BusinessRules

Business Events

Business Actions

App

Business Process

Business Entity

BusinessRules

Business Events

Business Actions

App

Business Process

Business Entity

BusinessRules

Business Events

Business Actions

Point to point Event Notification

Event Notifications

108

App

Business Process

Business Entity

BusinessRules

Business Events

Business Actions

App

Business Process

Business Entity

BusinessRules

Business Events

Business Actions

App

Business Process

Business Entity

BusinessRules

Business Events

Business Actions

App

Business Process

Business Entity

BusinessRules

Business Events

Business Actions

Pub/Sub

Pub/Sub Event Notification

Page 55: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

109

Event Example

110

EDOC Business Process (The Model of How)Business Process Model

Specializes CCAActivity-centric view of a ProcessExpresses » Complex temporal and data dependencies between

business activities» Iteration of activities» Alternative required Inputs and Outputs of activities» Roles related to performers, artifacts and responsible

parties for activities

Page 56: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

111

Data Flows

DataFlows are special CCA Connections» Uni-directional between ProcessFlowPorts» DataFlows indicate

• data dependency & transmit values at run-time, or• temporal dependency (aka control flow)

112

Patterns: Buyer/Seller

Inheritance

Composition

Page 57: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

113

33 Business Process ModelingBusiness Process Modeling

44 Capturing the Organization and Location AspectsCapturing the Organization and Location Aspects

Agenda

11 IntroductionIntroduction

88 Summary and ConclusionSummary and Conclusion

22 Business Model RepresentationBusiness Model Representation

55 Developing a Process ModelDeveloping a Process Model

77 Business Process InteroperabilityBusiness Process Interoperability

66 BPMN, BPML, and BPEL4WSBPMN, BPML, and BPEL4WS

114

Summary – Key Business Model Engineering Objectives

We must enable the emerging Internet Computing Model» Loosely coupled roles exchanging documents based on a

contract of collaboration

Web need interoperability at two levels» Messaging for the data» Metadata for the contract of collaboration, stored in

repositories

This model of collaborating roles is recursive, extending into the enterprise, into managed domains and into applications» Inside the enterprise we want to include resources entities,

business events and business processes

Between EDOC & ebXML we are covering B2B and intra enterprise

Page 58: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

115

Course Assignments

Individual AssignmentsReports based on case studies / class presentations

Project-Related AssignmentsAll assignments (other than the individual assessments) will correspond to milestones in the team project.As the course progresses, students will be applying various methodologies to a project of their choice. The project and related software system should relate to a real-world scenario chosen by each team. The project will consist of inter-related deliverables which are due on a (bi-) weekly basis.There will be only one submission per team per deliverable and all teams must demonstrate their projects to the course instructor.A sample project description and additional details will be available under handouts on the course Web site

116

Team Project

Project LogisticsTeams will pick their own projects, within certain constraints: for instance, all projects should involve multiple distributed subsystems (e.g., web-based electronic services projects including client, application server, and database tiers). Students will need to come up to speed on whatever programming languages and/or software technologies they choose for their projects - which will not necessarily be covered in class.Students will be required to form themselves into "pairs" of exactly two (2) members each; if there is an odd number of students in the class, then one (1) team of three (3) members will be permitted. There may not be any "pairs" of only one member! The instructor and TA(s) will then assist the pairs in forming "teams", ideally each consisting of two (2) "pairs", possibly three (3) pairs if necessary due to enrollment, but students are encouraged to form their own 2-pair teams in advance. If some students drop the course, any remaining pair or team members may be arbitrarily reassigned to other pairs/teams at the discretion of the instructor (but are strongly encouraged to reform pairs/teams on their own). Students will develop and test their project code together with the other member of their programming pair.

Page 59: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

117

Document Transformation methodology driven approach

Strategy Alignment Elicitation Equivalent to strategic planning

i.e., planning at the level of a project set

Strategy Alignment ExecutionEquivalent to project planning + SDLC

i.e., planning a the level of individual projects + project implementation

Build a methodology Wiki & partially implement the enablersApply transformation methodology approach to a sample problem domain for which a business solution must be foundFinal product is a wiki/report that focuses on

Methodology / methodology implementation / sample business-driven problem solution

Team Project Approach - Overall

118

Document sample problem domain and business-driven problem of interest

Problem descriptionHigh-level specification detailsHigh-level implementation detailsProposed high-level timeline

Team Project Approach – Initial Step

Page 60: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

119

Course Project

• Project Logistics• Teams will pick their own projects, within certain constraints: for instance,

all projects should involve multiple distributed subsystems (e.g., web-based electronic services projects including client, application server, and database tiers). Students will need to come up to speed on whatever programming languages and/or software technologies they choose for their projects - which will not necessarily be covered in class.

• Students will be required to form themselves into "pairs" of exactly two (2) members each; if there is an odd number of students in the class, then one (1) team of three (3) members will be permitted. There may not be any "pairs" of only one member! The instructor and TA(s) will then assist the pairs in forming "teams", ideally each consisting of two (2) "pairs", possibly three (3) pairs if necessary due to enrollment, but students are encouraged to form their own 2-pair teams in advance. If some students drop the course, any remaining pair or team members may be arbitrarily reassigned to other pairs/teams at the discretion of the instructor (but are strongly encouraged to reform pairs/teams on their own). Students will develop and test their project code together with the other member of their programming pair.

120

Sample Project MethodologyVery eXtreme Programming (VXP)

After teams formed, 1/2 week to Project Concept1/2 week to Revised Project Concept2 to 3 iterationsFor each iteration:» 1/2 week to plan» 1 week to iteration report and demo

Page 61: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

121

Sample Project MethodologyVery eXtreme Programming (VXP) - (continued)

Requirements: Your project focuses on two application servicesPlanning: User stories and work breakdownDoing: Pair programming, write test cases before coding, automate testingDemoing: 5 minute presentation plus 15 minute demoReporting: What got done, what didn’t, what tests show1st iteration: Any2nd iteration: Use some component model framework3rd iteration: Refactoring, do it right this time

122

Revised Project Concept (Tips)

1. Cover page (max 1 page)2. Basic concept (max 3 pages): Briefly

describe the system your team proposes to build. Write this description in the form of either user stories or use cases (your choice). Illustrations do not count towards page limits.

3. Controversies (max 1 page)

Page 62: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

123

First Iteration Plan (Tips)

Requirements (max 2 pages):Select user stories or use cases to implement in your first iteration, to produce a demo by the last week of classAssign priorities and points to each unit - A point should correspond to the amount of work you expect one pair to be able to accomplish within one weekYou may optionally include additional medium priority points to do “if you have time”It is acceptable to include fewer, more or different use cases or user stories than actually appeared in your Revised Project Concept

124

First Iteration Plan (Tips)

Work Breakdown (max 3 pages): Refine as engineering tasks and assign to pairsDescribe specifically what will need to be coded in order to complete each taskAlso describe what unit and integration tests will be implemented and performedYou may need additional engineering tasks that do not match one-to-one with your user stories/use casesMap out a schedule for the next weeksBe realistic – demo has to been shown before the end of the semester

Page 63: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

125

2nd Iteration Plan (Tips): Requirements

Max 3 pagesRedesign/reengineer your system to use a component framework (e.g., COM+, EJB, CCM, .NET or Web Services)Select the user stories to include in the new system» Could be identical to those completed for your 1st

Iteration» Could be brand new (but explain how they fit)

Aim to maintain project velocity from 1st

iterationConsider what will require new coding vs. major rework vs. minor rework vs. can be reused “as is”

126

2nd Iteration Plan (Tips): Breakdown

Max 4 pagesDefine engineering tasks, again try to maintain project velocityDescribe new unit and integration testingDescribe regression testing» Can you reuse tests from 1st iteration?» If not, how will you know you didn’t break

something that previously worked?2nd iteration report and demo to be presented before the end of the semester

Page 64: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

127

2nd Iteration Report (Tips): Requirements

Max 2 pagesFor each engineering task from your 2nd

Iteration Plan, indicate whether it succeeded, partially succeeded (and to what extent), failed (and how so?), or was not attemptedEstimate how many user story points were actually completed (these might be fractional)Discuss specifically your success, or lack thereof, in porting to or reengineering for your chosen component model framework(s)

128

2nd Iteration Report (Tips): Testing

Max 3 pagesDescribe the general strategy you followed for unit testing, integration testing and regression testingWere you able to reuse unit and/or integration tests, with little or no change, from your 1st

Iteration as regression tests?What was most difficult to test?Did using a component model framework help or hinder your testing?

Page 65: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

129

Project Presentation and Demo

All Iterations DuePresentation slides (optional)

130

Assignments & Readings

Readings

Slides and Handouts posted on the course web site

Textbook: Part Two-Chapters 6-8Individual Assignment (assigned)

See Session 5 Handout: “Assignment #2”

Team Project #1 (ongoing)

Team Project proposal (format TBD in class)

See Session 2 Handout: “Team Project Specification” (Part 1)

Team Exercise #1 (ongoing)Presentation topic proposal (format TBD in class)

Project Frameworks Setup (ongoing)

As per reference provided on the course Web site

Page 66: New York University Computer Science Department …...1 Software Engineering Session 7 – Main Theme Business Model Engineering Dr. Jean-Claude Franchitti New York University Computer

131

Any Questions?

132

Next Session: From Analysis and Design to Software Architecture