44
Detection of Process Antipatterns: An BPEL Perspective Francis Palma , Naouel Moha, and Yann-Gaël Guéhéneuc MRI-BP 2013 Ptidej Team, École Polytechnique de Montréal, Canada Latece, Université du Québec à Montréal, Canada

130905 francis palma - detection of process antipatterns - a bpel perspective

Embed Size (px)

DESCRIPTION

Business processes, anti-patterns, BCEL

Citation preview

Page 1: 130905   francis palma - detection of process antipatterns - a bpel perspective

Detection of Process Antipatterns: An BPEL Perspective

Francis Palma, Naouel Moha, and Yann-Gaël Guéhéneuc

MRI-BP 2013

Ptidej Team, École Polytechnique de Montréal, Canada

Latece, Université du Québec à Montréal, Canada

Page 2: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Context

2 of 21

• Service Oriented Architecture (SOA)

• Service-based systems (SBSs)

• Business Process Modeling Notation (BPMN)

• Business Process Execution Language (BPEL)

• Service orchestration using control logics

• Design patterns and Antipatterns

Page 3: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Context

3 of 21

Web services Client application Users

messages messages

BPEL Engine

BPEL Process

Page 4: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Context

3 of 21

Web services Client application Users

messages messages

BPMN model

BPEL Engine

BPEL Process

Page 5: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Context

3 of 21

Web services Client application Users

messages messages

Early design

anomalies

BPMN model

BPEL Engine

BPEL Process

Page 6: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Context

3 of 21

Web services Client application Users

messages messages

Early design

anomalies

BPMN model

BPEL process

BPEL Engine

BPEL Process

Page 7: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Context

3 of 21

Web services Client application Users

messages messages

Early design

anomalies

BPMN model

BPEL process Transformation errors

BPEL Engine

BPEL Process

Page 8: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Context

3 of 21

Web services Client application Users

messages messages

Early design

anomalies

BPMN model

BPEL process

Conceptual

mismatch

Transformation errors

BPEL Engine

BPEL Process

Page 9: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Context

3 of 21

Web services Client application Users

messages messages

Early design

anomalies

BPMN model

BPEL process

Conceptual

mismatch

Transformation errors

BPEL Engine

BPEL Process

Evolution Evolution

Page 10: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Context

3 of 21

Web services Client application Users

messages messages

Early design

anomalies

Transformation errors

BPMN model

BPEL process

Conceptual

mismatch

Antipatterns!

BPEL Engine

BPEL Process

Evolution Evolution

Page 11: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Context

3 of 21

BPEL Engine

BPEL Process

Web services Client application Users

messages messages

Early design

anomalies

hard to maintain

and evolve

bad quality of

service

poor design

BPMN model

BPEL process

Conceptual

mismatch

Antipatterns!

Transformation errors Evolution Evolution

Page 12: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Context: Process Antipatterns

4 of 21

Start Deadlock!!!

(A,B) D

(A,B,C)

(b) Dangling Inputs and Outputs

(a) Deadlocks Through Decision-Join Pairs

Page 13: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Outline

Page 14: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Outline

Page 15: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 5 of 21

Motivation: Why Antipatterns

• Antipatterns:

- From wrong design decisions to poor solutions

• Poor solutions result:

- bad quality of service (QoS)

- less maintainability, evolvability etc.

• Detect antipatterns within processes

• Improve design and QoS

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Page 16: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 6 of 21

Motivation: Why BPEL ? • BPEL processes are off-the-shelf entities, BPMN is more documentation related - transition often broken, not symmetric • Ideologically, antipatterns in BPMN and BPEL processes represents same semantics, but some syntactic differences exist • Antipatterns in models (BPMN) already got much attention in the literature: - target audience: business analysts • Conceptual mismatch between BPMN and BPEL - differ in control flow support, e.g., loops, splits, joins, etc. • Transformation errors and early design errors: - translation, adaptation, and–or implementation errors - errors by business analysts

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Page 17: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Outline

Page 18: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 7 of 21

Related Work (1/2)

Model Antipatterns:

- Onoda et al. (1999): catalog of 5 deadlock patterns

- Persson et al. (2006) and Stirna et al. (2009): 6 process patterns

and 13 process antipatterns

- Koehler and Vanhatalo (2007): 14 structural antipatterns in process models

- Trcka et al. (2009): formalized 9 process antipatterns using temporal logic

Detection of Model Antipatterns:

- Gruhn and Laue (2010): heuristic-based approach for discovering

problems in BPMs

- Laue and Awad (2010): visually represented process antipatterns

Process Patterns:

- Wohed et al. (2002): analysed BPEL4WS based on workflow and

communication patterns

- Aalst et al. (2003): discussed 26 control flow, branching-synchronization,

and structural patterns

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Page 19: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 8 of 21

Related Work (2/2)

Identified gaps from the literature: - Antipatterns and detection approaches were considered only for BPMN models

- No other formal specifications for process antipatterns except the one by Trcka et al. (2009)

- Various quality aspects (e.g., availability or response time of Web services) were not considered

- No automatic detection approach for BPEL process antipatterns until now

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Page 20: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Outline

Page 21: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 9 of 21

Solution towards detection

• We propose to:

- specify process antipatterns using classical Rules of

Inference

- define a concrete approach

• We perform a small detection experiment

- seven antipatterns, three example BPEL processes

- show results for two antipatterns

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Page 22: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 10 of 21

Approach (1/5)

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Page 23: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 11 of 21

Approach (2/5): Specify Rules

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Start

(A,B) D

(A,B,C)

Page 24: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 12 of 21

Approach (3/5): Process Transform

• Process transformation (more abstract and simplified)

(a) from the original BPEL to a simplified BPEL

(b) from the simplified BPEL to a generic model

• Goal of this transformation is to ease:

- implementation of the rules

- further analysis of the processes

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Page 25: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 13 of 21

Approach (4/5): Process Transform

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

(a)

Page 26: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 13 of 21

Approach (4/5): Process Transform

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

(a)

(b)

Page 27: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 14 of 21

Approach (5/5): Detection

• The implementation of rules

• Applying implemented algorithms on transformed models

• Detection is now semi-automatic

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Page 28: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Outline

Page 29: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 15 of 21

Experiments (1/5): Objects travelProcess auctionProcess salesProcess

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

3 Web services 7 I/O Var

3 Web services 6 I/O Var

2 Web services 4 I/O Var

Page 30: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 16 of 21

Experiments (2/5): Subjects

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Page 31: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 17 of 21

Experiments (3/5): Results

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

no detection

no detection

N/A

N/A

Page 32: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 17 of 21

Experiments (3/5): Results

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

no detection

no detection

N/A

N/A

Page 33: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 18 of 21

Experiments (4/5): Results (cont.)

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Page 34: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 18 of 21

Experiments (4/5): Results (cont.)

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Page 35: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 19 of 21

Experiments (5/5): Threats to Validity

External validity: Possibility to generalize the

results for other large and realistic business processes

Construct validity: Different engineers might define

rules differently

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Page 36: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Outline

Page 37: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 20 of 21

Conclusion

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Page 38: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 20 of 21

Conclusion

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Page 39: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 20 of 21

Conclusion

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Page 40: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 20 of 21

Conclusion

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Page 41: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 21 of 21

Future work

• Perform experiments on other large and complex

business processes

- Limitation: availability of business processes

• Automate the approach

• Detect more process antipatterns

• Analyse the processes dynamically

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Page 42: 130905   francis palma - detection of process antipatterns - a bpel perspective

Thanks for your attention! Questions?

Page 43: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 16 of 21

Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective

Page 44: 130905   francis palma - detection of process antipatterns - a bpel perspective

September 10, 2013 16 of 21

Experiments (4/5): Results (cont.)

salesProcess travelProcess Context

Motivation

Related Work

Approach

Experiments

Conclusion

Palma et al. | Detection of Process Antipatterns: An BPEL Perspective