Technology of information systems Lecture 5 Process management.

Slides:



Advertisements
Similar presentations
On 1-soundness and Soundness of Workflow Nets Lu Ping, Hu Hao and Lü Jian Department of Computer Science Nanjing University
Advertisements

Techniques to analyze workflows (design-time)
Concurrent Operational Semantics of Safe Time Petri Nets Claude Jard European University of Brittany, ENS Cachan Bretagne, IRISA Campus de Ker-Lann,
1 SE-561 Formal Methods in Software Petri Nets - I.
An Introduction to Petri Nets
Introduction to Petri Nets Hugo Andrés López
1 Analysis of workflows : Verification, validation, and performance analysis. Wil van der Aalst Eindhoven University of Technology Faculty of Technology.
A university for the world real R © 2009, Chapter 3 Advanced Synchronization Moe Wynn Wil van der Aalst Arthur ter Hofstede.
Process Models In this section, we focus on the control-flow perspective of processes. We assume that there is a set of activity labels.
Petri Nets Section 2 Roohollah Abdipur.
Based on: Petri Nets and Industrial Applications: A Tutorial
Deterministic Negotiations: Concurrency for Free Javier Esparza Technische Universität München Joint work with Jörg Desel and Philipp Hoffmann.
Workflow Management Kap. 4. Analyzing Workflows Wil van der Aalst has copyrights to almost all figures in the following slideshow made by Lars Frank.
Chapter 3 Petri nets Learning objectives : Introduce Petri nets
1 Modeling based on Petri-nets. Lecture 8. 2 High-level Petri nets The classical Petri net was invented by Carl Adam Petri in A lot of research.
On the Dynamics of PB Systems with Volatile Membranes Giorgio Delzanno* and Laurent Van Begin** * Università di Genova, Italy ** Universitè Libre de Bruxelles,
Soundness problem for Resource-Constrained Workflow nets.
IE 469 Manufacturing Systems
1 FLACOS Malta October 2008 Service Oriented Architectures: The new Software Paradigm W. Reisig Humboldt-Universität zu Berlin Theory of Programming.
The design and implementation of a workflow analysis tool Vasa Curcin Department of Computing Imperial College London.
Equivalence of open Petri nets Modeling and analysis with Petri net components. Marc Voorhoeve (AIS)
Synthesis of Embedded Software Using Free-Choice Petri Nets.
10. Petri Nets Prof. O. Nierstrasz. Roadmap  Definition: —places, transitions, inputs, outputs —firing enabled transitions  Modelling: —concurrency.
CS447/ECE453/SE465 Prof. Alencar University of Waterloo 1 CS447/ECE453/SE465 Software Testing Tutorial Winter 2008 Based on the tutorials by Prof. Kontogiannis,
1 Analysis of workflows a-priori and a-posteriori analysis Wil van der Aalst Eindhoven University of Technology Faculty of Technology Management Department.
CP — Concurrent Programming 12. Petri Nets Prof. O. Nierstrasz Wintersemester 2005 / 2006.
A Schedulability-Preserving Transformation of BDF to Petri Nets Cong Liu EECS 290n Class Project December 10, 2004.
/k soundness of free-choice workflow nets 1 of 10 Soundness of Free Choice Workflow Nets K.M. van Hee, M. Voorhoeve Eindhoven Univ. Tech.
A 14← department of mathematics and computer science PROSE Checking Properties of Adaptive Workflow Nets K. van Hee, I. Lomazova, O. Oanea,
1 Petri Nets Marco Sgroi EE249 - Fall 2001 Most slides borrowed from Luciano Lavagno’s lecture ee249 (1998)
1 Ivan Lanese Computer Science Department University of Bologna Italy Concurrent and located synchronizations in π-calculus.
1 Relational Algebra and Calculus Yanlei Diao UMass Amherst Feb 1, 2007 Slides Courtesy of R. Ramakrishnan and J. Gehrke.
Petri Nets An Overview IE 680 Presentation April 30, 2007 Renata Kopach- Konrad.
Linear and Branching Time Safety, Liveness, and Fairness
Model-based Methods for Web Service Verification.
Chapter 14. Activity Modeling for Transformational Systems
Soundness problem for Resource-Constrained Workflow nets revisited Natalia Sidorova and Christian Stahl.
CY2003 Computer Systems Lecture 7 Petri net. © LJMU, 2004CY2003- Week 72 Overview Petri net –concepts –Petri net representation –Firing a transition –Marks.
Structured Control for Active Tree The Decidability of AXML.
An Ontological Framework for Web Service Processes By Claus Pahl and Ronan Barrett.
1 Relational Algebra and Calculas Chapter 4, Part A.
Han-na Yang Rediscovering Workflow Models from Event-Based Data using Little Thumb.
Generalized stochastic Petri nets (GSPN)
Petri Nets Lecturer: Roohollah Abdipour. Agenda Introduction Petri Net Modelling with Petri Net Analysis of Petri net 2.
Modelling by Petri nets
BPEL Business Process Engineering Language A technology used to build programs in SOA architecture.
School of Computer Science, The University of Adelaide© The University of Adelaide, Control Data Flow Graphs An experiment using Design/CPN Sue Tyerman.
CSCI1600: Embedded and Real Time Software Lecture 11: Modeling IV: Concurrency Steven Reiss, Fall 2015.
School of Computer Science & Software Engineering
CAP 4800/CAP 5805: Computer Simulation Concepts
1 Petri Nets Ina Koch and Monika Heiner. 2 Petri Nets(1962) Carl Adam Petri.
1 Lecture 23 – April 11, 2002 Semester end questions More about Bond agents Models and languages supporting concurrency Petri Nets.
/faculteit technologie management PN-1 Petri nets refresher Prof.dr.ir. Wil van der Aalst Eindhoven University of Technology, Faculty of Technology Management,
Diagnostic Information for Control-Flow Analysis of Workflow Graphs (aka Free-Choice Workflow Nets) Cédric Favre(1,2), Hagen Völzer(1), Peter Müller(2)
Process Mining – Concepts and Algorithms Review of literature on process mining techniques for event log data.
/faculteit technologie management PN-1 مهندسی مجدد فرآیندهای تجاری بخش چهارم: تحلیل فرآیندها Analysis of workflows.
composition of workflows
CSS 496 Business Process Re-engineering for BS(CS)
Dr. Eng Amr T. Abdel-Hamid
Clockless Computing COMP
Concurrent Systems Modeling using Petri Nets – Part II
Wil van der Aalst Eindhoven University of Technology
بسمه‌تعالي فصل چهاردهم شبکه‌هاي پتري.
Introduction to Petri Nets (PNs)
Modeling based on Petri-nets.
Wil van der Aalst Eindhoven University of Technology
COT 5611 Operating Systems Design Principles Spring 2012
Petri nets.
UNIT-II CHAPTER-4 SOFTWARE REQUIREMENT DEFINITION
Chapter 14. Activity Modeling for Transformational Systems
Presentation transcript:

Technology of information systems Lecture 5 Process management

Technology of information systems Contents Introduction Petri net summary Workflow nets and soundness A sound SOA framework

Technology of information systems Introduction Coordination is needed at several levels: –For business processes: this is called workflow management and it is performed by workflow engines –In (service) components: this called orchestration and is performed by worklow-like engines (e.g. BPEL) –Between components: it is called choreography and is perfomed by middleware, such as an enterprise bus In all cases coordination means the execution of a process. Coordination components are configured by process models.

Technology of information systems Petri net (1) Definition: a labeled transition system is 4-tuple: TS = such that S set of states A set of actions or events R  SxAxS the transition relation s  S is the initial state Reachability: s  a s’ iff (s,a,s’)  R s  * s’ iff s = s’   a  A, s”  S: s  a s”  s”  * s’

Technology of information systems Petri net (2) Definition Petri net: a Petri net N is 3-tuple: N= –P set of places –T set of transitions –F: (PxT)  (TxP)  IN the flow relation a marking M is a bag over P (element of bag.P) (N,M) denotes a Petri net N with (initial) marking M subnet N’ of N: all elements of N’ are subsets of the elements of N

Technology of information systems Petri net (3) Notations: 1.  t is the preset of transition t, similarly: t  is the postset of t 2.  t, t   bag.P, bags over the places 3.  t(p) = F(p,t) and t  (p) = F(t,p) 4.the flow matrix: [N] [N](p,t) = F(t,p) - F(p,t) 5.A bag over {a,b,c,d} with 3 a’s, 2 b’s and 1 c is denoted by [a 3,b 2,c] Extra: inhibitor arcs : ◦t: P  {true, false}, ◦ t(p)=true iff p is an inhibitor for t

Technology of information systems Petri net (4) Transition system of a Petri net Petri net: Petri system (,M) M is initial marking Transition systems: S = bag.P A = T R = {(m,t,m’) | m ≥  t  m’ = m -  t + t  } s = M In case of inhibitor arcs: R={(m,t,m’) | m ≥  t  m’ = m -  t + t    p  P: ◦ t(p) = true  m(p) = 0}

Technology of information systems Petri net (5) Petri nets may have an infinite state space. Petri nets with inhibitor arcs are Turing complete.

Technology of information systems Two safe and fair traffic lights rg1 red1 yellow1 green1 yr1 gy1 rg2 red2 yellow2 green2 yr2 gy2 safe2 safe1 Petri net (6)

Technology of information systems Petri net (7) interleaving: x or y step: x or y or (x and y) multi-step: x or y or (x and y) or 2.x or 2.y we use interleaving semantics Semantics

Technology of information systems Petri net (8) Notions: Firing sequence for M if from marking M the transitions can successively fire Parikh vector of a firing sequence  is a vector   :T  IN that is the bag of , i.e.: if  = then   = [a 2,b 2,c 3,d,e]

Technology of information systems Petri net (9) Two essential properties: marking equation if M   M’ then M’ = M + [N].   additivity of markings if M i  i M i ’ then for all interleavings  of   n : M M n   M 1 ’+...+M n ’

Technology of information systems Petri net (10) More notions : reachability: M’ is reachable from M iff M  * M’ reachability graph: graph with markings as nodes and transitions as arcs (M,t,M’) iff M  t M’ liveness: transition t is live if for all markings M there is a reachable marking M’ with t ≤ M’ dead: transition t is dead in M iff t is not enabled in any reachable marking M’ from M deadlock: marking M is a deadlock iff no transition in M is enabled

Technology of information systems Petri net (11) More notions : k-Boundedness: in all reachable markings the number of tokens  k safety: 1-boundedness Conservative net: (N,M) iff all reachable markings have the same number of tokens Home marking a marking M’ is a home marking of (N,M) iff for all reachable M” we have M”  * M’

Technology of information systems Workflow net (1) N has two special places: i and f Every node is on a directed path from i to f Equivalent definition: the closure is strongly connected Definition of workflow net: A Petri net N is a WF-net iff

Technology of information systems Workflow net (2) WF-nets are used to model: Work processes where cases or jobs have to be executed Example of cases or jobs are: –A claim in an insurance company –The assembly of a bike –A complex update in a database (all amounts have to be transformed from dollars into euro’s) –Handling of a request in a SOA component Each transition represents a task to be performed by a resource

Technology of information systems pay_damage startregister c5 c3 c4 c2 c1 check_damage send_letter NOK OK NOK OK check_policy 2 x ! Example Workflow net (3)

Technology of information systems Workflow net (4) pay_damage startregister c5 c3 c4 c2 c1 check_damage send_letter NOK OK check_policy NOK

Technology of information systems Workflow net (5) Definition of soundness a WF-net is k-sound iff [f k ] is a home marking for initial marking [i k ], i.e.  M: ( [i k ]  * M )  ( M  * [f k ] ) A WF-net is sound iff it is k-sound for all k. Soundness is a very important property: it means that workflows are able to end in a proper way

Technology of information systems Examples 1-sound, not 2-sound exactly n x k-sound i f if Workflow net (6)

Technology of information systems Properties 1. If sound then  M: ([i k ]  * M  M  [f k ])  M = [f k ] 2. If the closure is live and bounded then a WF- net is 1-sound 3. If a WF-net is 1-sound, then its closure is bounded. 4. k-soundness is decidable 5. Soundness is decidable Workflow net (7)

Technology of information systems Workflow net (8) Special structured WF-nets: A Petri net is a State Machine WF-net (SMWF) iff it is a WF-net and  t  T: |  t| = 1  |t  | = 1 Properties For every SMWF N, (N,[i]) is conservative Every SMWF N is a sound WF-net

Technology of information systems Workflow net (9) A Petri net is a Marked Graph WF-net (MGWF) iff it is a WF-net and  p  P : |  p| ≤ 1  |p  | ≤ 1 Properties : (N,[i]) is safe and every loop-free path from i to f has at most one token (N,[i k ]) is k-bounded Every acyclic MGWF is sound

Technology of information systems Workflow net (10) A Petri net is a Free Choice WF-net (FCWF) iff it is a WF-net and  t 1,t 2  T :  t 1   t 2     t 1 =  t 2 Properties : Every SMWF-net and every MGWF-net is a FCWF- net A 1-sound FCWF-net is sound

Technology of information systems Construction techniques idea: Correctness by construction If we have sound nets and we compose them to bigger ones in the right way, we want sound nets again Also correctness by reduction: find patterns and reduce a net to a sound one, and expand again to the original one by “legal” constructions Workflow net (11)

Technology of information systems Rule 1: place refinement Rule 2: transition refinement Rule 3: place duplication Rule 4: transition duplication Rule 5: iteration Workflow net (12) Property : Start with one place and apply the rules: the net is always a sound WF-net. Restriction: rule 5 may not be applied to i or f.

Technology of information systems Sell side of a component Sound SOA framework (1)

Technology of information systems General task structure Sound SOA framework (2)

Technology of information systems Overview Sound SOA framework (3) Each task is realized internally or by an external service

Technology of information systems Orchestration: Sequential composition Sound SOA framework (4)

Technology of information systems Orchestration: Choice construct Sound SOA framework (5)

Technology of information systems Orchestration: Parallel composition Sound SOA framework (6)

Technology of information systems Orchestration: While construct Sound SOA framework (7)

Technology of information systems Soundness argument Sound SOA framework (8)

Technology of information systems The price of a service in this framework Assumptions: For each service the lowest price is k with probability p k We are prepared to pay at most m So: The expected cost of a task is: c= ∑ k=1->m k. p k The probability of success: s= ∑ k=1->m p k The probability of failure: 1-s Sound SOA framework (9)

Technology of information systems The price of a compound task to be computed in a recursive way Technology of information systems Sequential composition: (tasks a and b) Sound SOA framework (10) C(a) is the expected cost of task a

Technology of information systems Parallel composition: Technology of information systems Sound SOA framework (11)

Technology of information systems Choice construct: Technology of information systems Sound SOA framework (12)

Technology of information systems While construct: Technology of information systems All these operators are associative! Sound SOA framework (13) a 1-α α