Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... ·...

70
Subclasses, Reduction Rules, and Process Mining prof.dr.ir. Wil van der Aalst

Transcript of Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... ·...

Page 1: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

Subclasses, Reduction Rules, and Process Mining

prof.dr.ir. Wil van der Aalst

Page 2: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 1

Design-time analysis vs run-time analysis

(software) system

(process)model

eventlogs

modelsanalyzes

discovery

records events, e.g., messages,

transactions, etc.

specifies configures implements

analyzes

supports/controls

extension

conformance

“world”

people services

organizationscomponents

business processes

verification

performance analysis

validation

design-time analysis

run-time analysis

e.g., systems like WebSphere, Oracle, TIBCO/Staffware, SAP, FLOWer, etc.

e.g., dedicated formats such as IBM’s Common Event Infrastructure (CEI) and MXML or proprietary formats stored in flat files or database tables.

e.g. process models represented in BPMN, BPEL, EPCs, Petri nets, UML AD, etc. or other types of models such as social networks, organizational networks, decision trees, etc.

Page 3: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 2

Outline

• Reduction rules• Subclasses• Process mining (introduction)

Page 4: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 3

Relevant material

1. Jörg Desel, Wolfgang Reisig: Place/Transition Petri Nets. Petri Nets 1996: 122-173. DOI: 10.1007/3-540-65306-6_15 http://www.springerlink.com/content/x6hn592l35866lu8/fulltext.pdf

2. Tadao Murata, Petri Nets: Properties, Analysis and Applications, Proceedings of the IEEE. 77(4): 541-580, April, 1989. http://dx.doi.org/10.1109/5.24143 http://ieeexplore.ieee.org/iel1/5/911/00024143.pdf

3. Wil van der Aalst: Process Mining: Discovery, Conformance and Enhancement of Business Processes, Springer Verlag 2011 (chapters 1 & 5)

a) Chapter 1: DOI: 10.1007/978-3-642-19345-3_1 http://www.springerlink.com/content/p443h219v3u3537l/fulltext.pdf

b) Chapter 5: DOI: 10.1007/978-3-642-19345-3_5 http://www.springerlink.com/content/u58h17n3167p0x1u/fulltext.pdf

c) Events logs: http://www.processmining.org/book/

Today's focus is on 2 and 3a.

Page 5: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

Reduction rules

Page 6: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 5

Basic properties revisited ...

terminatingit has only finite occurrence sequencesdeadlock-freeeach reachable marking enables a transitionliveeach reachable marking enables an occurrence sequence containing all transitionsboundedeach place has an upper bound that holds for all reachable markings1-safe1 is a bound for each place s reversiblem0 is reachable from each reachable marking, i.e., the initial marking is a so-called home marking.

Page 7: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 6

B=BoundedL=LiveR= Reversible

Taken from Murata.

23=8

Page 8: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 7

1/8

Page 9: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 8

2/8

Page 10: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 9

3/8

Page 11: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 10

4/8

Page 12: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 11

5/8

Page 13: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 12

6/8

Page 14: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 13

7/8

Page 15: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 14

8/8

Page 17: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 16

Goal of reduction rules

• Let (N, M) and (N’, M') be the Petri nets before and after. Then (N’, M') is live, safe, or bounded if and only if (N, M) is live, safe, or bounded, respectively.

both are bounded and non-live

Page 18: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 17

Fusion of Series Places (FSP)

Page 19: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 18

Fusion of Series Transitions (FST)

Page 20: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 19

Fusion of Parallel Places (FPP)

Page 21: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 20

Fusion of Parallel Transitions (FPT)

Page 22: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 21

Elimination of Self-loop Places (ESP)

Page 23: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 22

Elimination of Self-loop Transitions (EST)

Page 24: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 23

Example

Fusion of Series Transitions (FST)

Fusion of Series Places (FSP)

Page 25: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 24

Elimination of Self-loopPlaces (ESP)

Elimination of Self-loopTransitions (EST)

Page 26: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 25

Just the silent steps are reduced!

Page 27: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 26

More information

• Supported by tools like ProM and Woflan.• G. Berthelot. Checking properties of nets using transformation. In

Advances in Petri Nets 1985, pages 19–40, London, UK, 1986. Springer-Verlag.

• G. Berthelot. Transformations and Decompositions of Nets. In W. Brauer, W. Reisig, and G. Rozenberg, editors, Petri Nets: Central Models and Their Properties, Advances in Petri Nets, Proceedings of an Advanced Course, Part 1, volume 254 of Lecture Notes in Computer Science, pages 359–376, Bad Honnef, September 1986. Springer-Verlag.

• J. Desel and J. Esparza. Free Choice Petri Nets, volume 40 of Cambridge Tracts in Theoretical Computer Science. Cambridge University Press, Cambridge, United Kingdom, 1995.

• M.T. Wynn, H.M.W. Verbeek, W.M.P. van der Aalst, A.H.M. ter Hofstede and D. Edmond, Reduction Rules for Reset Workflow Nets, BPM Technical Report, BPM-06-25, BPMcenter.org, 2006.

Page 28: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

Subclasses

Page 29: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 28

Subclasses of Petri nets(taken from Murata's paper)

Page 30: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 29

Input and output nodes

Page 31: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 30

State machine

Page 32: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 31

Marked graph

Page 33: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 32

MG

Page 34: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 33

Free-choice net

Page 35: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 34

Extended-free-choice net

OK

Page 36: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 35

Transformation

EFC FC

Page 37: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 36

Asymmetric choice net

Page 38: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 37

Which class?

AC MG not AC

Page 39: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 38

Which class and which properties?

FC, live, bounded, safe, reversible

Give a live, bounded, safe, and non-reversible initial marking.

Page 40: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 39

Obvious properties for state machines

Page 41: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 40

Marked graphs

1 1 1

Page 42: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 41

Free-choice nets

Recall that for any Petri net: If every proper siphon of a system includes an initially marked trap, then the system is deadlock free.

Not live since the siphon {pl,p2,p4} contains no (marked) traps.

Page 43: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 48

(Extended) free-choice nets

• Liveness and boundedness can be decided in polynomial time!!!!

• Uses (outside scope):

Page 44: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 49

Conclusion

expressiveness

analyzability

Page 45: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

Introduction to Process Mining

Page 46: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 51

Role of models

software system

process/systemmodel

modelsanalyzes

specifies configures implements

analyzes

supports/controls“world”

people machines

organizationscomponents

business processes

verification

Page 47: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 52

Event logs are a reflection of reality

software system

eventlogs

records events, e.g., messages,

transactions, etc.

supports/controls“world”

people machines

organizationscomponents

business processes

Page 48: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 53

Examples:

Page 49: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 54

Process mining: Linking events to models

software system

process/systemmodel

eventlogs

modelsanalyzes

discovery

records events, e.g., messages,

transactions, etc.

specifies configures implements

analyzes

supports/controls

conformance

“world”

people machines

organizationscomponents

business processes

verification

Page 50: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 55

Discovery

software system

process/systemmodel

eventlogs

modelsanalyzes

discovery

records events, e.g., messages,

transactions, etc.

specifies configures implements

analyzes

supports/controls

conformance

“world”

people machines

organizationscomponents

business processes

verification

Page 51: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 56

MXML Log- instances: 3512- audit trail entries: 46138

ProM supports +40 types of model discovery!

Page 52: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 57

Page 53: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 58

Page 54: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 59

Page 55: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 60

throughput time

bottle-necks

flow time from A to

B

Page 56: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 61

Conformance Checking

software system

process/systemmodel

eventlogs

modelsanalyzes

discovery

records events, e.g., messages,

transactions, etc.

specifies configures implements

analyzes

supports/controls

conformance

“world”

people machines

organizationscomponents

business processes

verification

Page 57: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 62

76%

100%

incorrect model

correct model

Page 58: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

ProM

• www.processmining.org• ProM supports all of the techniques mentioned in

book and on slides!• Pluggable architecture. • Major differences between ProM 5.2 (and earlier) and

ProM 6.

PAGE 63

Page 59: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

Screenshot of ProM 5.2

PAGE 64

Page 60: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

Screenshot of ProM 6

PAGE 65(based on handover of work)

Page 61: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

ProM 6: α miner

PAGE 66

Page 62: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

ProM 6: Social network analyzer

PAGE 67

Page 63: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

Example plug-ins in ProM 6(see book and website)

PAGE 68

Page 64: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

Some process mining tools

PAGE 69

Page 65: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

Futura Reflect (process view)(also embedded in BPM|one)

PAGE 70

Page 66: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

Futura Reflect(social network)

PAGE 71

Page 67: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

Loading and converting event logs

• XESame, Nitro, ProMimport

PAGE 72

Page 68: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

More information on Process Mining

• www.processmining.org• www.processmining.org/book/ (slides supporting book)• http://www.processmining.org/event_logs_and_models_used_in_book

(event logs and models)

PAGE 73

Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P. van der Aalst, Springer Verlag, 2011 (ISBN 978-3-642-19344-6).

Page 69: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

Conclusion

Page 70: Subclasses, Reduction Rules, and Process Miningcpntools.org/wp-content/uploads/2018/01/red... · Process Mining: Discovery, Conformance and Enhancement of Business Processes by W.M.P.

PAGE 75

After this lecture you should be able to:

• Apply the boundedness and liveness preserving reduction rules to a concrete marked net.

• Know the following subclasses: state machine (SM), marked graph (MG), free-choice (FC), extended free-choice (EFC), asymmetric choice (AC).

• Construct a Petri net that has a set of desirable properties (terminating, deadlock-free, live, bounded, safe, and/or reversible) and that is of a particular subclass (SM, MG, FC, EFC, or AC).

• Know the various properties given for particular subclasses, e.g.:– liveness in marked graphs (Theorem 7)– liveness in free-choice nets (Theorem 12)– (SM and MG covers for free choice nets (Theorems 13 and 14))

• Give an overview of process mining.