realizabilityof interaction models

21
Realizability of Interaction Models Gero Decker ZEUS Workshop, Stuttgart 3 Mar 2009

Upload: gerodecker

Post on 27-Jun-2015

706 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Realizabilityof Interaction Models

Realizabilityof Interaction Models

Gero Decker

ZEUS Workshop, Stuttgart

3 Mar 2009

Page 2: Realizabilityof Interaction Models

Realizability of Interaction Models | Gero Decker | 24. April 2006

2

Agenda

1. Why use the interaction modeling style (rather than the interconnection modeling style)?

2. When are choreographies realizable, i.e. there exist participants that collectively realize the specified behavior?

3. What impact do branching structures have on realizability checking?

Page 3: Realizabilityof Interaction Models

Realizability of Interaction Models | Gero Decker | 24. April 2006

3

Process Choreographies

■ Inter-organizational integration requires interaction contracts

□ Defined document structures / message types

□ Defined interaction behavior: constraints and obligations

“A choreography defines the sequence and conditions under which multiple cooperating independent agents exchange messages in order to perform a task to achieve a goal state.” [W3C Glossary]

SellerAuctioning

ServiceSuccessful

BidderUnsuccessful

Bidder

Creation request

Bid

Bid

Notification

Notification

Notification

Delivery

Payment

Page 4: Realizabilityof Interaction Models

Realizability of Interaction Models | Gero Decker | 24. April 2006

4

SellerAuctioning

ServiceSuccessful

BidderUnsuccessful

Bidder

Creation request

Bid

Bid

Notification

Notification

Notification

Delivery

Payment

Choreography Modeling

:Seller

b2:Bidder

:Auctioning Service

1:creationRequest

2a:bid

2b:bid

3b:notification

3c:notification

b1:Bidder

4:delivery

5:payment

3a:notification

!participation_req ?participation_req

!liab_req

pr

a

r

pr

?reject?accept !accept!reject

?liab_reqlr

br

ba

!reject!accepta

r

?accept?reject

ba

br

lr

Auctioning Service

Bidder Financial Institution

?a

?b

?c !d!a

!b

!c ?d

?e

Bid

ders

Sel

ler

Auc

tioni

ng S

ervi

ce

Cre

atio

n

req

ue

st

No

tific

a-

tion

No

tific

a-

tion

No

tific

a-

tion

Bid

De

live

ry

Pa

yme

nt

Page 5: Realizabilityof Interaction Models

Realizability of Interaction Models | Gero Decker | 24. April 2006

5

Two Modeling Styles

■ Local ordering constraints

■ Distinction between control flow and message flow

■ MSC, BPMN

■ BPEL4Chor

■ Global ordering constraints

■ Interactions as atomic building blocks

■ UML Comm. Diagrams

■ BPSS, WS-CDL

■ Let’s Dance, iBPMN

Interconnection Models Interaction Models

Place order

Send ack

Send paymentB

uyer

Sel

ler

Buyer Seller

order

Buyer Seller

payment

Seller Buyer

ack

Page 6: Realizabilityof Interaction Models

Realizability of Interaction Models | Gero Decker | 24. April 2006

6

Send auction creation req.

Send details

Auction crea-tion confirm.

Sel

ler

Request details

Send creation confirmation

Auc

tioni

ng S

ervi

ce

Auction creation request

Trusted customer

no

yes

Send payment

Payment

Interconnection Models

incompatibleloops

incompatiblebranching structures

incompatible sequence flow

abstraction level =messages

Page 7: Realizabilityof Interaction Models

Realizability of Interaction Models | Gero Decker | 24. April 2006

7

Seller

Auctioning Service

Auctioncreation confirm.

Auction creation request

Trusted customer?

no

yes

Payment

Exchange details

Interaction Models

atomicinteractions

decisionownership

global controlflow dependencies

complexinteractionsglobal loops

Page 8: Realizabilityof Interaction Models

Realizability of Interaction Models | Gero Decker | 24. April 2006

8

Interaction Petri Nets

Page 9: Realizabilityof Interaction Models

Realizability of Interaction Models | Gero Decker | 24. April 2006

9

Interaction Petri Nets

Customer

ManufacturerReseller

Payment Org

C R

Order

R M

Prod Req

R PO

Inv Req

PO C

Invoice

M C

Product

Page 10: Realizabilityof Interaction Models

Realizability of Interaction Models | Gero Decker | 24. April 2006

10

Realizability

A B

m1

C D

m2

A B

m1

C D

m2

A B

m1

C B

m2

A B

m1C D

m3

B C

m2

A A

τ

A B

x

A A

τ

A B

x

B C

y

Page 11: Realizabilityof Interaction Models

Realizability of Interaction Models | Gero Decker | 24. April 2006

11

Realizability – Two Dimensions

■ Communication model

□ Synchronous (blocking send vs. failing)

□ Asynchronous (FIFO queue vs. standard buffer)

■ “Similarity” of behavior

□ Complete behavior

□ Subset of behavior (proper termination vs. reachability constraints)

□ Equivalence notion (trace vs. bi-simulation vs. …)

Page 12: Realizabilityof Interaction Models

Realizability of Interaction Models | Gero Decker | 24. April 2006

12

Realizability – Existing Work

■ Fu, Bultan & Su: Realizability (2004)

□ Projection: remove transitions + minimal deterministic automaton

□ Asynchronous, complete behavior (trace equivalence)

■ Decker & Weske: Local Enforceability (2007)

□ Projection: remove transitions + keep branching structure

□ Synchronous, subset of behavior (pattern-based + “blocked” transitions)

■ Decker, Barros, Kraft & Lohmann: Desynchronizability (2008)

□ Requires realizability for the synchronous case

□ Weak termination for the asynchronous case

Page 13: Realizabilityof Interaction Models

Realizability of Interaction Models | Gero Decker | 24. April 2006

13

Fu, Bultan & Su: Realizability (2004)

Traces = { [(A,τ,A),(A,x,B),(B,y,C)], [(A,τ,A),(A,x,B)]}

Traces = { [(A,τ,A),(A,x,B),(B,y,C)], [(A,τ,A),(A,x,B)]}

(A,τ,A)

(A,τ,A)

(A,x,B)

(A,x,B)

(B,y,C)

(A,τ,A) (A,x,B) (B,y,C)

(A,x,B)(A,τ,A) (B,y,A)

(A,x,B) (B,y,C)

Page 14: Realizabilityof Interaction Models

Realizability of Interaction Models | Gero Decker | 24. April 2006

14

Now: Focus on Branching Structures

(A,τ,A)

(A,τ,A)

(A,x,B)

(A,x,B)

(B,y,C)

(B,y,C)(A,x,B) (B,y,C)

(A,τ,A)

(A,τ,A)

(A,x,B)

(A,x,B)

(A,τ,A)

(A,τ,A)

(A,x,B)

(A,x,B)

(B,y,C)

(B,y,C)

(A,x,B)

(A,x,B)

(B,y,C)

Page 15: Realizabilityof Interaction Models

Realizability of Interaction Models | Gero Decker | 24. April 2006

15

Role Projection: Preserving Branching Structures

(A,τ,A)

(A,τ,A)

(A,x,B)

(A,x,B)

(B,y,C)

s1

s2 s3 s4

s5s6

s1

s2 s5

s3 s6(A,x,B) s4 (B,y,C)

Page 16: Realizabilityof Interaction Models

Realizability of Interaction Models | Gero Decker | 24. April 2006

16

Role Projection: Preserving Branching Structures

(A,τ,A)

(A,τ,A)

(A,x,B)

(A,x,B)

s1

s2 s4

s5s7

(A,y,B)

(A,z,B)

s3

s6

s1

s2 s5

s3 s6(A,x,B)

s4

s7

(A,y,B)

(A,z,B)

Page 17: Realizabilityof Interaction Models

Realizability of Interaction Models | Gero Decker | 24. April 2006

17

Role Projection: Preserving Branching Structures

(A,τ,A)

(A,τ,A)

(A,x,B)

(A,x,B)

s1

s2

s7

s8

s5

(B,z,A)

s3

(B,τ,B)

(B,τ,B)

s4

s6

s9

(B,τ,B)

(B,τ,B)

s10

s11

(B,z,A)

(B,y,A)

(B,y,A)

s1

s3

s4 s6

(A,x,B)s2

s8

(A,τ,A)

(A,τ,A) s9

s10 s11

(A,x,B)

s7

(B,z,A)

(B,z,A)

s5(B,y,A)

(B,y,A)

n1

n2

n6

n3

n7 n5

n4

s1

s2 s8

s3 s9(A,x,B)

s4 s10

s6 s10

s6 s11

s4 s11

(B,τ,B)

(B,τ,B)

(B,τ,B)

(B,τ,B)

s1 s5

s2 s8

(A,x,B)s5

(B,y,A)

(B,y,A)

s7

(B,z,A)

(B,z,A)

(B,z,A)(B,y,A)

n1

n2

n3

n4

n5

n6

n7

n8

n9

Page 18: Realizabilityof Interaction Models

Realizability of Interaction Models | Gero Decker | 24. April 2006

18

Open Issue: Proofs

■ Define Full Realizability: There exist role behavior models the composition of which are bi-similar to the choreography

■ Theorem: A choreography is fully realizable if and only if the composition of the role projections is bi-similar to the choreography

■ Proof (idea): Show that the role behavior models must look exactly like they look if their composition is to be bi-similar

Page 19: Realizabilityof Interaction Models

Realizability of Interaction Models | Gero Decker | 24. April 2006

19

Open Issue: Subset of Behavior

■ If a choreography is not fully realizable then

□ Remove transitions from the composition that are not allowed by to the choreography

□ Imply which transitions in the role behavior models must be removed to achieve this removal in the composition

□ Try to find (reduced) role behavior models the composition of which shows a valid subset of the behavior of the choreography

Page 20: Realizabilityof Interaction Models

Realizability of Interaction Models | Gero Decker | 24. April 2006

20

Conclusion

■ Interaction modeling imposes challenge of realizability

■ Different flavors of realizability

□ Communication model / similarity of behavior

■ Role projection as “best guess” for local behavior

■ Branching structures important if local choices to be considered

■ Role projection must reflect branching structures

■ Unifying theory still missing Niels?

Page 21: Realizabilityof Interaction Models

Realizability of Interaction Models | Gero Decker | 24. April 2006

21

Questions?

■ Mail [email protected]

■ Tool http://oryx-editor.org

■ Blog http://bpmn.info