49
Business Processes Modelling MPB (6 cfu, 295AA) Roberto Bruni http://www.di.unipi.it/~bruni 02 - Examples 1

Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Business Processes Modelling MPB (6 cfu, 295AA)

Roberto Bruni http://www.di.unipi.it/~bruni

02 - Examples

!1

Page 2: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Insurance claim example

2

Sect.1.3 of Workflow Management: Models, Methods, and Systems

Page 3: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

An example: insurance claim

3

1. recording the receipt of the claim 2. establishing the type of the claim 3. checking covering of client's policy 4. checking the premium (payments up to date?) 5. rejection, if 3 or 4 has negative result 6. producing a rejection letter 7. roughly estimate the amount to be paid, if 3 & 4 have positive results 8. appointment of an assessor, if needed 9. revision of the amount offered to the client 10. recording client's reaction 11. assessment of objection: decision to revise 9 or take legal action 12 12. legal proceedings 13. payment of claim 14. filing and closure of claim

Page 4: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Tasks

4

14-filing

13-payment 12-legal proc.

11-assessment

10-reaction

9-revision

8-assessor

7-estimate

6-rejection letter

5-rejection?

4-premium3-policy

2-type

1-recording

1. recording the receipt of the claim

2. establishing the type of the claim

3. checking covering of client's policy

4. checking the premium (payments up to date?)

5. rejection, if 3 or 4 has negative result

6. producing a rejection letter

7. roughly estimate the amount to be paid, if 3 & 4 have positive results

8. appointment of an assessor, if needed

9. revision of the amount offered to the client

10. recording client's reaction

11. assessment of objection: decision to revise 9 or take legal action 12

12. legal proceedings

13. payment of claim

14. filing and closure of claim

Page 5: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Order / links

5

14-filing

13-payment 12-legal proc.

11-assessment

10-reaction

9-revision

8-assessor

7-estimate

6-rejection letter

5-rejection?

4-premium3-policy

2-type

1-recording

Page 6: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Some link patterns

6

Page 7: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Sequence

7

2-type

1-recording

Page 8: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Parallel

8

5-rejection?

4-premium3-policy

2-type

Page 9: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Selection

9

7-estimate

6-rejection letter

5-rejection?

Page 10: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Another selection

10

9-revision

8-assessor

7-estimate

Page 11: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Iteration

11

12-legal proc.

11-assessment

10-reaction

9-revision

Page 12: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Ambiguity!

12

7-estimate

6-rejection letter

5-rejection?

4-premium3-policy

2-typeBoth tasks 3 and 4 are always executed

Task 6 and 7 are possibly executed but not both

Page 13: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Disambiguation

13

7-estimate

6-rejection letter

5-rejection?

4-premium3-policy

2-type

x

+

x

+ parallel split

choice split

Page 14: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Ambiguity!

14

14-filing

13-payment

6-rejection letter

5-rejection?

4-premium3-policy

Both tasks 3 and 4 must be completed

before task 5

Task 6 and 13 are possibly executed but not both

Page 15: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Disambiguation

15

14-filing

13-payment

6-rejection letter

5-rejection?

4-premium3-policy

x

+ parallel split / join

choice split / join

+

x

Page 16: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Orchestration

16

Business process models are performed in a single organization by definition

Thus, the ordering of activities can be controlled by a business process management system as

a centralized software component run by the organization

This kind of control is called orchestration

Page 17: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Orchestration

17

Orchestration is about describing and executing a single view point model

The analogy is with the conductor who centrally controls the musicians in an orchestra

Page 18: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Executing the model

18

14-filing

13-payment 12-legal proc.

11-assessment

10-reaction

9-revision

8-assessor

7-estimate

6-rejection letter

5-rejection?

4-premium3-policy

2-type

1-recording

Page 19: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

A process instance

19

14-filing

13-payment 12-legal proc.

11-assessment

10-reaction

9-revision

8-assessor

7-estimate

6-rejection letter

5-rejection?

4-premium3-policy

2-type

1-recording1 2 3 4 5 6

14

1 2 4 3 5 6

14

Page 20: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Another instance

20

14-filing

13-payment 12-legal proc.

11-assessment

10-reaction

9-revision

8-assessor

7-estimate

6-rejection letter

5-rejection?

4-premium3-policy

2-type

1-recording

1 2 3 4 5 7 8 9

10 11 13 14

1 2 4 3 5 7 8 9

10 11 13 14

Page 21: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Workflow management coalition (WfMC)

21

Founded in the ‘90s by vendors, users, academia: fix standard for Wf representation and execution

http://www.wfmc.org

Page 22: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Workflow

22

Definition: a workflow is the automation of a business process, in whole or in part,

during which documents, information, or tasks are passed from one participant to another for action,

according to a set of procedural rules

Page 23: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Workflow management system

23

Definition: a workflow management system is a software system that defines, creates, and manages Wfs execution, running on one or more workflow engines, able to interpret the workflow definition, able to interact with workflow participants, and able to invoke the use of IT tools and applications

Page 24: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Kinds of workflow

24

Definition: a system workflow consists of activities that are implemented by software systems without any user involvement

Definition: Workflows in which humans are actively involved and interact with information systems are called human interaction workflows.

Page 25: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Example: Human interaction workflow

25

Page 26: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Human interaction workflows

26

Goal: support automation by driving the human activities

according to the process model

Benefits: reduce idle periods

avoid redundant work improve human/machine work integration

Page 27: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Roles

27

Roles are groups of employees that qualify for being responsible of certain activities.

Increased flexibility: different persons can cover the same role at

different time in different cases

Page 28: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Human collaboration

28

When task performed by humans are involved in the workflow, it is not sufficient to equip workers

with adequate software:

their collaboration must be supported

shared data repositories and work handover can speed-up office procedure considerably

Page 29: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Some limitations

29

Problems with knowledge workers:

User acceptance issues

Machine burdening of workers

Little room for creativity and flexibility

Page 30: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Exercise

30

Travel agency orchestration: define a series of task for booking a flight, a hotel and optionally a car, with the possibility to change dates, to cancel the booking, to confirm the booking. Then, draw a process diagram relating the tasks.

Page 31: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Buyer & Reseller example

31

Sect.1.1 of Business Process Management: Concepts, Languages, Architectures

Page 32: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Example: Reseller

32

Receive Order

Send Invoice

Ship Products

Receive Payment

Archive Order

M. W

eske

: Bus

ines

s P

roce

ss M

anag

emen

t,©

Spr

inge

r-Ve

rlag

Ber

lin H

eide

lber

g 2

007

We move to BPMN-like syntax

start event

end event

Page 33: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Example: Reseller

33

Receive Order

Send Invoice

Ship Products

Receive Payment

Archive Order

A pool is a rectangle that encloses a business process

(it can be divided in lanes to distribute tasks to different actors)

M. W

eske

: Bus

ines

s P

roce

ss M

anag

emen

t,©

Spr

inge

r-Ve

rlag

Ber

lin H

eide

lber

g 2

007

We move to BPMN-like syntax

pool

Page 34: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Example: Reseller

34

Receive Order

Send Invoice

Ship Products

Receive Payment

Archive Order

A reseller can use the business process model above to configure the business process

management system accordingly

All instances will be executed as specified (after receiving the order, send and ship activites

are concurrently executed)

M. W

eske

: Bus

ines

s P

roce

ss M

anag

emen

t,©

Spr

inge

r-Ve

rlag

Ber

lin H

eide

lber

g 2

007

R1

Page 35: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Example: Buyers

35

Place Order

Receive Invoice

Receive Products

Settle Invoice

M. W

eske

: Bus

ines

s P

roce

ss M

anag

emen

t,©

Spr

inge

r-Ve

rlag

Ber

lin H

eide

lber

g 2

007

Different processes are

possible, but…

do they all make sense?

B1

Place Order

Receive Products

Receive Invoice

Settle Invoice

B2

Place Order

Receive Products

Receive Invoice

Settle Invoice B3

Page 36: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Buyer & Reseller

36

Receive Order

Send Invoice

Ship Products

Receive Payment

M. W

eske

: Bus

ines

s P

roce

ss M

anag

emen

t,©

Spr

inge

r-Ve

rlag

Ber

lin H

eide

lber

g 2

007

Separately developed processes need to communicate!

Place Order

Receive Invoice

Receive Products

Settle Invoice

Page 37: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Cross-organization interaction

37

Each business process is enacted by one organization

Business processes can interact with each other

Interacting activities of business processes must be related together

Page 38: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Interacting processes

38

M. W

eske

: Bus

ines

s P

roce

ss M

anag

emen

t,©

Spr

inge

r-Ve

rlag

Ber

lin H

eide

lber

g 2

007

Place Order

Receive Invoice

Receive Products

Settle Invoice

Receive Order

Send Invoice

Ship Products

Receive Payment

Interacting processes can exchange information (electronic messages, physically transported objects)

Page 39: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Interacting processes

39

M. W

eske

: Bus

ines

s P

roce

ss M

anag

emen

t,©

Spr

inge

r-Ve

rlag

Ber

lin H

eide

lber

g 2

007

Message flow is represented by dotted arcs

We move to BPMN-like syntax

Place Order

Receive Invoice

Receive Products

Settle Invoice

Receive Order

Send Invoice

Ship Products

Receive Payment

Page 40: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Choreography

40

The interactions of a set of business processes are specified in a process choreography

Difference w.r.t. orchestration: the absence of a central agent that controls the

activities in the business processes involved

For the interaction to be realized correctly, the interacting business processes better be aware and agree upon the choreography in advance

Page 41: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Choreography

41

Choreography is about describing a global model (multi-point view)

The analogy is with the dancers who behave autonomously, but follow their parts in the choreography

Page 42: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Choreography diagram

42

Choreography diagrams allow for multiple concrete implementations, with different software support

Old-fashioned order: a buyer browses a paper catalogue of a reseller, then fills a postcard and sends it by snail mail and pay by bank transfer

e-commerce: a buyer browses an online web catalogue, fills a virtual basket and an electronic form (billing information) and presses the submit button. The goods themselves may be intangible

(e-books, music, video, software)

Page 43: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Interaction issues

43

As said, interacting business processes must be aware and agree upon the choreography

In such cases, the realization of business processes by participants can change without

affecting the overall behaviour

On the other hand, if the change is not done correctly, then some problems may arise

Page 44: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Question time

44

M. W

eske

: Bus

ines

s P

roce

ss M

anag

emen

t,©

Spr

inge

r-Ve

rlag

Ber

lin H

eide

lber

g 2

007

Place Order

Receive Invoice

Receive Products

Settle Invoice

Work fine together!

R1

B1

Receive Order

Send Invoice

Ship Products

Receive Payment

Page 45: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Question time

45

M. W

eske

: Bus

ines

s P

roce

ss M

anag

emen

t,©

Spr

inge

r-Ve

rlag

Ber

lin H

eide

lber

g 2

007

Place Order

Receive Invoice

Receive Products

Settle Invoice

Receive Order

Send Invoice

Receive Payment

Ship Products

Still working fine?

R2

B1

Page 46: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Question time

46

M. W

eske

: Bus

ines

s P

roce

ss M

anag

emen

t,©

Spr

inge

r-Ve

rlag

Ber

lin H

eide

lber

g 2

007

Receive Order

Send Invoice

Receive Payment

Ship Products

Still working fine?

Place Order

Receive Invoice

Receive Products

Settle Invoice B4

R2

Page 47: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Exercises

47

In previous slides, we have seen many variants of business processes for resellers (two) and buyers (four).

Build a “compatibility” matrix with two rows and four columns and mark all the combinations for which some

problems may arise during the interaction because activities are not implemented in the expected order.

You are also free to consider other process diagrams, by adding the corresponding rows / columns to the matrix.

Page 48: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

48

ok

ok no

B1 B2 B3 B4

R1

R2

Page 49: Business Processes Modelling MPB (6 cfu, 295AA)didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformaticaecono... · booking a flight, a hotel and optionally a car, with the

Exercise

49

Coffee break choreography: Draw the process diagram for a vending machine that accepts a coin, then gives the possibility

(1) to get a coffee or (2) to insert another coin and get either a

cappuccino or a tea. Draw the process diagrams for a compatible butler robot and a "problematic" butler robot.

DRINKS

TEA

COFFEE

CAPPUCCINO

DON’T KNOW

BEST NOT