Transitions and Arcs

Total Page:16

File Type:pdf, Size:1020Kb

Transitions and Arcs Concurrent Systems Modeling using Petri Nets Marlon Dumas (Based on lecture material by Wil van der Aalst Eindhoven University of Technology, The Netherlands http://www,workflowcourse.com) (c) Wil van der Aalst, Eindhoven University of Technology PN-1 Behavior Modeling: State Machines (c) Wil van der Aalst, Eindhoven University of Technology PN-2 Limitations of state machines • Three doctors in a medical centre • What if there are 6 doctors? • What if doctors can arrive and leave ((gso long as they are not busy)? • State explosion… (c) Wil van der Aalst, Eindhoven University of Technology PN-3 Concurrent systems modeling • State machines are useful to model behaviour of seqqyuential systems • But many systems are concurrent by nature • Statechart diagrams overcome some of the limitations (through compound states), but not all • Petri nets are a family of techniques for modeling systems with concurrency, communication and synchronization (c) Wil van der Aalst, Eindhoven University of Technology PN-4 Classical Petri net • Simple technique for concurrent systems modeling – Three elements: places, transitions and arcs. – Graphical and mathematical description. – Formal semantics and allows for analysis. • Implemented in verification and simulation tools (e.g. CPN Tools, LoLa, ProM). • Once you un ders tand Pe tri ne ts, you will be be tter equipped to understand other techniques for modeling systems with concurrency (e. g. process modeling notations) (c) Wil van der Aalst, Eindhoven University of Technology PN-5 p4 place Elements t34 t43 transition (name) p3 place t23 t32 p2 (name) transition token arc (()directed connection) t12 t21 token p1 t01 t10 p0 (c) Wil van der Aalst, Eindhoven University of Technology PN-6 free Rules wait enter before make_picture after leave gone occupied • Connections are directed. • No connections between two places or two transitions. • Places may hold zero or more tokens. • First, we consider the case of at most one arc between two nodes. (c) Wil van der Aalst, Eindhoven University of Technology PN-7 Enabled Transition • A transition is enabled if each of its input places contains at least one token. free wait enter before make_picture after leave gone occupied enabled Not Not (c) Wil van der Aalst, Eindhoven University of Technology enabled enabled PN-8 Firing •An enabled transition can fire (i.e., it occurs). • When it fires it consumes a token from each input place and produces a token for each output place. free fired wait enter before make_picture after leave gone occupied (c) Wil van der Aalst, Eindhoven University of Technology PN-9 “Token Game” • In the new state, make_picture is enabled. It will fire, etc. free wait enter before make_picture after leave gone occupied (c) Wil van der Aalst, Eindhoven University of Technology PN-10 Remarks • Firing is atomic. • Multiple transitions may be enabled, but only one fires at a time (called: interleaving semantics). • The number of tokens mayyy vary if there are transitions for which the number of input places is not equal to the number of output places. • The state is represented by the distribution of tokens over pp(laces (also referred to as marking). • Any state machine can be trivially converted into a Petri net – How? (c) Wil van der Aalst, Eindhoven University of Technology PN-11 Non-determinism p4 p4 t34 t43 t34 t43 p3 p3 t23 t32 t23 t32 transition t23 p2 fires p2 t12 t21 t12 t21 p1 p1 Two transitions are enabled but only one can fire t01 t10 t01 t10 p0 p0 (c) Wil van der Aalst, Eindhoven University of Technology PN-12 Example: Single traffic light rg green red go orange or (c) Wil van der Aalst, Eindhoven University of Technology PN-13 Two traffic lights rg rg rg green green green red go red go OR red go orange orange orange or or or (c) Wil van der Aalst, Eindhoven University of Technology PN-14 Problem (c) Wil van der Aalst, Eindhoven University of Technology PN-15 Solution rg1 rg2 g1 g2 r1 go1 x go2 r2 How to make o1 o2 them alternate? or1 or2 (c) Wil van der Aalst, Eindhoven University of Technology PN-16 Playing the “Token Game” on the Internet • FLASH animations: http://is.tm .tue .nl/staff/wvdaalst/workflowcourse/l ecture2.htm • Applet to build your own Petri nets and execute them: http://is.tm .tue .nl/staff/wvdaalst/workflowcourse/ pn_applet/pn_applet.htm (c) Wil van der Aalst, Eindhoven University of Technology PN-17 Exercise: Doctor’s scenario in Petri nets Case 1: Patients arrive and leave, number of doctors fixed Case 2: Patients arrive and leave, doctors arrive and leave (but only leave when they are free) Case 3: When patients arrive, they are classified into simple and complex cases . Simple cases require only a doctor , complex cases require a doctor and a nurse. (Assume doctors and nurses do not arrive nor leave) (c) Wil van der Aalst, Eindhoven University of Technology PN-18 Exercise: Train system • Consider a circular railroad system with 4 (one- way) tracks ( (,,,)1,2,3,4) and 2 trains ( (,)A,B). No two trains should be at the same track at the same time and we do not care about the identities of the two trains. http://is.tm.tue.nl/staff/wvdaalst/workflowcourse/ exercises/exercise2_3.htm (c) Wil van der Aalst, Eindhoven University of Technology PN-19 Multiple arcs connecting two nodes • The number of arcs between an input place and a transition determines the number of tokens required to be enabled. • The number of arcs determines the number of tokens to be consumed/produced. free wait enter before make_picture after leave gone (c) Wil van der Aalst, Eindhoven University of Technology PN-20 Example: Ball game red black rb rr bb Which transition(()s) is/are enabled? (c) Wil van der Aalst, Eindhoven University of Technology PN-21 Exercise: Manufacturing a chair • Model the manufacturing of a chair from its components: 2 front legs, 2 back legs, 3 cross bars, 1 seat frame, and 1 seat cushion as a Petri net. • Select some sensible assembly order. (c) Wil van der Aalst, Eindhoven University of Technology PN-22 Exercise: Burning alcohol. • Model C2H5OH + 3 * O2 => 2 * CO2 + 3 * H2O • Assume that there are two steps: first each molecule is disassembled into its atoms and then these atoms are assembled into other molecules. (c) Wil van der Aalst, Eindhoven University of Technology PN-23 Exercise: Manufacturing a car • Model the production process shown in the Bill- Of-Materials. car subassembly2 engine 2 chair subassembly1 4 chassis wheel (c) Wil van der Aalst, Eindhoven University of Technology PN-24 You should be able to ... • ElihtiPtitExplain what is a Petri net an dhtd what are thbithe basic elements of (plain) Petri nets • Play a tktoken game on a PtiPetri net . • Model simple concurrent systems using Petri nets. (c) Wil van der Aalst, Eindhoven University of Technology PN-25.
Recommended publications
  • Service Interaction: Patterns, Formalization, and Analysis
    Service Interaction: Patterns, Formalization, and Analysis 9th International School on Formal Methods for the Design of Computer, Communication and Software Systems: Web Services (SFM-09:WS), Bertinoro, Italy, June 1-6, 2009. prof.dr.ir. Wil van der Aalst www.vdaalst.org Joint work with Arjan Mooij, Christian Stahl, and Karsten Wolf BEST: Berlin - Rostock- Eindhoven Service Technology Program http://www2.informatik.hu-berlin.de/top/best/ PAGE 1 Outline • Introduction to Service Interaction • Workflow and Service Interaction Patterns • Challenging Analysis Questions • A "Crash Course" in Petri Nets • Exposing Services • Replacing and Refining Services • Integrating Services Using Adapters • Service Mining • Conclusion PAGE 2 Introduction to Service Interaction Service-Orientation: Basic Idea invoke receive reply PAGE 4 Service Networks PAGE 5 Choreography PAGE 6 Orchestration orchestration service B service service C A service D PAGE 7 Workflow? PAGE 8 Some Terminology service choreography service definition activity channel activity port channel message port service definition service definition interface interface Important assumption: asynchronous communication. PAGE 9 Interaction is a source of errors! PAGE 10 PAGE 11 deadlock PAGE 12 restaurant is "uncontrollable"* customer is *by any service with only dead "controllable" but will final markings never get any food PAGE 13 PAGE 14 Workflow and Service Interaction Patterns MS Workflow Foundation Global 360 BPM Suite YAWL FileNet InConcert Fujitsu Interstage Axxerion BWise Software AG/webMethods
    [Show full text]
  • Application of Clustering Filters in Order to Exclude Irrelevant
    Turkish Journal of Computer and Mathematics Education Vol.12 No.6 (2021), 1815-1827 Research Article Application of Clustering Filters in Order to Exclude Irrelevant Instances of the Process Before Using Reinforcement Learning to Optimize Business Processes in the Bank Andrey A. Bugaenko* Data Science Director, Sberbank PJSC, Moscow, Russia *Corresponding author: Email: [email protected], [email protected] ORCID 0000-0002-3372-5652 Article History: Received: 10 November 2020; Revised 12 January 2021 Accepted: 27 January 2021; Published online: 5 April 2021 ___________________________________________________________________________ Abstract The research offers and describes the use of clustering filters in order to exclude preliminarily the instances of the process, which contain errors, and which are not related directly with the business process, and, accordingly, are irrelevant for the analysis. Comparison of 15 types of filters was performed using mapped-out data. It was shown that successful preliminary filtering is possible before the application of reinforcement learning for business process analysis, which reduces the data processing amount. Key words Machine learning, process mining, clustering filters, DBSCAN, SVM, robust covariance, isolation forest, local outlier factor, banking. ___________________________________________________________________________ Introduction Currently, when applying reinforcement learning in order to analyze business processes in the bank divisions[14]-[15], we quite often see the situation, when the erroneous actions of managers performing the process, which are not related to the business process directly, are logged in the system and drawn in the network graph of the process as additional nodes, thus distorting the actual time of the completion of the process nodes. This not only distorts the vision of the process, but makes the network graph more complicated, and most importantly, slows down data processing materially.
    [Show full text]
  • Curriculum Vitae Michael Zur Muehlen 939 Bloomfield Street Hoboken, NJ 07030, USA Home Phone: +1 (551) 208‐1071
    Curriculum Vitae Michael zur Muehlen 939 Bloomfield Street Hoboken, NJ 07030, USA Home Phone: +1 (551) 208‐1071 Management Summary . Internationally respected authority on Business Process Innovation and Operational Risk Management . Assistant Professor, School of Technology Management, Stevens Institute of Technology . Independent Business Process Management & Transformation Consultant . FelloW, WorkfloW Management Coalition . Author of dozens of peer‐revieWed research studies and published articles Synopsis Dr. Michael zur Muehlen directs the SAP/IDS Scheer Center of Excellence in Business Process Innovation at Stevens Institute of Technology, in Hoboken, NJ, and is responsible for Stevens’ graduate and executive education programs in Business Process Management and Service Innovation. He has over 15 years of experience in the field of process automation and WorkfloW management, and has led numerous process improvement and design projects in the utility, financial services, industrial, and telecommunications sector both in Germany and the US. Prior to his appointment at Stevens, Michael Was a senior lecturer at the Department of Information Systems, University of Muenster, Germany, and a visiting lecturer at the University of Tartu, Estonia. An active contributor to standards in the BPM area, Michael Was named a felloW of the WorkfloW Management Coalition in 2004 and chairs the WfMC Working group “Management and Audit”. He studies the practical use of process modeling standards, techniques to manage operational risks in business processes, and the integration of business processes and business rules. SAP Research, the US Army, the Australian Research Council, and private sponsors have funded his research. Michael has presented his research in more than 20 countries. He is the author of a book on WorkfloW‐based process controlling, numerous journal articles, conference papers, book chapters and Working papers on process management and WorkfloW automation.
    [Show full text]
  • Business Process Trends Spotlight
    Spotlight Volume 5, Number 1 January 17, 2012 January Sponsor Academic BPM INTRODUCTION In this Spotlight, we offer some thoughts on what is happening in the BPM academic world, include several of the publications authored by BPM academics and researchers that we have published on BPTrends, and provide some resources for people interested in academic BPM. I imagine that there are many Business Process Practitioners out there who are like me – they switch back and forth between fearing that we are simply involved in a consulting activity that will have a new name in 3-4 years, and feeling confident that we are well on the way to being a profession with a recognized core body of knowledge and best practices. I have been around long enough to watch Performance Improvement, Six Sigma, Business Process Reengineering, Lean and Business Process Management enjoy their moment in the sun. I continue to hope that Business Process Management (BPM) will evolve as a sustainable concept that embraces all of the earlier practices, that is supported by am established body of knowledge and best practices that is recognized and embraced by organizations world-wide. It’s difficult for consultants to market and sell a comprehensive BPM solution because we are often dealing with organizations that seek to play one approach against another. “So,” a company manager might say, “just how is your BPM approach different from Six Sigma or Lean, and why should we use BPM for this project?.” In this context, it is often difficult to explain that BPM is a more comprehensive approach to process improvement that is focused on aligning, integrating, measuring and managing all of an organization’s business processes and that BPM includes the application of all the other available techniques, where and when they are appropriate.
    [Show full text]
  • Process Mining of Enterprise Applications Based on Outsystems Agile Platform
    Process Mining of Enterprise Applications based on OutSystems Agile Platform Alexandre L. Gouveia IST – Instituto Superior Técnico Avenida Prof. Dr. Cavaco Silva 2744-016 Porto Salvo, Portugal E-mail: [email protected] Abstract. Process Mining allows the analysis of business processes based on event logs. When a certain application is running, data referring to its events are recorded to these event logs. Using the details of the recorded events, such as their identification, their status, the date and time they were executed and the connection they have to other events, the business processes embedded in this application can be discovered. By an analysis of a considerable amount of events through process mining algorithms, it is possible to reveal behavioral patterns as well as the process model that drives the application execution. Through the study and comparison of these patterns and models with the ones that modeled the application, an overall improvement to the application may be achieved through successive refinements. The purpose of this paper is to illustrate how process mining can be applied in a specific application development platform, namely the Agile Platform of OutSystems. Keywords: Process Mining, OutSystems Platform, Agile Development, Event Log, Process Models 1 Introduction The term of Process Mining was introduced by [6] for the method of extracting the description of a structured process from a set of events, where each event refers to a task (i.e., a real execution). In their work they referred to process discovery concepts [12] and the idea of applying this method on the context of workflow management [8].
    [Show full text]
  • Hybrid Intelligence to Automate Or Not to There Used to Be a Clear Separation Between Automate, That Is the Question Tasks Done by Machines and Tasks Done by People
    prof.dr.ir Wil van der Aalst Hybrid RWTH Aachen University Intelligence Hybrid Intelligence To Automate or Not to There used to be a clear separation between Automate, That is the question tasks done by machines and tasks done by people. Applications of Machine Learning (ML) and Robotic Process Automation (RPA) have machine learning in lowered the threshold to automate tasks previously done by humans. speech recognition (e.g., Yet organizations are struggling to apply ML and RPA, effectively causing many digital transformation initiatives to fail. Process Mining (PM) Alexa and Siri), image techniques help to decide what should be automated and what not. recognition, automated Interestingly, most processes work best using a combination of human translation, autonomous and machine intelligence. Therefore, we relate Hybrid Intelligence (HI) driving, and medical to process management and process automation using RPA and PM. diagnosis, have blurred the classical divide between human tasks and machine tasks. Although current AI technology outperforms humans in many areas, tasks requiring common sense, contextual knowledge, creativity, adaptivity, and empathy As Niels Bohr once said "It is difficult to make predictions, especially about the future" and, of course, this also applies to process are still best performed management and automation. In 1964, the RAND Corporation published by humans. Hybrid a report with predictions about technological development based on the Intelligence (HI) blends expectations of 82 experts across various fields. For 1980, the report human intelligence and predicted that there would be a manned landing on Mars and families machine intelligence to would have robots as household servants. We are still not any way close combine the best of both to visiting Mars and, 40 years later, we only have robot vacuum cleaners.
    [Show full text]
  • Easychair Preprint Object-Centric Process Mining: Dealing With
    EasyChair Preprint № 2301 Object-Centric Process Mining: Dealing With Divergence and Convergence in Event Data Wil M.P. van der Aalst EasyChair preprints are intended for rapid dissemination of research results and are integrated with the rest of EasyChair. January 2, 2020 Object-Centric Process Mining: Dealing With Divergence and Convergence in Event Data Wil M.P. van der Aalst1;2[0000−0002−0955−6940] 1 Process and Data Science (PADS), RWTH Aachen University, Aachen, Germany 2 Fraunhofer Institute for Applied Information Technology, Sankt Augustin, Germany [email protected] Abstract. Process mining techniques use event data to answer a variety of process-related questions. Process discovery, conformance checking, model enhancement, and operational support are used to improve perfor- mance and compliance. Process mining starts from recorded events that are each characterized by a case identifier, an activity name, a timestamp, and optional attributes like resource or costs. In many applications, there are multiple candidate identifiers leading to different views on the same process. Moreover, one event may be related to different cases (conver- gence) and, for a given case, there may be multiple instances of the same activity within a case (divergence). To create a traditional process model, the event data need to be “flattened”. There are typically multiple choices possible, leading to different views that are disconnected. There- fore, one quickly loses the overview and event data need to be exacted multiple times (for the different views). Different approaches have been proposed to tackle the problem. This paper discusses the gap between real event data and the event logs required by traditional process min- ing techniques.
    [Show full text]
  • Blockchains for Business Process Management - Challenges and Opportunities
    Downloaded from orbit.dtu.dk on: Sep 26, 2021 Blockchains for Business Process Management - Challenges and Opportunities Mendling, Jan; Weber, Ingo; Van Der Aalst, Wil; Brocke, Jan vom; Cabanillas, Cristina; Daniel, Florian; Debois, Soren; Di Ciccio, Claudio; Dumas, Marlon; Dustdar, Schahram Total number of authors: 32 Published in: ACM Transactions on Management Information Systems Link to article, DOI: 10.1145/3183367 Publication date: 2018 Document Version Peer reviewed version Link back to DTU Orbit Citation (APA): Mendling, J., Weber, I., Van Der Aalst, W., Brocke, J. V., Cabanillas, C., Daniel, F., Debois, S., Di Ciccio, C., Dumas, M., Dustdar, S., Gal, A., Garcia-Banuelos, L., Governatori, G., Hull, T. R., La Rosa, M., Leopold, H., Leymann, F., Recker, J., Reichert, M., ... Zhu, L. (2018). Blockchains for Business Process Management - Challenges and Opportunities. ACM Transactions on Management Information Systems, 9(1), [4]. https://doi.org/10.1145/3183367 General rights Copyright and moral rights for the publications made accessible in the public portal are retained by the authors and/or other copyright owners and it is a condition of accessing publications that users recognise and abide by the legal requirements associated with these rights. Users may download and print one copy of any publication from the public portal for the purpose of private study or research. You may not further distribute the material or use it for any profit-making activity or commercial gain You may freely distribute the URL identifying the publication in the public portal If you believe that this document breaches copyright please contact us providing details, and we will remove access to the work immediately and investigate your claim.
    [Show full text]
  • Applicability of Process Mining Techniques in Business Environments
    Alma Mater Studiorum —Universita` di Bologna Universita` degli Studi di Padova Dottorato di Ricerca in Informatica Ciclo XXV Settore Concorsuale di afferenza: 01/B1 Settore Scientifico disciplinare: INF/01 Applicability of Process Mining Techniques in Business Environments Presentata da: Andrea Burattin Coordinatore Dottorato Relatore Prof. Maurizio Gabbrielli Prof. Alessandro Sperduti Esame finale anno 2013 2 Abstract This thesis analyses problems related to the applicability, in business en- vironments, of Process Mining tools and techniques. The first contribution reported in this thesis consists in a presentation of the state of the art of Process Mining and a characterization of compa- nies, in terms of their “process awareness”. The work continues identify- ing and reporting the possible circumstance where problems, both “prac- tical” and “conceptual”, can emerge. We identified these three possible problem sources: (i) data preparation (e.g., syntactic translation of data, missing data); (ii) the actual mining (e.g., mining algorithm exploiting all data available); and (iii) results interpretation. Several other problems identified are orthogonal to all sources: for example, the configuration of parameters by not-expert users or the computational complexity. This work proposes at least one solution for each of the presented problems. It is possible to locate the proposed solutions in two scenarios: the first considers the classical “batch Process Mining” paradigm (also known as “off-line”); the second introduces the “on-line Process Mining”. Concerning the batch Process Mining, we first investigated the data preparation problem and we proposed a solution for the identification of the “case-ids” whenever this field is hidden (i.e., when it is not explicitly indicated).
    [Show full text]
  • Business Process Discovery in Real Time
    Business Process Discovery in Real Time Jo~aoJ. Oliveira IST { Technical University of Lisbon Av. Prof. Dr. An´ıbalCavaco Silva 2744-016 Porto Salvo, Portugal [email protected] Abstract. The process mining research field is fairly recent, however it counts with numerous techniques that enable extraction of business process models based on event logs produced in information systems. Typically, these events are extracted to a log file and then analyzed with proper tools, such as ProM. This type of analysis is made over historical data, and by the time it is performed, results could, eventually, be out- dated, in the case that business rules/routines had changed or evolved. The main objective of this dissertation is to develop a process mining tool that can be used in real time as the events are being produced. Furthermore, it is imperative to study the behavior of the tool, as the events occur, being incorporated in real time and updating the models instantaneously. Key words: Process Mining, Complex Event Processing, Event-Driven Architecture, ECA Rules 1 Introduction Monitoring business processes is important to improve the efficiency of orga- nization processes. The Process-Aware Information Systems (PAIS) enable the recording of events { in the event log { that are being generated by the organi- zation, through the execution of it. Enterprise Resource Planning (ERP), Cus- tomer Relationship Management (CRM) or Supply Chain Management (SCM) are examples of the referred ones, among the other existing systems at present [1,2,3]. Typically the discovery of business processes is accomplished throughout the usage of log files.
    [Show full text]
  • Process Mining As the Superglue Between Data and Process
    Process Mining as the Superglue prof.dr.ir. Wil van der Aalst RWTH Aachen University between Data and Process Management W: vdaalst.com T:@wvdaalst 9th International Conference on Data Science, Technology and Applications (DATA 2020) 15th International Conference on Software Technologies (ICSOFT 2020) Lieusaint, Paris, France © Wil van der Aalst (use only with permission & acknowledgements) ExSpect: Executable Specification Tool (1988-2000) © Wil van der Aalst (use only with permission & acknowledgements) Workflow Management (YAWL, patterns, etc.) (1994-2006) © Wil van der Aalst (use only with permission & acknowledgements) YAWL Specification in CPN Tools © Wil van der Aalst (use only with permission & acknowledgements) Great, but most behavioral models suck! • It seems impossible to (perfectly) capture real systems and processes in formal models. • Workflow management and business process management systems (driven by models) failed to support most of the real-live processes. Yet, process orientation remains important and event data have become widely available. © Wil van der Aalst (use only with permission & acknowledgements) Process Mining Bridging Data Science and Process Science © Wil van der Aalst (use only with permission & acknowledgements) “process management by modeling” Petri nets Formal methods Concurrency theory < 1999 BPM, WFM, etc. ≥ 1999 Simulation Process mining Predictive analytics Process discovery Conformance checking “process management by mining” © Wil van der Aalst (use only with permission & acknowledgements) •
    [Show full text]
  • Wil Van Der Aalst and a New BPM Program
    Harmon on BPM Paul Harmon| Wil van der Aalst and a New BPM Program I’ve been following the business process market for the past 20 years, and I’ve been impressed by its varied twists and turns. One of the more interesting twists has been the development of an academic business process program at several leading universities. Academic BPM studies have taken two basic forms. One version has arisen in conjunction with Information Technology (IT) and positioned BPM as a systematic approach to introducing and using IT to improve business processes. The other variety has located BPM in business schools and emphasized that process improvement is a natural concern of business people. The best academic programs have emphasized a combination of these two approaches. In addition to undergraduate and graduate BPM programs in major universities, there is now a well-established, annual BPM conference, where academics and researchers gather to share new insights and network, and there are a number of academic journals that publish new findings. One of the international scholars who has been consciously associated with the growth of an academic BPM tradition is Dr. Wil van der Aalst. Professor van der Aalst has, for years, headed the BPM program at Technical University at Eindhoven, in the Netherlands. Dr. van der Aalst initially established his reputation with his research into workflow management systems. His book, Workflow Management, co-authored with Kees van Hee in 1997, became the definitive guide to workflow software and defined how one might catalog and evaluate the types of processes that workflow systems could model.
    [Show full text]