GMD Research Series GMD ­ Forschungszentrum Informationstechnik GmbH Hans-Ulrich Kobialka Implementing Support for Software Processes in a Process-centered Software Engineering Environment N° 15/1998 © GMD 1998 GMD ­ Forschungszentrum Informationstechnik GmbH Schloß Birlinghoven D-53754 Sankt Augustin Germany Telefon +49 -2241 -14 -0 Telefax +49 -2241 -14 -2618 http://www.gmd.de In der Reihe GMD Research Series werden Forschungs- und Entwicklungsergebnisse aus der GMD zum wissenschaftlichen, nicht- kommerziellen Gebrauch veröffentlicht. Jegliche Inhaltsänderung des Dokuments sowie die entgeltliche Weitergabe sind verboten. The purpose of the GMD Research Series is the dissemination of research work for scientific non-commercial use. The commercial distribution of this document is prohibited, as is any modification of its content. Anschrift des Verfassers/Address of the author: Hans-Ulrich Kobialka Institut für Systementwurfstechnik GMD ­ Forschungszentrum Informationstechnik GmbH D-53754 Sankt Augustin E-mail: kobialka@gmd.de Von der Fakultät für Mathematik, Naturwissenschaften und Informatik der Technischen Universität Cottbus zur Erlangung des akademischen Grades eines Doktor-Ingenieurs genehmigte Dissertation. Tag der mündlichen Prüfung: 15. Mai 1998 Die Deutsche Bibliothek - CIP-Einheitsaufnahme: Kobialka, Hans-Ulrich: Implementing support for software processes in a process-centered software engineering environment / Hans-Ulrich Kobialka. GMD ­ Forschungszentrum Informationstechnik GmbH. - Sankt Augustin: GMD ­ Forschungszentrum Informationstechnik, 1998 (GMD Research Series ; 1998, No. 15) Zugl.: Cottbus, Brandenburgische Techn. Univ., Diss., 1998 ISBN 3-88457-339-X ISSN 1435-2699 ISBN 3-88457-339-X III Abstract This thesis investigates how software processes (i.e. the way how software is developed) can be supported by a process-centered software engineering environment (PSEE). We focus on the implementation of process support and its change during enactment. We present a PSEE offering a set of services and process modeling languages (PMLs) tailored for process imple- mentation and change. Current PMLs have great problems implementing sufficient support for state-of-the-art development processes. Their PSEEs impose a high entry barrier (i.e., the effort for switch- ing to a PSEE is very high), and offer only limited support for incremental change during enactment. There are several reasons for this: * Most PMLs and their PSEEs require a complete description of the process in terms of the PML in advance, and restrict all issues which have not been considered. * Using today's PMLs, the description of a reasonable process becomes quite voluminous and complex. Size and complexity increase further if the PSEE lacks some basic terms or services, like task hierarchies, agendas, configuration management, or monitoring. * Most PMLs stem from general purpose programming or specification languages. Chang- ing of process models during enactment is hard and requires skills which can not be expected from a typical project leader. * Processes are applied in an organization in several variations. Most PSEEs permit instan- tiation of multiple processes, but cooperation between concurrent processes is only sup- ported on a low level. Our approach consists of a PSEE, called ADDD, which offers a PML based on the event- trigger paradigm. The main issues are the following + Projects can start using ADDD instantly and model their process support incrementally during enactment. + Not the entire process has to be specified within the PML, but only those parts which should be supported or controlled. In principle, developers are not restricted in their work unless explicitly stated otherwise. + The main focus is on change during enactment. Concepts known from programming lan- guages hindering change have been excluded. We adopted event-trigger and customiza- tion technology. The process can be driven and constrained by policies associated with tasks, similar to the "Strategy pattern" known from the field of design patterns. + Mastering change impact is of major concern. The effect of a policy can be limited to the associated task and its subtasks. Therefore, (change of) process support can be restricted to particular tasks according to their needs. Keywords: software process, PSEE, process modeling language, process enactment IV V Zusammenfassung Diese Dissertation untersucht, wie Software-Entwicklungsprozesse wirkungsvoll durch eine prozeß-zentrierte Software-Entwicklungsumgebung (abgekürzt PSEE) unterstützt werden kann. Hierbei befaßt sich die Arbeit nicht mit der Modellierung von Entwicklungsprozessen, sondern damit, wie für einen gegebenen Prozeß Unterstützung formuliert und effektiv umge- setzt werden kann. Die in dieser Arbeit präsentierten Konzepte wurden in einer PSEE imple- mentiert, die speziell auf die Implementierung von Prozeß-Unterstützung und deren dynami- schen Änderung zur Laufzeit ausgerichtet ist. Die PSEE zeichnet sich durch folgende Eigen- schaften aus: * Inkrementelle Installation von Prozeßunterstützung. Die PSEE kann durch ein Projekt genutzt werden, selbst wenn dessen Prozeß noch nicht oder nur teilweise spezifiziert ist. Die notwendige Prozeß-Unterstützung kann jederzeit während des Projektes inkrementell hinzugefügt werden. * Nur die Teile des Prozesses, die unterstützt werden sollen, müssen in der Prozeßbeschrei- bungssprache (PML) formuliert werden. Die Benutzer sind in ihrer Arbeitsgestaltung nicht eingeschränkt, solange dies nicht explizit durch Regeln der PML eingeschränkt wird. * Prozesse können aufgabenspezifisch unterstützt werden. * Eine einmal installierte Prozeß-Unterstützung kann jederzeit geändert werden. Schlüsselwörter: Software Prozeß, PSEE, Prozeß Modellierungssprache, Prozeß Unterstützung VI VII Vorwort Eine wesentliche Anforderung an eine Dissertation ist, daß sie von dem Autor selbständig verfaßt wurde. Dies soll aber nicht darüber hinwegtäuschen, daß zum Gelingen dieses Unter- nehmens viele Menschen - oft sogar in entscheidendem Maße - beitragen. Entscheidend zu meinem Entschluß zu Promovieren war, daß ich in Claus Lewerentz einen mir aus vorangegangener Zusammenarbeit gut bekannten Betreuer hatte, mit dem ich mich freute den Weg einer Promotion (vor der ich Jahre vorher zurückgeschreckt hatte) zu gehen. Mit Volker Gruhn konnte im Vorfeld der Arbeit ein weiterer ausgewiesener Gutach- ter gewonnen werden. Beiden möchte ich für die interessanten Diskussionen und die kon- struktive und angenehme Form der Zusammenarbeit ganz herzlich danken. Die "pränatale Phase" dieser Arbeit war das Verbundprojekt STONE, während dessen ich mich der Problemstellung und auch schon ersten Lösungsansätzen nähern konnte. Meinen Dank für die vielen anregenden Diskussionen gebührt den meisten der mehr als 20 Projekt- mitarbeitern, vor allem aber Axel Mahler, Andreas Lampen und Claus Lewerentz. Wesent- liche Teile der in dieser Arbeit vorgestellten Entwicklungsumgebung ADDD hat mein Kol- lege Carsten Meyke programmiert. Ohne ihn wäre es unter Umständen gar nicht zu einer Realisierung gekommen. Gleiches gilt für die Unterstützung durch Dietmar Theobald, den "Chef"-Entwickler des Datenbanksystems OBST, auf dem ADDD wesentlich basiert. Edmund Ihler und Alla Gnedina haben ADDD in seinen Anfangsjahren evaluiert und damit viel zu dessen Verbesserung beigetragen. Für interessante, manchmal kontroverse, aber immer inspirierende Diskussionen bin ich Ansgar Bredenfeld, Olav Schettler und Jörg Wil- berg zu Dank verpflichtet. Ganz wichtig waren auch das Vertrauen und die Unterstützung, die mir durch meine damalige Bereichsleiterin Elfriede Abel zuteil wurde, so daß ich mich den zu Anfang natürlich noch nicht ausgegorenen Ideen ausreichend widmen konnte. In keiner Promotionsordung festgelegt, auch nicht fachlich motiviert, aber trotzdem von unerhörter Wichtigkeit ist das soziale Umfeld des Doktoranden. Ich danke meiner Frau Doris für ihre Liebe, die zeitliche Entlastung bei meinen häuslichen Pflichten und die moralische Unterstützung auf dem manchmal sehr lang erscheinenden Weg zur Promotion. Meinen Kin- dern Johan und Rea ist es zu verdanken, daß ich am Ende eines Arbeitstages und nach Abgabe der Dissertation sehr schnell daran erinnert wurde, daß es noch sehr schöne Dinge außerhalb der Informatik gibt. VIII IX Contents 1 Introduction and Overview ........................................................................................ 1 1.1 Features of Process-centered Software Engineering Environments .................. 2 1.2 Problem Statement ............................................................................................. 4 1.3 Approach presented in this Thesis ..................................................................... 7 1.3.1 Implementation of Process Support differs from Process Modeling ..... 8 1.3.2 Process Implementation requires special Concepts ............................... 8 1.4 Overview ......................................................................................................... 10 2 Process Support during Enactment ......................................................................... 11 2.1 What can be expected from Process Support? ................................................ 12 2.1.1 Process Monitoring .............................................................................. 13 2.1.2 Process Guidance ................................................................................. 14 2.1.3 Process Automation ............................................................................. 14 2.1.4 Process Enforcement ........................................................................... 16 2.2 Handling of Process Support ........................................................................... 16 2.3 An Overview of some existing PSEEs ............................................................ 18 2.4 A comparative View on PSEE Technology .................................................... 31 2.4.1 Set up for file-based Software Development ....................................... 32 2.4.2 Implementation of Process Support ..................................................... 33 2.4.3 Process Enactment ............................................................................... 37 2.4.4 Process Change during Enactment ...................................................... 39 2.5 Trends and Open Issues ................................................................................... 41 X 2.5.1 Common Trends in PSEEs .................................................................. 41 2.5.1 a) PSEEs become reactive. ............................................................... 41 2.5.1 b) More and more Predefined Process Entities are offered. ............. 42 2.5.1 c) Processes become visible. ............................................................ 43 2.5.1 d) Dynamic Instantiation eases Process Evolution. .......................... 44 2.5.2 Open Issues in Process Implementation .............................................. 45 2.5.2 a) Supporting partial known Processes in an incremental way ........ 45 2.5.2 b) Enabling Change during Process Enactment ................................ 46 2.6 Concluding Remarks ....................................................................................... 49 3 A PSEE supporting Process Implementation and Change .................................... 51 3.1 Basic Concepts and Terminology .................................................................... 53 3.1.1 Task Management ............................................................................... 55 3.1.2 Configuration Management ................................................................. 59 3.1.3 Tool Integration ................................................................................... 62 3.1.4 Events and Triggers ............................................................................. 63 3.2 Describing Process Support in ADDD ............................................................ 67 3.2.1 The ADDD Kernel .............................................................................. 68 3.2.2 Definition of Process-specific Artifact Classes ................................... 69 3.2.3 Policies ................................................................................................ 72 3.2.3 a) Customization of System Functionality ....................................... 73 3.2.3 b) Triggers defined in Policies .......................................................... 74 3.2.3 c) Process Procedures ....................................................................... 78 3.2.3 d) Incremental Redefinition of Policies in a Task Hierarchy ........... 79 3.2.4 Checklist Definition ............................................................................. 80 3.2.5 User Interfaces ..................................................................................... 82 3.3 Applying the Concepts of ADDD to Process Support .................................... 84 3.4 A Methodology for designing Process Support in ADDD .............................. 88 XI 3.5 Process Change during Enactment .................................................................. 90 3.5.1 Changing the State of Enactment ........................................................ 90 3.5.2 Change of Policies ............................................................................... 92 3.5.3 Conclusions on Change Impact ........................................................... 93 3.6 Assessment of ADDD according to Section 2.4 ............................................. 94 3.7 Concluding Remarks ....................................................................................... 96 4 Implementation of Process Support ......................................................................... 99 4.1 Workflow in the ISPW9 Example ................................................................. 100 4.1.1 User roles ........................................................................................... 100 4.1.2 Task Structure .................................................................................... 102 4.1.3 Automation and Consistency Checking ............................................ 103 4.2 Traceability in the ISPW9 Example .............................................................. 106 4.2.1 The Information Model ..................................................................... 106 4.2.2 Process-specific Views ...................................................................... 108 4.3 Support for the ISPW9 Base Scenario ........................................................... 109 4.4 Statistics ......................................................................................................... 119 4.5 Comparison with ISPW9 Support written in other PMLs ............................. 121 4.6 Concluding Remarks ..................................................................................... 121 5 Evaluation of the Concepts of ADDD .................................................................... 123 5.1 Process Support ............................................................................................. 123 5.1.1 Dynamically evolving Task-Networks .............................................. 124 5.1.2 Modeling Process Interfaces .............................................................. 126 5.1.3 Modeling Reactive Process Support .................................................. 128 5.1.4 Controlling the Effects of multiple Processes ................................... 129 5.1.5 Integration with Configuration Management .................................... 130 5.2 Understanding Process Descriptions and Change ......................................... 131 XII 5.2.1 Core Concepts and Abstractions ....................................................... 131 5.2.1 a) Essential Concepts and Abstractions .......................................... 132 5.2.1 b) Secondary Concepts and Abstractions ....................................... 132 5.2.2 Modularization and Management of Process Descriptions ............... 135 5.3 Process Change during Enactment ................................................................ 138 5.3.1 Schema Evolution .............................................................................. 138 5.3.2 Direct Manipulation of the Enactment State ..................................... 139 5.3.3 Semantics of Enactment and Change ................................................ 139 5.3.4 Design for Change ............................................................................. 140 5.3.5 Local Process Autonomy ................................................................... 141 5.4 Conclusions ................................................................................................... 142 6 Conclusions and Future Trends ............................................................................. 145 6.1 Main Features ................................................................................................ 145 6.2 Enabling Concepts ......................................................................................... 147 6.3 Lessons learned ............................................................................................. 148 6.4 Further Evaluation ......................................................................................... 149 6.5 Future Trends ................................................................................................. 150 Literature 152 Appendix A: The ISPW9 Example 163 Appendix B: Supporting the ISPW9 Example in ADDD 167 Appendix C: Syntax of Policy Triggers 183 Appendix D: Checkin/Checkout in File Workspaces 187 CHAPTER 1 Introduction and Overview A software process (i.e., the way software is produced and maintained) encompasses a sig- nificant amount of steps performed by many people in a company. The quality of the soft- ware process influences the time-to-market and the quality of software products signifi- cantly. In some cases, process improvements can gain much more productivity than the intro- duction of a new development tool. Today, processes change very quickly, for instance, due to changes in technology. Fur- thermore, people tend to stay within one company only for a few years. So without any sup- port, software processes either have to be very simple, come with a large amount of bureau- cracy, or just reside on the bookshelf, i.e., are ignored in practice. About ten years ago, it was stated that software development processes could be described in a formal way by using process modeling languages (PMLs), and that process models writ- ten in a PML can be enacted in process-centered software engineering environments (PSEEs) [Oste87, Lehm87, Oste97]. There is a large amount of books and papers concerned with the capture of existing pro- cesses (status quo), requirements analysis for future processes, and analysis/simulation of formally specified process models. In this thesis we will not tackle these issues, but concen- trate on the support that can be offered by a PSEE during the enactment1 of a process. In this chapter we will first give an overview of the features a PSEE may offer (including process analysis and simulation). Then we focus on the problems which are still to be solved 1. Instead of "process enactment" also the term "process execution" is used for describing the actual development of soft- ware according to a process description. "The word enactment is used to indicate the possibility that a process may be executed by humans or computing environment." [Garg96] 2 1 Introduction and Overview in order to use PSEEs in practice. Our approach to solve these problems is described and an overview of the remaining chapters is given. 1.1 Features of Process-centered Software Engineering Envi- ronments Before we concentrate on process enactment, we want to give a comprehensive view on the features a PSEE can offer, as proposed by Garg and Jazayeri [Garg96]. Not all PSEEs, how- ever, provide the same set of features; even for the features they do share, the approaches can be quite different. In [Garg96] the features are described as follows: * Process Definition: "A process engineer uses a PSEE to define a process to be followed by one or more projects. Current PSEEs offer a wide spectrum of approaches for speci- fying a process. Some PSEES present graphical notations like ETVX, IDEF, boxes-and- arrows, Statecharts, Entity-Relationship diagrams, Petri nets, or data flow diagrams. Other PSees allow the process engineer to specify the process using textual tables or forms. Yet other PSEEs use programming languages to define a process. In the program- ming language paradigm, several approaches have been tried, e.g., scripting languages (extensions to the Shell programming language), rule-based languages (extensions to OPS-5 and Prolog), active database trigger languages, and imperative programming lan- guages (extensions to ADA). Finally several PSEEs provide a combination of such approaches sometimes even allowing translation from one to another. * Process Analysis: A process model within a PSEE can be analyzed for consistency, com- pleteness, and correctness. For example, a process model can be analyzed to determine the maximum number of parallel activities that can be carried out in a process (for sched- uling purposes), or to determine if there are any redundant activities in a process (the out- puts of which are not being used). The process can be analyzed for conformance with quality guidelines that specify a set of activities be carried out in a particular order, or require the existence of certain review and inspection activities. * Process Presentation: Software processes describe activity flows that have a natural graphical representation. The process' products can also be visualized using structured diagrams. A PSEE typically supports the graphical display of process and product infor- mation. Such graphical displays are useful both on electronic terminals and on paper. Usually, the graphical display reflects the underlying process formalism, e.g., a Petri-net formalism can be visualized as a Petri-net. Recently, several PSEEs are advocating the importance of providing multiple views of the process,e.g., a management versus an engi- neering view. * Process Simulation: The execution of a large software process usually requires several people, is carried out over a long time, and requires substantial monetary expenditure. To 1.1 Features of Process-centered Software Engineering Environments 3 evaluate the suitability of a process before committing full resources to it, some PSEEs support the use of simulations. * Process Automation: A software process often includes activities that do not require much human intervention in their execution - they can be mostly automated. A typical example of an automatable activity is the performance of regression tests on a recently changed module. Notifying affected personnel about a change in some product informa- tion is another example. Once a process has been defined in a PSEE, such activities can be identified (by the process engineer) and subsequently automated by the PSEE. The scope and extent of such automation is dependent on the process and product information stored in the PSEE, and the process definition formalism used by the PSEE. For example, if the PSEE does not model the people involved in the process, it can not effectively sup- port change notification. * Process Monitoring: An important aspect of a PSEE is to monitor the execution of a pro- cess and record a history of the activities carried out. The process history can be used for future process development and improvements. Some PSEEs provide real-time monitor- ing of the process with graphical displays, while others produce process data that can be analyzed and visualized with data analysis tools. Privacy of information is a critical issue here as the monitored data can be easily misused. On the other hand, it is generally agreed that process metrics must be monitored for effective improvement of software engineering practices. * Process Change Support: Software processes change for a number of reasons: the tech- nology for programming may change, e.g., object-oriented programming from structured programming; new process paradigms may be discovered, e.g., the spiral life-cycle model; or, the supporting tools may evolve and change, e.g., windows-oriented program- ming from character-based terminals. An organization using a PSEE must be able to change its process definitions within the PSEE, often without interrupting the work in the organization. * Openness: PSEEs have to operate in computing environments where they may or may not have control over all software tools that are available. Some PSEEs provide import and export facilities to exchange product data between existing tools and the PSEE. Other PSEEs conform to standard event based notification schemes to integrate with existing tools. * Multi-User Support: A PSEE typically has multiple users - at a minimum people with the roles of process engineer, manager, and software engineer use the same PSEE. Multiple software engineers often work on the same project, therefore, accessing the same PSEE. A PSEE typically provides support for a team of people working together on a process1. A PSEE ensures that concurrent access to process and product data is synchronized. 1. For example, can one team member visualize the status of other team members' work? 4 1 Introduction and Overview * Process Guidance: Software engineers use a PSEE to carry out various process steps. A PSEE often guides a software engineer with possible next steps, based on the modeled process and its current state, Some PSEEs provide such guidance by presenting the user with a task list of action items; others present the user with the current product objects being crafted and the operations available on them; and still others present the user with a traditional programming environment with almost no guidance. * Task-specific User Interface: Based on the modeled process, a PSEE can scope the user interface to reduce the overhead of information presented to the user. Unlike program- ming environments like Unix, which do not have any understanding of the work to be accomplished using them, a PSEE does not have to present all the tools available in a uni- form manner. Depending on the task at hand, a PSEE can limit the tools that are applica- ble for that task. Similarly, a PSEE can limit the products visible to the user." Process support subsumes the features which help the developers during the enactment of a software process. Effective process support requires most of the features above, except pro- cess definition, analysis, and simulation. The latter functionary is used during the early phases and possibly during process change1. In section 2.1, process support is discussed in depth. 1.2 Problem Statement In 1990 on the 6th International Software Process Workshop (ISPW6), a simple process example was introduced as a kind of benchmark in order to evaluate and compare PMLs [Kell90]. This example was improved during the following workshops. The current state is known as the ISPW9 example [Pene94b]. The scenario is a typical change process driven by problem reports. The scenario starts with a tester who reports a problem which is then ana- lyzed and assigned to developers. Changes to the code as well as to documentation have to be reviewed, approved/rejected, and tested. The scenario emphasizes the definition of spe- cific procedures (e.g., for analysis, testing, and review), configuration control, specific sup- port of user roles, people coordination, and process change during enactment (see "Appendix A: The ISPW9 Example" on page 163). There were many solutions proposed for the ISPW6/ ISPW9 examples through the years, but all of these cover only aspects of the process (e.g., control and data flow) [Pene94a, Balz94]. The ISPW6/ISPW9 examples demonstrates that even a simple process can be modeled in several ways, and that such a model has to offer much flexibility during enactment: 1. There may be different kinds of process change, ranging from changing a simple parameter value (which might be trivial) to a total redesign of the process in the extreme case. Simple changes do not require any functionality for process defini- tion, analysis, and simulation while a process redesign certainly does. 1.2 Problem Statement 5 Unlike business processes, software processes are performed in many variations depend- ing on current parameters, in particular: the characteristics of the product/module addressed, current customer requests, the problems encountered, and the dependencies to other mod- ules, customers, and problems. These aspects influence the steps to be taken, the (skills of the) people needed to perform these, and many further parameters (e.g., the tools to be used). Many of these aspects have to be determined during the process as things become clear or change. Work items and process steps are created and customized dynamically, grouped with other related steps, and assigned to persons. This requires flexible decisions and actions from all participants. But flexibility has to be limited in some sense, for instance, mandatory actions should not be skipped. Communication and bookkeeping of performed steps are essential in order to provide overview and traceability for all participants. The basic requirement (R0) for all PSEEs and their PMLs is that they can provide support for the kinds of processes described above. Note that the required flexibility (e.g., routing of messages, selecting/configuring of subsequent process steps) should be a property of the pro- cess and should not be handled by changing process programs frequently. In addition, the unpredictable variety and variance of parameters influencing the process raise many challenges for effective process support. We want to characterize the situation by several statements and the resulting requirements for PSEEs/PMLs. A) Process support evolves in an incremental way. It is usually impossible to define the entire software process support from the very beginning. Software processes "run" for a long time. During this, things may change which again might force the process to be adapted or even changed completely. Projects should start with an incomplete or basic support and improve it in an incremental way. This requires that users can perform actions not specified in some process description (see requirement R2 below). Process change during enactment is the normal case, not the exception. R1) The change of a process program has to be a simple and save operation. In case a change has not achieved the expected benefits, it should be undone easily. (De)Installing a change should be possible at runtime by the push of a button without the risk of any hazardous effects. B) Process support will never cover the entire process. We suspect that support for a non-trivial process will never be complete in the sense that each possible sequence of actions is considered. This may be due to incomplete knowledge about the process, but also because process designers do not want to specify too much detail if there is no equivalent pay back in productivity. Therefore, only parts of the process which need support are specified in the PML - unsupported process steps are enabled but not explicitly written down on the level of process implementation (although they may be contained in handbooks or high-level process specifications). 6 1 Introduction and Overview R2) The PSEE should empower the user to work with incomplete process support. It should be possible to perform working steps currently not specified or supported. In the extreme case, users should be able to work without writing any process program in advance. They should be able to build up working environments manually and to pass around results. This requires a number of services to be provided by the PSEE, for instance, communication services. See also requirement R3. C) Process programs can not be assumed to be totally correct. Process programs are difficult to test, because they operate on large databases, interact with many users, and are written by different authors. The impact of (changes of) process pro- grams are difficult to predict. Changes during enactment are often applied without any test- ing. Process programs are incomplete (see statement B above) or can become incomplete when a change of the process is not reflected in all concerned process programs. Thus, when a process program is recognized to be incorrect, the state of enactment (i.e., the states1 of all current processes) has to be updated2: R3) The user should be able to complement or compensate the effects of process pro- grams. This requires that the interactive user (in addition to the capabilities resulting from R2) should be able to perform any action which can possibly be used by a process pro- gram. But interactive manipulation of data structures may raise further consistency prob- lems: if consistency is checked only by the process programs, an interactive update can create invalid data (e.g., loss of referential integrity) which are difficult to detect and to repair. Thus, the data model (or its command interface) has to care for basic (i.e. not pro- cess-specific) consistency constraints. D) The probability of misunderstandings and undetected errors is a key factor. Although errors should be tolerable, they should be avoided as much as possible. Manual repair actions are time-intensive and can create further errors, especially when carried out by different authors. A certain frequency of errors can reveal a PSEE to be totally unusable in an industrial context. The probability of misunderstandings and undetected errors strongly depends on the concepts of the PML and its runtime environment, the PSEE. R4) Users should understand the effect of process programs easily. The PML has to be very simple to use and understand as most project leaders can not be expected to have expert programming skills. The meaning and the impact of a statement should be obvious to the reader. In particular, the side effects with other statements should be limited as much as possible. The size of the process support to be written should permit 1. Each process may have its private state, but in addition there are common objects (e.g., the artifacts passed around) which are shared by several processes. 2. Of course, the incorrect process program has to be updated too. 1.3 Approach presented in this Thesis 7 to locate parts easily and to understand the support in total. The PML should support abstractions of the software process domain. Appropriate domain-specific abstractions will probably reduce the size and the complexity of process programs as well. R5) The impact of process programs has to be analyzed. The computational model of the PML should permit test tools to analyze the possible impact of a process program in advance. During enactment, each phenomenon should be traceable to the user actions and the PML statements which have caused it. E) Process support will be more effective, if it can be adapted individually for different parts of a project. The characteristics of tasks and the skills of teams and individuals can differ substantially. Much productivity (and acceptance for process technology) can be gained, if a process can be adapted in such a way that these characteristics and skills can be exploited. Usually pro- cesses are applied in an organization in several variations. Projects take reusable parts from the process library of the company and adapt them to their needs. Although they share com- mon artifacts (e.g., source code, libraries) and interact with each other, projects require some autonomy in adapting their processes. R6) Process support should be adaptable to specific (sub)projects. There should be different process support for different tasks. The effects of a process sup- port, which has been installed for a particular task, has to be limited to this part of a project. This requires a special kind of impact control1. R7) There should be means of defining and controlling permissions for process change. We feel that this should be one of the services a PSEE should provide instantly (see requirement R2). 1.3 Approach presented in this Thesis Providing process support is not a new idea - this is the aim of all PSEEs and their PMLs. We argue that mainly two mistakes were previously made: (i) Many PMLs were designed to model both processes and process support, thus implying that the latter can be derived from the former. From the user's point of view this has lead to quite a prescriptive support with insufficient guidance. (ii) PMLs were not designed for changing process support during enactment. This is because early approaches adopted concepts from specification and programming lan- guages which were not designed for change during execution. Models written in other PMLs turned out to be quite complex. Users have difficulties understanding these and 1. Requirement R5 addresses impact in general 8 1 Introduction and Overview applying changes properly. Furthermore, changes can have a high impact on other users and processes, so changes bear a high risk. Our approach to tackle the problems mentioned above is to concentrate on the implementa- tion of process support, also called process implementation for short. 1.3.1 Implementation of Process Support differs from Process Modeling Alfonso Fugetta advocates to distinguish between a high-level process model and implemen- tation of process support [Fugg97]: "I think that in software development as well as in process model development we (I mean the software engineering community) have always considered that it is possible to move from high-level specification to detailed implementation through a series of refinement steps. Basically, the assumption is that the implementation has the same structure as the high-level specification with some more details (going top-down or bottom-up). In my own opinion, this is not true for software and it is not true for processes. The fundamental issue is that the two levels we are talking about are (in software as in processes) the description of the problem vs. the description of the solution. My understanding is that there is a potential discontinuity between these two entities, and that refinement is just a special case that can be pursued only if the structure of the high-level description is acceptable also as the architecture of the implementation-level specification. So, as far as PSEEs are concerned, I think that eventually you will need two separate specifications, in the same way as you may specify the requirement of a real-time system using petri nets, and then specify the architecture and detailed design of software using SDL." Therefore, implementation of process support is not simply a refinement step, but may require a totally different representation, structure, and design goals. For instance, during process implementation it has to be determined which aspects of the process should be auto- mated, monitored, guided, or enforced, and how this should be achieved. Such a support can be implemented (and changed) in several ways for the same process. 1.3.2 Process Implementation requires special Concepts We argue that, apart from a different intellectual approach, implementation of process sup- port also requires special PMLs and PSEE concepts. The requirements discussed in section 1.2 are specific for process support and do not occur during the definition of a process or the execution of a computer program written in a programming language. 1.3 Approach presented in this Thesis 9 We built a PSEE named ADDD which offers languages for implementing different aspects of process support. Here we give an overview of the capabilities of ADDD and relate them to the requirements of section 1.2. Process support is implemented within an infrastructure of existing terms and services. ADDD provides a ready-to-use infrastructure for software development including configu- ration management, task hierarchies, and data flow relationships which can evolve dynami- cally during process enactment. The process designer is freed from defining these basic terms and services and can concentrate on the essentials of process support definition. (R2) Process Support can be infused into the PSEE in an incremental way. In our approach, it is possible to use the ADDD PSEE like an ordinary software engineering environment without any notion of process. Process automation and constraints are intro- duced and changed as developers need them during their work. The PSEE is operational, regardless of how much process support is installed or is going to be installed. (R1) The user can complement or compensate the effects of process programs. In ADDD, the enactment state is represented as a data structure1, and can be accessed and manipulated via a command interface2. The effects of most commands can be undone by inverse commands, for instance, a removed data flow relationship can be included again. Thus, even if process programs fail or leave things undone, the user can repair/complete the enactment state manually. Process support is added and changed by commands as well3. (R3) Processes are defined in a declarative way. Processes are defined with short statements which can be changed without or with very lim- ited side effects. We have raised the level of abstraction in order to let the user express his intensions within a few words. A high-level trigger mechanism is provided for process auto- mation and consistency control, but rule chaining (or any other mechanism which may raise the complexity) is omitted. The impact of a trigger on particular processes can be specified in such a way which can be understood by the user instantly. (R4) 1. Different processes can interact by writing and reading common objects. 2. During operation there is no need to inspect code or data below the command interface of the PSEE. 3. Process support (rules, procedures, parameters) is part of the state of enactment. This property is known as self referen- tiality, i.e., process programs can analyze and modify themselves [Dows94]. 10 1 Introduction and Overview Subprojects can adapt their processes in an autonomous way. The process is driven and constrained by process policies associated with tasks. The impact of a policy can be limited to the associated task and its subtasks. Therefore, the (change of) process support can be adapted to particular tasks according to their needs. The managers of a task are allowed to change its process policy. We call this "local process autonomy". (R6, R7) 1.4 Overview First, we discuss the current state-of-the-art of process support technology in chapter 2. We describe a number of current PSEEs and compare their properties for process support defi- nition, enactment, and change. Based on this grid, we identify some similarities, trends in technology, and open issues, especially regarding incremental change and change impact. Chapter 3 describes our approach. The ADDD PSEE offers a software engineering infra- structure, event-condition-action rules and flexible customization capabilities. In this chapter we introduce the basic terms and concepts, and the languages used for specification of pro- cess support. We discuss methodology issues and issues of change impact. Chapter 4 describes how a particular process can be instantiated in ADDD. This is illus- trated by implementing support for the ISPW9 example in ADDD. Chapter 5 evaluates the properties of our approach regarding expressiveness, readability, and process change, and points out our contributions to the state-of-the-art. Chapter 6 gives a summary of this work and talks about future trends in the field. CHAPTER 2 Process Support during Enactment In this chapter we want to give an overview about how enactment of software processes can be supported by a PSEE. We will not discuss other phases of software process development such as requirement analysis (e.g., of the goals & performance expected), process assess- ment, and process design. We first give a description of process support that users may envision without thinking too much about concrete PSEE technology. Then a number of commercial and academical PSEEs are described in short. In order to give the reader an impression about the differences and achievements of these approaches, their characteristics are detailed in tables. From this information we identify common trends and open issues which are discussed at the end of the chapter. Throughout this text we want to view process technology from the user's point of view, in particular, we do not focus on PSEE architectures. The following terms are essential (see [Feil93] for a comprehensive survey of process terms): Process description/model: any representation of a process. There are high-level process descriptions (e.g., created during requirement analysis), representations which can be analyzed and simulated, and representations which are designed for supporting a pro- cess. Process instance: an enactable or enacting process, i.e., a process description that includes all elements required for enactment and which is executed or ready for execution by humans or machines. A process is instantiated from a process description by specifying the description's variable properties, such as products, resources, etc. The term tailoring is also used to refer to adapting a process description for a particular environment or project. [Garg96] 12 2 Process Support during Enactment Process support: technical or organizational support for the enactment of a process. Process support is implemented by process scripts and process programs. Process script: a process description that is suitably designed and instantiated for enact- ment by a human. [Feil93] Process program: a process description that is suitably designed and instantiated for enact- ment by a machine (e.g., a PSEE). [Feil93] Process change: a change to an approved process description. As we focus on process sup- port by process programs, we use the term process change as a shortcut for the change of a process program supporting process enactment1. 2.1 What can be expected from Process Support? After some processes are determined during a requirement analysis phase and formally writ- ten down in some notation, process support has to be implemented by some technical and organizational means. One possibility could be the use of a PSEE. During process implemen- tation it has to be determined: * which aspects of the process should be supported by process programs, by process scripts, or by neither of these. * which aspects of the process should be automated, monitored, guided, or enforced, and how this should be achieved. A process can be supported in very different ways. There are different expectations regarding the use of a PSEE depending on the point of view of the person involved. Managers and project leaders may envision more visibility and con- trol of work. The developer's main interests may be to get rid of routine work and to avoid extra effort due to missing or superfluous information/communication. Managers, project leaders, and developers will all expect a smooth transition from current development practice to the use of process support. Today the pressure on software teams is generally high, so a major decrease of productivity is not acceptable even during introduction of a PSEE. The main benefits of process support are process monitoring, process guidance, process automation, and process enforcement2 (see 1.1). These benefits are orthogonal to each other. For instance in an extreme case, there may be no guidance and only process enforcement (e.g., any action not compliant with the process is canceled). In a particular situation, several of these benefits can be achieved simulta- 1. We do not discuss change of process programs used for process analysis or simulation. 2. Process change is discussed in 2.2. Process presentation, openness, multi-user support, and task-specific user interfaces are important for enactment as stated in 1.1. Here we treat process presentation and task-specific user interfaces together with process guidance. Openness and multi-user support are mandatory technical issues for each multi-user system of a particular size. 2.1 What can be expected from Process Support? 13 neously. For instance, a window on the screen may contain some text guiding the user, and some buttons only allowing valid actions (i.e., enforcement). Some buttons may cause sim- ple actions (e.g., bringing up another window) while others may trigger automated actions (i.e., perform work automatically which could only be performed by several manual steps previously). Execution of actions may be monitored in several files. Some of these files can be used later by automated actions. The demand for each of these benefits, varies depending on quality issues and organiza- tional circumstances. For instance, ad-hoc teams need more process enforcement than teams who have worked together for years. So on one hand, the mixture of different benefits has to be determined in order to imple- ment the appropriate support for a given process. On the other hand, there are different inter- action styles which can be used in order to achieve each desired benefit in a particular situa- tion. For instance, process enforcement can be implemented in very different ways (see 2.1.4). Switching between these interaction styles is a good example of changing process support without changing the process in principle. 2.1.1 Process Monitoring Process monitoring means the collection of data about process performance (recall the description in 1.1 on page 3). Process monitoring is advantageous in several ways: * A process can be rolled back to an earlier state and restarted. This can be supported by a configuration management (CM) system. CM systems can store any state of items under configuration control in order to restore it later. * A process can be analyzed: what went wrong and who is to blame. This will raise the sense of responsibility of all team members. But misuse of personal data will make people reluc- tant using the PSEE. * The effectiveness of the process can be analyzed in order to improve it. This is especially useful for following the goal-question-metric (GQM) paradigm [Basi94]. * The effectiveness of process support can be analyzed and improved. Even when the pro- cess remains unchanged, means of process guidance, automation, and enforcement can be improved. Many attempts have been made to monitor software projects. Most use questionnaires in order to capture data (e.g., [Basi96]), some collected data automatically or relied on already existing log information [Wolf93, Cain93]. The first approach is labor-intensive, while the second, from the observer's point of view, reveals low level and incomplete data in general. 14 2 Process Support during Enactment Effective technical support for process monitoring requires appropriate high-level1 infor- mation (e.g., the notion of the development activity currently performed by a user) to be present in the development environment. In contrast to conventional software engineering environments, PSEEs provide such information during process enactment. 2.1.2 Process Guidance Process Guidance includes all means helping the user to select the next process step to per- form, and to perform a step in the right way. Users are not forced to follow this advice (see box "Deviations" below). Many PSEEs offer each user an agenda window containing a list of all activities/tasks which currently have to be carried out by the user (to-do-list). By clicking on a task in the agenda, one or many windows appear which offer the objects (e.g., icons) and the functions (e.g., buttons, menus) necessary to perform the work. Such user interfaces present dedicated views which guide the user and suggest appropriate actions compatible to the process. [Band96] distinguishes between "task-oriented views" (offered by agendas) and "document- oriented views" (showing product artifacts and their interrelationships). In addition to providing appropriate views, user interfaces can strongly support the soft- ware process. A process step may require some interaction with the user, for instance, a deci- sion has to be made or some result has to be produced. Information has to be collected in order to make the decision, to perform some work manually, or to observe/control some activities done by other people. Today's PSEEs have user interfaces in order to display process descriptions and the state of enactment. There are user interfaces which are provided by the PSEE "as is" and others which are process-specific, i.e., defined in a process description [Band94]. The design of appropriate user interfaces is a major challenge during implementation of process support. Following the multi-window user interface paradigm, the user is free to decide what to do next in the windows presented to him. This puts the PSEE in the position of a reactive system: it waits for the following user action. In the case of actions being incompatible to the process model, the PSEE can restrict the action (see "2.1.4 Process Enforcement"), or it can issue a warning or suggestion of what to do next. The latter case is called deviation (see box below). 2.1.3 Process Automation Process automation means the automation of process steps to be performed by a software developer. Therefore, simple interactions on the user interface (e.g., making a new window appear by pressing a button), or any computation for the sake of process (e.g., checking 1. i.e., terms on a level of abstraction used by developers to speak about process issues. 2.1 What can be expected from Process Support? 15 whether some actions comply with the process model) should not be called process automa- tion. In [Bruc96] it is shown that the adoption of a more rigorous process often leads to more resource consumption throughout the process. Especially from the developer's point of view, process issues are often perceived as non-productive "overhead". So, automation plays an important role in compensating this effect to a certain degree1. As teams and organizational contexts become larger, communication and cooperation issues consume more and more time. Here PSEEs can improve the situation a lot: * A PSEE introduces the terms to describe the partners of communication (development activities connected in some workflow; roles associated with users). * A PSEE can trigger communication in case of certain events (e.g., some item has been changed or assigned to a person). * A PSEE provides the items of discourse (activities, results, etc.) as objects in the computer so they can be referenced, visualized, and monitored. * A PSEE can provide appropriate views about what's going on (see 2.1.2). Deviations. Apart from changing a process in the sense of improving it, ad-hoc devia- tions occur * when process enforcement has to be relaxed in order to proceed, e.g., in time critical situations1, or * if a developer does not follow the path guided by the current process description. In many cases, there are good reasons for deviations; on the other hand deviations can be recognized as "silly" afterwards. In [Perr94] it is stated that in a particular process, there were about 25% deviations, even though the process was not specified on a detailed level. The main difference between deviations and process improvements is that deviations are created for ad-hoc situations and are not intended to be applied beyond this context, for instance, on the whole project. The current process description should not be changed, because it remains valid for the current and other parallel processes, and should be applied as before after the deviation has occurred. Deviations should be com- municated to all people concerned, and monitored for later evaluation. 1. In many situations, an activity should start even if not all or even none of its preconditions are fulfilled. For instance, in some situations coding should begin before the modified design has been reviewed, or even the review step should be skipped [Chri95]. 1. Although, if the process adds some intellectual work, like a review, this can not be automated. Only well understood, routine work can be automated. 16 2 Process Support during Enactment A reactive PSEE can trigger notifications, consistency checks, and actions at various points throughout the process. Some of these actions can collect data which can be used for forth- coming automated steps. This way, more activities can be automated even when their seman- tics (e.g., testing) were not related to process terminology initially. 2.1.4 Process Enforcement Besides automation, productivity can be raised by enforcing processes in order to avoid time spent on non-relevant things or used to recover error situations due to uncoordinated actions. It appears that software processes are not well understood. For many rules there are situ- ations when they should be disabled. These situations are often unknown at process defini- tion time. It could be argued that complete process descriptions are almost impossible to achieve in advance. So project leaders and developers hesitate to restrict their freedom. But in critical parts of the process it is useful to enforce user actions. In these cases the PSEE often changes its behavior from a reactive system to a pro-active system, i.e., it notifies the user that something has to be done and makes it sure that the operation is completed. Enforcement can also be achieved in a purely reactive PSEE by disabling any user action vio- lating constraints (i.e., no deviations are allowed). As a third alternative, monitoring can be used for the same purpose: in critical situations the PSEE can tell the user that he is probably violating some constraints, that his actions are monitored, and that he will be made respon- sible later, e.g., if his actions are not authorized by some management decision. Ideally a PSEE should support all three ways to implement process enforcement in order to let the process designer decide which kind of interaction is appropriate for a particular pro- cess step. 2.2 Handling of Process Support The way process support is introduced and how changes are applied requires some PSEE ser- vices and PML concepts (indicated by "=>" hereafter). The development of a piece of software takes a long time, and it is very likely that the pro- cess and the support it needs changes during this time. During a project almost anything may be changed: people come and go, the organization changes, people learn, new methodologies and tools arise, etc. Either process (support) improvements or adaptations can lead to situa- tions where some variants/versions of the same process support coexist (and cooperate) in the same project. 2.2 Handling of Process Support 17 Process support has to be evaluated. Non-trivial changes to the process support should be prototyped, i.e., the changed process should be evaluated by a small team before it is applied to the whole project. Evaluation leads to a situation where the existing process support has to be replaced by the improved one during process enactment. This can be a kind of revolution, as the new pro- cess support may include major changes. It need not stem from the previous one. => Replacement of process support should be possible instantly without forcing work to be suspended or abandoned. Changes do not happen in perfect isolation. Evaluation has to be performed by expert developers. Most companies can not afford to involve their best people in some "toy" project to evaluate a process change. Hence during evaluation, this team should remain as part of an ongoing project. Only within the team, work (e.g., cooperation) is performed differently. Besides setting up a special task force team, a company may allow subteams to adapt and detail a given process according to their needs. These changes can be evaluated after some time, and improvements can be propagated to other teams. This approach avoids the "straight-jacket" of a single process and involves the creativity of teams to improve the pro- cess. The impact of changes should be limited to the evaluation setting, but also the impact of the project on the evaluation has to be controlled. => Impact has to be controlled (see below). => At least there should be a common communication infrastructure. It should be possi- ble to pass artifacts and messages between (activities/tasks contained in different) pro- cesses in an ad-hoc way, even though this has not been planned before. Process support should be adaptable to specific situations. The characteristics of tasks and the skills of teams and individuals can differ substantially. This requires tailoring the process and its support to the current situation in order to achieve the best user satisfaction and performance. In a large project (e.g., 50 developers) different subteams may have different work styles. It would be a long debate if someone tried to unify the variety of adequate processes, in order to determine everything by one big process model for the whole company. It is more feasible to define a basic process for the company which can then be adapted and detailed to the needs of the concrete problem being solved. => There should be means of defining and controlling permissions for process change. => The PML should express impact of process support explicitly. PMLs have to be improved in such a way that the impact of a statement can easily be determined by a reader at first sight (see requirements R4 and R6 in section 1.2). 18 2 Process Support during Enactment 2.3 An Overview of some existing PSEEs In this section we describe some PSEEs and their PMLs. Another overview of PSEEs is given in [Garg96]. PMLs are often classified into net-based and rule-(or event-trigger-)based approaches. Some net-based PMLs (Process Weaver, LEU, Slang) use a notation similar to Petri-nets, i.e., data and control flows from one transition to the next in a token game. These systems allow a transition to execute some code which may access any database or remote resource. In this case, the models are no longer genuine Petri-nets, because the latter requires the firing of a transition to depend solely on its inputs. Some PSEEs also supplement net-based PMLs with a message broadcasting mechanism, thus the border to event-trigger-based approaches can disappear depending on the use of these capabilities. So let us take a look at PSEEs with- out any categories in mind. Process Weaver Process Weaver is a commercial PSEE by Cap Gemini Sogeti [Fern93, Gemi95]. The pro- cess designer defines an activity hierarchy ("method") first, and then associates with each activity a, so called, activity description and a cooperative procedure (see Figure 2.1). The Method Editor Activity Editor Cooperative Procedure Editor Figure 2.1: Process description with Process Weaver. The Method Editor displays an activity hierarchy. 2.3 An Overview of some existing PSEEs 19 cooperative procedure is defined in a notation similar to Petri-nets. Transitions may evaluate some conditions (e.g., whether the current user has pressed a particular button) and executes some actions (e.g., execute a tool, send some event to other processes using a Broadcast Mes- sage Server (BMS) [Caga90], or pass a work-context to the agenda of one or several users). Process Weaver offers several reusable conditions and actions, and a CoShell language to write/refine these by the user. An action of a net transition can start a subnet1 thus defining a hierarchy of net(-transi- tion)s. This hierarchy can correspond to the activity hierarchy in such a way that an activity is modeled by a transition. In general, an activity (especially a high-level one) is not neces- sarily specified by a net, and net-transitions may define workflows below the granularity of activities. Work-contexts are user interfaces which display all the work items and actions necessary to perform a process step. A work-context is designed in a process-specific way. For exam- ple, items may appear as icons and actions as buttons. When a work-context is sent to a user, it appears on his agenda (beside other contexts to be performed by this user). The user can delegate the context to another user, he can open it and perform some work, and he can schedule it for a specific date or for periodical execution2. In order to enact a process, a project is created and a method is assigned (= activity hier- archy & associated cooperative procedures) which defines the process to be followed. Within a project, a task hierarchy is created according to the activity hierarchy defined in the method; a task is an instance of an activity. An activity can be instantiated multiple times within a project, i.e., there are multiple tasks at the same position in the hierarchy. Each task has a number CoShell variables. These may contain some values or point to external objects like users, database objects, or files. Files can be stored and retrieved in ver- sion stores like SCCS [Roch75] or RCS [Tich85] by simple CoShell routines [Chri95]. Vari- ables are used to pass information between activities, between transitions and work-contexts, and to pass parameters to tools. Variables and their values are propagated up and down the task/net hierarchy. A project can be managed by one or more persons. They can observe its progress and drive the process manually where no procedures are defined or the situation is ambiguous, e.g., because multiple tasks perform the same activity. These people can assign values to variables and propagate results from one activity to another. They can stop the execution of net instances, change some variables, or force the execution of transitions. Process Weaver offers monitoring of projects. For each project, information about events are recorded in a file. Tracing of event categories (predefined and user events) can be 1. Subnets can be started both synchronously and asynchronously. These processes can be synchronized via events on the BMS and via waiting for an asynchronous process to reach a given state. 2. Besides the work-contexts assigned to him by processes or other users, a user can create/delete own work-contexts for personal tasks. 20 2 Process Support during Enactment switched on/off for a project. The format of the event information is defined by the system and can not be changed later. An interesting feature is the integration of Process Weaver with project planning tools, e.g., Microsoft Project. Process Weaver supports distribution of workflows, both on a local area network and over a WAN1. Distribution is transparent to both users and modelers. Recently Process Weaver has been extended to workflow management in the web (CapWebFlow). In section 5.1, more information about Process Weaver can be found. LEU LEU [Graw95b, Gruh95] is the commercial successor of MELMAC [Deit90]. Unlike its pre- decessor, LEU is used as a workflow management system for business processes. LEU pro- vides means for process analysis and simulation, and supports distributed process enactment [Graw95a]. LEU uses an extended entity relationship (EER) approach for modeling the data types to be used. Workflow is defined by high-level Petri-nets, called FUNSOFT nets [Emme91]. Organization models describe the hierarchy of organization units and the roles played by the members of those units in the process. A role describes which kinds of activities (i.e., net transitions) are allowed to be performed2 and which type of objects can be manipulated. From the EER model3, user interfaces are generated, by which objects can be viewed and modified. The generated user interfaces can be modified/replaced by using a dialog editor. A user interface is described by the types of objects it modifies. This type information is checked when a user interface is associated with a net transition. During process simulation, user interfaces appear on the screen in order to evaluate it from the user's point of view. Besides this, an enactable workflow requires procedures for tool encapsulation, consistency checking, and data access etc. In LEU, a net can be changed during enactment. A change affects all current instances of the net. Changes are critical if they affect any executing transition or introduce steps/tools which can not work with the data objects currently flowing in a net instance [Well97]. In [Gruh96] it is discussed how process models, which have evolved independently from a common ancestor, can be merged. Similar to other PSEEs, changes of schema information or of interfaces of FUNSOFT nets can cause major efforts during a merge. In order to per- form process change in a controlled way, LEU offers configuration management support which keeps track of all changes of process programs. 1. based on FTP 2. and can thus appear on the agenda of a user playing the role in the organization. 3. LEU is based on a relational database system for which schema information is generated as well. 2.3 An Overview of some existing PSEEs 21 Endeavors Endeavors [Bolc96, Hito97] is a successor of Teamware, both developed at the University of California at Irvine. Workflow is specified in terms of activity nets. Arrows between activ- ities represent control flow, i.e., an activity can start, if all predecessor activities are finished and it's precondition is fulfilled. An activity may contain a net of sub-activities. The differ- ences between activity nets and Petri-net approaches are (1) token flow represents only con- trol flow; data flow is modeled by separate connections in the net, (2) there are no places, (3) an activity can be active even when it has sub-activities, thus, the exchange of information between a sub-activity and its parent can be modeled in the same way as between activities on the same hierarchical level, and (4) activities are modeled in an object-oriented way (types are called categories), so properties beyond the net semantics can be added and redefined, thus increasing the reusability of activities during the definition of new process support [Youn94a, Youn94b]. Figure 2.2: Activity net in Endeavors Endeavors heavily exploits internet technology (WWW protocols, Python, Java) in order to provide distribution, dynamic loading, and change during enactment. Endeavors is a process infrastructure which can be used in a 3 stakeholder approach. A system programmer will implement the handlers, define the categories, and integrate the tools. Each project has its own database of categories and artifacts. A process programmer copies the categories of another project, fills in the data values, and defines the processes using the network artist (figure 2.2). An end user or process performer may not even see the 22 2 Process Support during Enactment activity network. He can interact and participate in a process through his agenda tool or WWW pages. These user interfaces can be viewed interactively (http://www.ics.uci.edu/ pub/endeavors/end/inst/Help/use_inst.html) or by using the interactive demo (http:// www.ics.uci.edu/pub/endeavors/). SPADE-1 In the SPADE-1 PSEE, process support is specified by a PML named SLANG using extended Petri-nets, augmented with object-oriented constructs to support product modeling [Band93b]. Unlike other net-based PMLs, net transitions are not used to represent develop- ment activities during enactment1. Instead, nets are used to specify reactive (sub)units which control, for instance, user agendas, conference tools, interaction with configuration manage- ment, or the workspace of a user in the file system [Band96]. The SPADE-1 distribution includes an agenda tool for creating/delegating tasks. A task is a database object and can be passed as a token in SLANG nets like any other artifact. Figure 2.3 shows a SLANG net implementing the behavior of agendas [Band96]. Apart from the places and transitions known from Petri-nets, there are some special ones. Black transitions are used to send requests to external services or invoke tools asynchronously. User places (represented by double circles) change in case of certain events. Development tools and user interfaces can raise external events, so black transitions and user places can be used to interact with tools, e.g., agendas. In figure 2.3, the dashed box contains the imple- mentation of an agenda. The agenda tool is started by transition "StartAM" and the net is left at "EndAM" when the user exits (user place "EndNotif"). The places on the left and the right of the dashed box are shared places, similar to global variables. Agenda instances use the shared place "GlobalAgendaReq" to coordinate their displays, e.g., in case one task is dele- gated from one user to another. In SPADE-1, user interfaces and tools (like the agenda) are completely decoupled from the PML, i.e., their semantics and behavior are explicitly "programmed" in the process pro- gram being executed [Band94, Ambr97]. Process support is achieved by several steps: defi- nition of object types, SLANG nets, programming guards (i.e., preconditions) and actions for each net transition, user interface definition, and integration of user interfaces and tools by definition of message broadcast protocols. SPADE-1 is implemented on the O2 object-oriented database system and uses a broad spectrum of message broadcasting technology for tool integration (DEC-FUSE, Sun ToolTalk, and Microsoft OLE2). The SPADE project ended in 1995. SLANG nets can be changed during enactment [Band93a]. First, a net (e.g., the net con- trolling the user agendas) can be changed while all executing net instances continue to exe- 1. Besides process enactment, SPADE-1 also supports process analysis and design. For these purposes SLANG transitions are actually used to represent development activities [Band95]. 2.3 An Overview of some existing PSEEs 23 LocalWS Owner StartAM ConfigUserPlace * ExtTaskChange * ExtAddTask LocalWorkspace UserPlaces TasksToBeAdded GlobalAgendaReq * RequestsToAG * InitAddTaskReq SendAgRequest * SendAgReply Tasks StateChangeReq OwnerCopy CMRequest ReplyToAG * CARToDo-Done ToDo-Done * ToDo-Deleg * FieldChangeNot TaskToDelegate AddTaskReq ControlledUsers NotifyToOther EndNotif UpdateTask * AddTask Delegate ToGlobalReq * EndAM UpdatedTaskList Figure 2.3: The SLANG net coordinating agendas. © 1997, Institute of Electrical and Electronics Engineers, Inc. (IEEE) cute the previous version of the net; new instances of the net use the changed net (late bind- ing). It is possible to modify an active net instance: first, the net instance has to be suspended, then the net and the tokens can be changed as data, and the net instance is then restarted. Changes to the net topology on the instance level are transient, i.e., the next time the net is invoked the global net definition is used. EPOS EPOS is a PSEE developed at the university of Trondheim, Norway [Conr94]. Similar to Adele, EPOS is based on a proprietary object oriented database system with versioning capa- bilities. Versioning can be applied to every entity in the system, in particular to types which are represented as objects as well. Types can be viewed and modified at runtime. 24 2 Process Support during Enactment EPOS offers an object oriented1 PML named SPELL [Conr92] and a set of core types. Process designers use SPELL in order to define subtypes of core types, thus specifying pro- cess-specific constraints and information. For example, various subtypes of type TaskEntity can be created, each defining methods to compute the "static precondition" (used by the task planner to plan execution of task instances) and the "dynamic precondition" (checked when- ever a task instance should be started). Other properties to be defined for each task type are static/dynamic postconditions, the inputs and outputs of task instances, and the subtasks to be created. The methods of process-specific types define and constrain the task network, i.e., the hierarchy of task instances where tasks are connected by input/output relationships. A task network is dynamically instantiated and modified by the users and the task planner. A task network can be viewed and manipulated by using the task network editor. A task can be associated with a role, and then executed by agents playing that role. If type information should be modified (e.g., modification of the dynamic precondition), the schema manager tool has to be used. The modification of a method is a "soft" change which can be applied easily at runtime. Structural changes (e.g., changing the inputs of a task) are more difficult as they require some human-driven repair actions. Work is performed within a project. A project contains a task hierarchy and may be decomposed into subprojects. Each project is performed as a long transaction on the EPOS database. When a project is terminated successfully, all its changes, including the type changes, become visible to other projects. At this time, type changes have to be merged with the schema of the parent project, i.e., the project which has launched the terminated project2. Thus, creating new types may raise only minor problems (e.g., name clashes). Type changes are not critical as long as they (and their instances) are discarded at the end of the project. If type changes should be merged with schemas of other projects, more care is necessary. DYNAMITE Similar to EPOS, the DYNAMITE PSEE focus on dynamic creation of tasks and their inter- relationships on the instance level [Heim96]. For example, a redesign task may reveal that a new module is needed. This has to be coded (first new task) and tested (second new task) before it is integrated with the other modules by an integration task. In DYNAMITE, a task has an interface which describes its inputs, outputs, preconditions and postconditions. The implementation of a task interface can be represented by a net of subtasks connected by the various relationships described below. "Dependent" control flow relationships between task instances resemble the downstream execution order of tasks as in project plans (e.g., a module has first to be coded, then reviewed, and then tested). These relationships form a DAG. 1. Single inheritance, i.e., the type hierarchy is a tree, not a DAG. 2. There is a permanent root project at the top of the project hierarchy. 2.3 An Overview of some existing PSEEs 25 Feedback relationships indicate how control flows in the opposite direction when some previous tasks have to rework their results. Both dependent and feedback relationships are accompanied by data flow relationships which specify the information to be passed (its name, type, and cardinality). In contrast to net-based approaches, tasks can receive inputs and deliver outputs several times during their lifetime. When control returns to a finished task, a new task version is cre- ated as a copy of the old one, thus leaving the old one unchanged (for traceability reasons). The creation of tasks and relationships are restricted by a model associated with each task net. There, the allowed task types (minimum, maximum number of instances) and the rela- tionships allowed between their instances are defined (figure 2.4). For each task type, its interface (see above), constraints for state transitions1, and triggers are defined. A trigger defines a reaction for an event2 on an instance of a particular task type [Heim97]. DevelopSystem Data flow Design[1:1] Implement[1:n] Test[1:n] IntTest[1:1] Feedback Control flow Figure 2.4: Process definition with DYNAMYTE A process model is defined in PROGRES, a specification language based on programmed graph rewriting rules3. From a PROGRES specification, a process-specific PSEE is gener- ated. Due to the limitations of the underlying database system, process models (type level) can not be changed during enactment. Merlin In the Merlin PSEE, processes are described using the ESCAPE+ PML. There are three sub- models: the object model (using a OMT [Rumb91] like notation), the coordination model (similar to statecharts [Hare88]), and the organization model. The organization model spec- ifies the documents (types & states) a user with a particular role can see, and his access rights on these documents [Junk95]. 1. There is a given state transition diagram for tasks. Developers assigned to a task can perform these transitions if there are no conflicting constraints defined in the model. 2. There is a fixed set of task events. 3. Currently process properties are specified in pure PROGRES. Some more user-friendly tools to be used by process designers are under development. 26 2 Process Support during Enactment In the object model, properties needed for configuration management (CM) are imple- mented by two classes: Document (i.e, versioned object) and System (containing version sets and other (sub)systems) [Neum96]. From these classes, application-specific classes (e.g., C- Module) inherit their CM properties. Methods which require the execution of a development tool are annotated by additional information. These describe the objects which should be used, modified, and created by this method. From this information, tool wrappers are gener- ated, into which the invocation of the tools have to be inserted. System existent visible (1) [*] p Baseline_ created (4) (B) /Create /Delete Baseline Baseline to_be_created /CreateObject /Delete (3) (4) Object >| > /Freeze CREATED/ to_be_modified stable DELETED/ [*] (2) [*] not_visible [*] (1) = { ShowHistory, /Zoom_in, /Zoom_out, /MoveToSystem, /CopyToSystem, /RemoveFromSystem, /SelectVersion, /Vary, /Copy, /TestConsistency, /Use, /GenerateFully, /GeneratePartly } (2) = { UPDATED THROUGH Propagate IN Object/ } (3) = { /AutomaticUpdate, /AddAssociation, /RemoveAssociation, ... } (4) = {/Derive, /Merge} (B) = ( Object # (-aggregated_to) # extern_and_intern_consistent_and_stable ) Figure 2.5: The ESCAPE+ coordination model for instances of class System. State transi- tion (2) is performed when method Propagate is executed. As a side effect, the UPDATED event is raised on this object which may cause further state transitions. State transition (B) is performed automatically when a System object is in state Baseline_to_be_created and the predicate becomes valid for this object. 2.3 An Overview of some existing PSEEs 27 In Merlin, the user is assigned to one or more roles. When he selects one of his roles, the documents matching his role (as defined in the organization model) appear on his working context (i.e., windows on the screen). During enactment, the file system is hidden, i.e., in order to use a file-based tool, firstly it has to be integrated as a method into the object model as described above. The object, coordination and the organization models are mapped into Prolog facts. The process engine is implemented as Prolog rules. "Evolution is supported through features pro- vided by PROLOG as an interpretive language. No validation facility exists (yet) to check upfront consequences of changes before they are introduced to the running system."[Barg96] Adele Adele [Estu94, Estu96] is a CM system which also supports development activities. Adele is based on a proprietary object oriented database system which offers a trigger mechanism. A PML called APEL [Dami96, Dami98, Estu97] is used to describe both product and process artifacts in a graphical way1: State transitions can be defined for (the instances of) each type. APEL/Adele offers a rich set of events; each method call and each state transition (together with some conditions) can be defined to be an event. Based on events, various kinds of data and control flow between development activities can be modeled graphically. An APEL activity can receive data2 and events during its entire lifetime, and can emit data and events at arbitrary points, as well. This is specified by the interface of the activity. The interface of an activity can be implemented by a net of subac- tivities, thus defining a hierarchy of activities. An activity is performed by an agent described by a user role and further constraints. Upon creation of an activity instance, an appropriate agent is determined either automatically or manually. This is done by accessing resource information specifying the users, their roles, and their positions in teams. Communication is based on message broadcasting, such as [Reis90]. Notifications and requests are sent to all agents and activities which have registered an applicable pattern. Note that this can be specified in a graphical way as well. The collection of metrics can be specified in APEL as well. Collaboration rules can be defined between the file workspaces of different activities, thus ensuring automatic notifica- tion or change propagation in case file updates occur. Graphical descriptions written in APEL are compiled into Adele types and trigger defini- tions which implement the specified process support. During process enactment, changes 1. APEL has two representations: (1) a graphical one, intended for high level process description, and (2) a textual one for tools and advanced users. The graphical is transformed into the textual representation. The graphical representation is designed to be almost as powerful as the textual one. The textual APEL language allows to manipulate database objects. 2. The arrival of input data is also an event. 28 2 Process Support during Enactment q/s d A g Methods q X/role-A Methods Object Agent A1 A2 Copy Print d d g Affect Start ... Transfer ... A3 q/u Activity Start A4 Start q/t r r Workspace of A ... Figure 2.6: Graphical process description with APEL. An activity A is refined by a 4 sub-activities A1, A2, A3, and A4. Solid arrows represent control flow, dotted ones data flow. have to be performed on Adele directly, i.e., it is not possible to compile an updated APEL description for a process currently enacting. Adele provides a basic set of user interfaces to be used during enactment, for instance, an agenda and a browser for activity hierarchies. The methods of activities, agents, and objects listed in the activity description (figure 2.6) are available at the user interface for the agent (i.e., user) currently performing the activity. Julia Julia is a PSEE currently built at the University of Massachusetts. At the time of writing this, only the PML, called JIL, has been fully defined1[Sutt97]. JIL consists of several sub-lan- guages in order to specify process support in a pro-active way, in a reactive way, and by pre- and postconditions. The user can use these styles either alternatively, or together in some combination. The sub-languages are orthogonal to each other, i.e., in each language a differ- ent aspect can be specified almost independently from the others. The JIL interpreter exe- cutes these process programs and checks interoperability issues at runtime. The main building blocks are process steps which can be further decomposed into sub- steps recursively and automated actions, called activities, coded in some programming lan- guage. Pro-active process control is specified by path expressions which control the execu- tion order of substeps. JIL steps can have preconditions, postconditions, and constraints; vio- lation of these raises an exception for which a handler can be programmed to take appropriate action (e.g., like a repair action). With each step, exception handlers can be associated in 1. while the semantics of process enactment and change are not stable. 2.3 An Overview of some existing PSEEs 29 order to handle runtime errors. Similarly a set of reactions can be defined which may react on process events occurring within this step. STEP Identify_Classes_And_Objects IS OBJECTS: Reqts_Spec: Reqts_Spec_Type; DECLARATIONS: ... -- substeps: STEPS: Browse_Requirements, Extract_Class_Candidates, ... ; -- proactive control specified in a subunit (see below): ACTIVITY: Identify_Classes_And_Objects_Activity; -- reactive control specified in a subunit (see below): REACTIONS: Identify_Classes_And_Objects_Reactions; PRECONDITIONS: -- import from separate package: FROM Requirements_Conditions USE Passed_Review(Reqts_Spec); POSTCONDITIONS: ...; HANDLERS: Handle_Classes_And_Objects_Errors; END Identify_Classes_And_Objects; ACTIVITY BODY Identify_Classes_And_Objects_Activity IS INVOKE SUBPROCESS Browse_Requirements; PARALLEL MUST DO BEGIN LOOP INVOKE SUBPROCESS Extract_Class_Candidates; INVOKE SUBPROCESS Identify_Classes; END LOOP; END DO AND ... END Identify_Classes_And_Objects_Activity; REACTIONS Identify_Classes_And_Objects_Reactions IS REACT TO VIOLATION OF Every_Object_has_a_Class AS POSTCONDITION FOR Identify_Classes_And_Objects BY INVOKE SUBPROCESS Edit_Class_Object_Dictionary; END REACT; ... END Identify_Classes_And_Objects_Reactions; Figure 2.7: JIL example specifying a step and its proactive and reactive control. Currently a preliminary version of "Visual JIL", a visual representation of a subset of JIL, can be specified within a visual editor. This editor generates a Java representation of the specified steps which can be executed by the JIL interpreter. In the current prototype, Pleia- 30 2 Process Support during Enactment des [Tarr93] is used as the object server and interaction with/between different users is per- formed via agendas. ClearGuide ClearGuide is a PSEE based on the ClearCase CM system, both from Rational Inc [Lebl97, Pure97]. ClearGuide introduces an activity hierarchy for two purposes: first, to plan, struc- ture, and guide software development, and second, to identify the change sets of an activity (i.e., the versions changed by it) for traceability reasons. The process designer creates a num- ber of activity types each associated with a process description. A process description con- sists of * process rules, invoked before or after commands (i.e., events) in case their conditions become true. This way, the consistency of changes and user permissions can be checked and the command can be aborted if necessary. Information about command execution can be propagated, e.g., recorded in some log file. * process procedures, invoked explicitly by the user in order to retrieve/check some infor- mation or to do some work. process-aware other ancestor activities operation parent activity activity guard control relationship object process rules (in process definition) principal object other ancestor activities parent activity activity control object process rules (in process definition) Figure 2.8: Process rule invocation in ClearGuide (Copyright 1997, Pure Atria Software, Inc.) 2.4 A comparative View on PSEE Technology 31 * process variables, used to hold information which is specific for an activity instance (e.g., ClearCase branch type used by this activity). * state transition diagrams (STDs), controlling the changes of the state process variable. Beyond the defined transitions, it is possible to jump into arbitrary states. The jump com- mand can be restricted by process rules. An activity is instantiated from an activity type. During instantiation it is possible to select an appropriate version1 of the process description (e.g., one which is stable or the latest one) associated with the type. An activity can be planned and scheduled; roles and users playing these roles can be associated with it. Users view new activities on their personal agendas (the activities explicitly assigned to a person) or in "potential work lists" where a user can view and select activities which are not yet assigned and can be performed by a role assigned to the user. Activities are organized in a tree-like hierarchy. An event evaluated by the process rules of an activity is also evaluated by the rules of all parent activities. Each individual activity can enlarge its scope (i.e., the objects it is interested in) by creating guard relationships between itself and these objects. Events concerning2 guarded objects are evaluated by the process rules of the associated activities. Figure 2.8 illustrates process rule invocation in Cle- arGuide. 2.4 A comparative View on PSEE Technology In this section we want to give the reader an impression about the spectrum of process tech- nology offered by the PSEEs introduced so far. Assessments of PMLs and PSEEs have been performed before [Lonc94, Romb95, Ambr97] and many of our categories correspond to theirs. On the other hand we have developed several questions as we want to view PSEEs from the user's perspective (software developers, project leaders). They are interested in the following questions: 1. How long will it take to switch from our existing development environment to the PSEE? This should be performed as quickly and smoothly as possible in order to preserve pro- ductivity and minimize the risk of introducing PSEE technology. 2. How much effort is required in order to implement useful process support the very first time? This effort does not include the costs for process requirements analysis and high level descriptions which may be already given due to CMM [Paul95] or ISO 9000 [Inte87] certification or other measures. 1. Process descriptions are versioned using ClearCase. 2. directly or indirectly. For instance, type objects and VOBs (versioned object bases) are indirectly concerned with events occurring on an instance or a contained object, respectively. 32 2 Process Support during Enactment 3. How easily can a given process support be enriched, changed, and adapted to ad-hoc sit- uations? How long is the turn-around time? Will productivity slow down during a change? 4. What kind of support do we get if this particular process technology is fully applied to all processes in our company? 5. How great is the risk during operation? In case of failure, are there any data losses or unre- coverable inconsistencies? How long can work proceed if the PSEE is unavailable, e.g., due to disk crashes or network problems?. Disclaimer: The descriptions of the PSEEs in 2.3 and their comparisons in this section are based on the cited literature and informations obtained from their providers answering the questions contained in the tables. In some cases we could not obtain the information, so empty table fields mean "unknown". Due to differences in understanding and termi- nology the answers were quite different. We tried to make these statements as readable as possible, but didn't succeed in each case. Table 2.1: Maturity of the mentioned PSEEs Process DYNA- Endeav- Clear- Adele Julia Weaver SPADE-1 LEU EPOS Merlin MITE ors Guide Maturity prototype demo commercial research com- research research research research commer- (predecessor exists product prototype mercial prototype prototype prototype prototype cial prod- is available as product uct a commercial product) 2.4.1 Set up for file-based Software Development The first question is a severe entry barrier for PSEEs. Most development teams use sophis- ticated tool sets operating on the file system. These tools can not be replaced because of high investments in both licences and training. Therefore, PSEEs provide workspaces in the file system where these tools can run, and file import/export to/from the PSEE repository. Many organizations use configuration management (CM) systems for change control1 [Rigg95]. Such a system (or an equivalent CM functionality) has to be integrated into the PSEE. This is essential for many reasons. For instance, CM is needed to trace the identity of files. Otherwise the PSEE is confused by looking at files which change whenever versions are checked out from an independent CM repository. Further reasons for the need of CM integration are discussed in 5.1.5. Tool integration works fine for simple tools whose inputs and outputs are known or can be computed in advance. Problems arise with interactive tool sets intended to be long-run- 1. The CMM requires CM for level 2 organizations, and currently many have obtained this level. 2.4 A comparative View on PSEE Technology 33 ning working environments, like emacs, CodeCenter, and Framemaker. Users run these for hours and days. * These tools have their strengths for working on multiple files which are dynamically opened and stored. PSEEs should not try to limit this freedom (i.e., allow only the files determined by the process). This may either be impossible or cause disaffection of the users. * The used files usually depend on each other. In general, a PSEE can not determine which files form a consistent set of results without asking the user. The simplest approach is to let the user store a file set after some consistency has been checked1. When a user wants to resume work on the same set of interrelated files, this set has to be exported again. (Re)storing consistent file sets is a matter of CM. CM is not just storing and retrieving single versions. Version sets have to be handled within a PSEE: baseline (= all versions used to build a particular release) and change set (= all changes performed during a development activity). We call configuration management "simple", if it only support versions but not version sets. Advanced CM has to answer queries such as "Which versions belong to this baseline?" and "To which baselines does this version belong?". Old versions can be related to objects currently in use, e.g., a bug has been reported about an old baseline, but it should be fixed in the actual baseline. Table 2.2: Set up for file-based software development Process DYNA- Endeav- Clear- Adele Julia Weaver SPADE-1 LEU EPOS Merlin MITE ors Guide File-based Con- Yes planned Simple, Simple. Inte- - Yes No, the integration planned Clear- figuration Man- (based on based e.g., gration with file system with RCS (integra- Case agement external on SCCS, RCS exists is hidden is planned tion with CM tools) RCS, or (not part of for the Web- ClearCase the distribu- user DAV) tion) 2.4.2 Implementation of Process Support The effort for process implementation and the support which can be obtained from this relate to the PML used. The support depends on the aspects which can be formulated with the PML while the effort may be measured by the lines of PML code needed to obtain some valuable support. A PSEE requires several things to be specified. First, there are data formats and database schemas for product (e.g., artifacts produced during software development) and other data (e.g., message formats). Then some workflow has to be defined, i.e., some kind of activities2 and the flow of data and control between them. This is enriched by constraints, pre- and post- 1. e.g., after a piece of software has been tested successfully. 34 2 Process Support during Enactment conditions, and the programming of some actions to be performed by the activities. In order to involve users into the process, appropriate user interfaces have to be designed. Coopera- tion policies can be implemented by user interfaces or integration of dedicated tools. A PSEE provides several languages in order to specify these different aspects. These are mostly textual languages, some are graphical (e.g., for expressing data and control flow). Graphical notations/views are preferred by users in order to receive good overviews. Modularization is another important language property. A language should provide some notion of module/building blocks to be used to compose/decompose a process description. These modules are the units the process designer thinks of, when regarding process reuse and change. Typical entities to be modeled are activities, products, users, roles, projects, organiza- tions, file workspaces, configuration management policies, cooperation, collection of mea- surement data, and user interfaces (for instance, agendas which display the activities a par- ticular user has to perform). A PML, which supports these terms and offers reusable and adaptable services, will reduce the effort of process implementation significantly. Table 2.3: Implementation of Process Support Languages used Process DYNA- Endeav- for Adele Julia Weaver SPADE-1 LEU EPOS Merlin MITE ors ClearGuide Workflow APEL JIL Petri nets - FUN- SPELL data flow can PROGRES activity Dependency Definition (path SOFT be defined by nets relationships expres- nets state transi- between sions, tions and activity proac- role-specific instances tive pro- visibility gram- rules ming, or triggers) Schema & Data APEL JIL and not needed SLANG EER Dia- SPELL ESCAPE+ PROGRES object- typed process Formats Pleiades grams object model oriented variables are (OMT like defined for notation) each activity type Resource APEL under roles of an No pre- Organi- - ESCAPE+ PROGRES modeled users, roles, Modelling (users, develop- activity are defined zation organization as scheduling of teams, roles, ment defined by model. models model (visi- objects, activities working hours, the Activity Properties bility resource etc.) Editor can be rules for user flow is defined on roles) modeled the data- in activ- base level ity nets 2. The terms activity and task are used by the different approaches with roughly the same meaning. In this chapter we use the term activity when we are not referring to a particular PSEE. 2.4 A comparative View on PSEE Technology 35 Table 2.3: Implementation of Process Support Languages used Process DYNA- Endeav- for Adele Julia Weaver SPADE-1 LEU EPOS Merlin MITE ors ClearGuide State Transitions APEL - - can be mod- - - ESCAPE+ - - STDs eled by coordination SLANG model (simi- nets lar to State- charts) Reactive Behav- APEL JIL reac- CoShell SLANG - Trigger State transi- Trigger - process rules ior tions nets. defined tions and Tables can trigger and as part of method invo- actions before excep- SPELL cations can and after each tion han- types cause further command dlers state transi- execution tions to hap- pen which are waiting for these events Definition of APEL signal raising - - part of predicates or No - The set of Process Events, com- events and trigger method calls, (only pre- commands e.g., end of an mand registering defini- both speci- defined can be activity event pat- tions fied in events) extended. terns via ESCAPE+ BMS Programming of textual Java CoShell C Interface C pro- SPELL. PROGRES e.g. Java Perl {pre, post} condi- level of to O2 gram- Actions tions, actions, APEL ming are gen- constraints etc. eral Pro- log pro- grams. Tool APEL - CoShell & SCI C pro- shell & shell, mainly shell Java, no special Integration, e.g., BMS (vari- (SPADE gram- HP BMS batch tools Python, support shell ous APIs) & Communi- ming Perl, DDE (Win- cation Inter- Ada95, dows) face), Tcl, etc. ToolTalk, DEC FUSE Workspace Coor- APEL - - - - WUDL data flow - - due to version dination (notifi- between selection cation, propaga- working con- rules, new tion of file texts can be versions can updates) defined by be propagated state transi- automatically tions and but there is no role-specific notification visibility rules 36 2 Process Support during Enactment Table 2.3: Implementation of Process Support Languages used Process DYNA- Endeav- for Adele Julia Weaver SPADE-1 LEU EPOS Merlin MITE ors ClearGuide Communication message steps planned in - tokens - - - - no special (i.e., message broadcast- can be the work- can be support (mes- passing) between ing speci- pro- flow passed to sage facility users within/ fied in gramme system or whatever) between work- APEL d to send channels flows / and then receive con- mes- sumed by sages other nets Process-specific pre- Java Work-Con- Dialog - Tcl/Tk Java It is possible graphical user defined text Editor Editor compo- to write GUIs interfaces (GUIs) desktop or Microsoft nents, which operate GUI writ- Visual others on the com- ten in Java Basic. possible mand inter- HTML for face, but it's CapWeb- up to the user Flow to use these GUIs in a pro- cess-specific way. Process collection planned The format - Execu- - - not in gen- - events can be Monitoring (i.e., of metrics of the traced tion log eral; if con- recorded by recording infor- can be data can`t be can be trol returns process rules. mation about pro- specified changed. custom- to a fin- It is not possi- cess perfor- in APEL Workflow Man- ized ished task, ble to look for mance) agement Coali- a new task the actions tion compliant version is caused by a monitoring API created. particular under develop- activity ment with CORBA and JAVA bindings. Building blocks Activities process activity hier- net transi- net tran- Class Class hierar- task inter- Activi- Activities are used to (de)com- steps archies. tions can be sitions hierar- chy with faces & ties can used to group pose process com- With each refined. can be chy & associated implemen- be process rules, descriptions posed activity a net refined. task net- Statecharts. tations refined procedures of pro- is associ- works A Statechart and variables. gramme ated. of a class can d activi- be refined for ties and each of its substeps subclasses Predefined Pro- Activity, Process work-con- - agenda, project, task, Activity, Activity, cess Entities agent step text, agenda, Petri-net- task, ver- control Artifact, change set, which are part of product, Petri-net- like sion flow Resource checkpoint, the language(s) control & like work- workflow (depends, user, role data flow, flow feedback), version, data flow measure 2.4 A comparative View on PSEE Technology 37 Table 2.3: Implementation of Process Support Languages used Process DYNA- Endeav- for Adele Julia Weaver SPADE-1 LEU EPOS Merlin MITE ors ClearGuide Predefined Pro- agenda, agenda task, agenda agenda classes (ver- agenda agenda, agenda, set of cess Entities state tran- sioned sub- GUIs available as reus- sitions for Object, classes of able process activities System, gen- Activity, libraries) erated Docu- Artifact, ment, edit- Resource able Docu- ment) + the Statecharts associated with them What is the size A realistic ISPW-6: The class ISPW6 is Average: of a process change 1600 definitions modeled by 10-20 model for a rea- control is 3 LoC, and the Stat- about 60 activi- sonable project screens, ISPW-7: echarts of a pages ties, (e.g., ISPW- 400 gener- 1800 demo pro- PRO- 2-3 sub- {6,7,9} exam- ated APEL LoC cess cover 30 GRES nets, ple). lines, 4000 pages (with- specifica- 1-3 roles. The size can be Adele gen- out method tion. Largest expressed in erated implementa- to-date: magnitudes of lines. tion) ~150 LoC or whatever. activi- ties, 10- 12 sub- nets, 6-8 roles 2.4.3 Process Enactment Process enactment begins after a process description is instantiated and resources are initially assigned. An instance of a software process is supported by a number of instantiated process scripts and process programs. Each of these are created from a process description by some tailoring and specification of variable parts. In the following we focus on instantiation & change of process programs. Process Instance Instantiation Process Description There are some similarities between instantiation of process programs and types in pro- gramming languages. For instance, a process can be instantiated several times, and these instances can communicate which each other. There are instance-specific properties (which can be changed for each instance independently) and process/type-specific properties (which are the same for all instances of a description). On the other hand, there are approaches where a new process instance is created by copying another instance (prototype), i.e., there is no type level. 38 2 Process Support during Enactment It is important that all users have a comprehensive view of the state of all processes they are involved. During work, users look at the current process (activity network and concrete artifacts) rather than at the process description. Managers need special views to track and control processes. These views should also permit adaptation and enhancement of running processes. Westfechtel et al. [Heim96] demand that activity instances should be created dynamically and related to existing ones. For example, a redesign activity may reveal that a new module is needed. This has to be coded (first new activity) and tested (second new activity) before it is integrated with the other modules by an integration activity. In Process Weaver, LEU, and Endeavors, new activities can be started at specific points within the net, i.e., these points have to be planned in the process description. The creation of activities at arbitrary positions in the process can only be performed as a process change. Dynamic creation of activities are possible in DYNAMITE, EPOS, Adele, SPADE-1, and ClearGuide. Table 2.4: Process Enactment Process DYNA- Endeav- Clear- Adele Julia Weaver SPADE-1 LEU EPOS Merlin MITE ors Guide Are there means A model when Cooperative SLANG FUN- A (sub) A project Tasks can Each activities of process instan- can be invoked a procedures nets can be SOFT project can has an be created project are instanti- tiation, i.e., creat- instanti- JIL pro- are instanti- instantiated nets can be instanti- ESCAPE+ and con- has its ated from ing a process ated any gram is ated. thus creat- be instan- ated contain- specifica- nected own activity instance from a number of bound to Communica- ing so tiated. ing its own tion to be dynami- database types. Non- process model? times, con- resources tion between called task network. followed. cally of cate- isolated Can several pro- currently , agents, instances is active cop- A task net- Projects can according gories activities cess instances or not etc. possible via ies. work.is cre- not commu- to a given and arti- can operate created from dif- Many message ated by copy- nicate process facts. on common ferent process instances broadcasting. ing a proto- between model. Commu- versioned models coexist/ can coex- type each other Communi- nication object bases interact in the ist. They network. nor operate cation is not (VOBs). same PSEE? can inter- Projects can on the same between sup- act. exchange objects. instances ported data before of differ- yet. commit. ent process models is not sup- ported. Visualization of agendas, planned task hierar- agendas agendas, agendas, role-spe- agendas, agendas, agendas, Enactment State various chy, work- Net with graphical cific work- views on Resource Activity browsers contexts, tokens, display of the ing contexts the current Artist, Organizer e.g., on the agendas, net enacting display doc- task net- Instance activity instances task network uments with work Artist hierarchy with tokens certain states & methods 2.4 A comparative View on PSEE Technology 39 Table 2.4: Process Enactment Process DYNA- Endeav- Clear- Adele Julia Weaver SPADE-1 LEU EPOS Merlin MITE ors Guide Process entities any entity resources project, tasks tokens in tasks, - tasks, con- GUIs, activities, which can be cre- mentioned tasks, work the net trol & data Resource association ated/removed above contexts, task flow rela- s, Arti- of roles and dynamically variables tionships facts, users to without chang- (inputs, out- activities, ing the process puts, dependen- description resources), cies tokens in the between net, CoShell activities procedures, allocation of work items 2.4.4 Process Change during Enactment The changing environment causes the used processes to undergo permanent adaptation. First, more and more process support might be added. Second, existing support has to be improved. Third, specific situations require process deviations in some local context, i.e., a process instance is changed ad-hoc, but this change should not be propagated to other process instances. Properties defined in the description of a process program can be changed in dif- ferent ways: i) The process description can be changed thus changing the properties of all instances implicitly. ii) A new copy of the process description is created and associated with the process instance which requires different process support (i.e., the instance has its own description). The process description can then evolve without changing the behavior of other instances. iii) A process description of an instance is replaced by another. Replacement becomes nec- essary after a major process change: first the change has to be prototyped in one process instance and then, in case of success, the old process description is replaced by the new one for some other instances (see 2.2). In day-to-day work, process changes should not be performed by some kind of super user responsible for the whole project. Each team or individual developer should be able to adapt the process according to current needs. This is not a trivial issue because this raises the need * to define who is allowed to change which part of a process description, and * to restrict the impact of process changes depending on the responsibilities of those per- sons. If a person is not permitted to perform an action (e.g., canceling a project), it should not be possible, that this person changes the process description in a way, that this action can be now performed (or triggered) by enacting the changed process description. 40 2 Process Support during Enactment Change should be performed during enactment without forcing work to be suspended or abandoned. Change carries the risk of errors. Therefore, the possible negative impact of pro- cess change has to be carefully considered. Table 2.5: Process Change during Enactment Julia 2 Process Endeav- Adele1 planned Weaver SPADE-1 LEU EPOS ors ClearGuide Parts of the pro- Anything Each part of a neither the Active copies Nets can be modification of the Specifi- process vari- cess descriptions can be step if the step activity hierar- of nets and the changed, type hierarchy cations, ables and rules which can be changed is not active. chy nor nets tokens con- but not tran- sub-nets, changed during dynami- Code (e.g. (cooperative precondi- procedures) are tained sitions behav- enactment cally. Activi- tions) if not changeable which are iors (please mention ties executed. while they are currently any constraints or under way Substeps may executing. See executing preconditions). continue. be added any also citation on time. page 44 Can a process yes - - - yes, if the With a single com- yes instance be asso- change is mand it is possible ciated with compatible to switch to another another process to the state version of a type description dur- of enact- hierarchy within a ing enactment? ment. transaction. Which changes By default, all - an active copy - manipulation of the all each activity can be limited to any change can be modi- task network; type changes may have its one process is local to fied without changes local to a are local own process instance without one instance. affecting oth- project to a definition (ver- affecting others? ers project. sion) User interfaces evolution not yet Process SLANG edi- FUNSOFT Schema manager Browser command line used for process tool (under defined viewer/debug- tor editor Artist, interface change during develop- ger + Process Network enactment ment) editor Artist Normal impact of Everything no net instance is net (active all current The PSEE clients change is per- process change can be done impact.Only suspended copy) is sus- net have to be restarted. formed during enactment without stop- inactive parts until change is pended dur- instances Actions are inter- instantly (e.g., must the ping the pro- are changed finished ing change. should be preted by PSEE cli- process or the cess. Other parts of suspended ents. The database PSEE be sus- the process are server only handle pended?) not affected. data management. After a change: No errors syntax syntax is syntactical syntactical Syntactical correct- network what kinds of are detected. checks, flow checked errors are correctness ness (e.g. refer- integrity errors are analysis before restart detected dur- of FUN- enced types, & detected automat- ing parsing. SOFT nets. methods). Errors in ically? Which Major prolog-coded kinds of errors changes can actions may not be can not occur due be simu- detected before to PML or PSEE lated. run-time. properties? 2.5 Trends and Open Issues 41 Table 2.5: Process Change during Enactment Julia 2 Process Endeav- Adele1 planned Weaver SPADE-1 LEU EPOS ors ClearGuide What kinds of errors may any kind of Program- The impact of any errors can occur affect any- logical error ming errors is limited by change after a process thing can be intro- errors.New transaction bound- can change? When duced tools may aries. Besides man- invali- will they be not work on ual repair, transac- date per- detected and how existing data tions/subprojects sistent could they be can be aborted and data repaired? then redone. Access control process process must be pro- - defined in - - possible by for process change change cess owner or the Organi- process rules change should be should be Weaver admin- zation imple- implemented istrator model mented as a as a process process How can users - - - - - The files in the yes. Clear- continue to work workspaces are still Guide can be even when the accessible. switched off, PSEE is not oper- so the user can able for some continue work- time? ing with Clear- Case. 1. Concerning Adele, no comprehensive technical information about process change could be obtained. The comments were obtained from the authors. 2. The Julia prototype is just emerging (see page 28), so these are initial thoughts for process change obtained from the authors. 2.5 Trends and Open Issues From the background of the information about the PSEEs above we want to mention com- mon trends, which were followed in the development of most PSEEs in the last years, and open issues which still impose major challenges for current and future PSEEs. 2.5.1 Common Trends in PSEEs 2.5.1 a) PSEEs become reactive. The message broadcasting paradigm is widely used for tool integration. Now, PSEEs begin to exploit event-based approaches to react on process-specific events, like creation of activ- ities, arrival of input data, etc. (APEL, JIL, DYNAMYTE, SPADE-1, EPOS). In some cases, existing technology is used in a different way (e.g., preconditions, SLANG nets); in other cases more general and powerful mechanisms are proposed. 42 2 Process Support during Enactment Conceptual aspects of reactive PMLs are discussed in the remainder of this chapter (e.g., change, event definition) and in chapter 5. 2.5.1 b) More and more Predefined Process Entities are offered. More and more predefined process entities become available in PMLs. Particularly commer- cial products offer a rich spectrum of terms and user interfaces for mandatory or optional reuse (activities, users, agendas etc.). Open questions are still "Should a particular term or functionality be part of a core PML or part of a PML library?" and "What are criteria (or good examples) for high-level, reusable process libraries?". Here we want to discuss three exam- ples of predefined process elements/services: relationships between activities, event defini- tion, and configuration management (CM) services. Relationships between Activities. There are very elaborate relationships like the arcs and places connecting transitions in net-based approaches. They define a "token game": if all input places are filled by tokens, a transition starts and consumes them; at its end it fills its output places with tokens. There is both a flow of control and data1. On the other hand, there are very general event-trigger based models, for instance, APEL [Dami98]. Here, an activity may react on various events (especially input events, in cases some data has arrived) raised by other activities, and emits events (e.g., "result produced", "activity finished"). An activity may react on events any time after its start, and may emit events long before it ends. This way, more kinds of control and data flow relationships can be defined compared to net-based approaches. Event Definition. The definition of reactive behavior requires an elaborated set of events. The more predefined process entities exist, the more events are available for defining any reactive behavior. Some PSEEs permit the definition of new events during process defini- tion; other PSEEs offer a fixed set of events, but the user can calibrate event conditions in order to detect specific situations. PSEEs and CM. Software processes in industry use file-based2 CM systems and change request management (CRM) systems in an integrated way. CRM systems are used to store, schedule, assign, and trace change request coming either from customers or in-house devel- opers. Integration ensures, for example, that a user only can change those documents which have been assigned to the change request the user is currently working on. Most PSEEs (plan to) offer CM functionality as a mandatory feature (see 2.4.1). So far, PSEEs have not tried to encapsulate state-of-the-art CM systems, e.g.,ClearCase [Lebl94] or Continuus [Caga95]. Adele and EPOS are built on top of proprietary CM Systems [Estu94, Estu96, Conr94]. In other PSEEs, CM/CRM functionality has to be implemented in the 1. In most cases, tokens contain (references to) some data. 2.5 Trends and Open Issues 43 PML, e.g., [BS95]. This is a demanding job and may not lead to a state-of-the-art CM solu- tion. It can not be expected from an ordinary user of a PSEE to define his CM system in this way. In the last few years, CM vendors have begun to offer process support based on their sys- tems. Continuus and ClearGuide were the first; others will probably follow. 2.5.1 c) Processes become visible. Users require powerful and process-specific user interfaces1 which give them overview and support. There is a need for both predefined general-purpose user interfaces and facilities for designing process-specific ones. General-purpose interfaces offer the comprehensive func- tionality of the PSEE. They can be used initially when process-specific user interfaces are not available. They are usually designed in a sophisticated way as they will be used by many users. Investments in process-specific user interfaces may not be that high, but they are def- initely needed for effective process support. Ideally, user-interface design should only be influenced by process requirements, but not by properties of the used PML. No PSEE provides conceptual support for user interface design. During implementation of process support, developers are free to design user interfaces which access the PSEE by some APIs. Currently no PSEE supports the process-specific selection of user interfaces. So, it's up to the user to invoke GUIs in a process-specific way. There are no sufficient means when the user wants to understand or change process sup- port, i.e., he asks "why?" with respect to the process description he has written before. Ambriola, Conradi, and Fuggetta [Ambr97] state: "However, there is often little support for visualization, viewing, explanation, simulation, etc. This kind of issues have not been addressed in detail. In particular, we need to clarify how the different components/languages 2. Files vs. Databases. About a decade ago it was advocated that software development should be based on software engineering databases rather than the file system. This was because files are untyped and have only limited attributes, no relationships, no inher- ent notion of versions, and no database features like transactions and queries. One of the major efforts in this area was PCTE, a standard by ECMA and ISO [Euro93]. This prediction has not become true. The common basis for tools is still the file system and there is no standard in sight to change this situation. Users are also forced to operate on files, for instance, take a file produced by one tool and pass it to another. Configuration management is file-oriented too. CM systems [e.g., Lebl94, Estu96] tend to provide a file system API for their databases in order to let tools operate as usual while offering, in addition, a rich data model (versions, attributes, relationships). Problems arise with CASE tools which store their artifacts in proprietary databases. While these databases contain many items to which change control should be applied, they can only be versioned as huge files on the file level. Even if these tool-specific databases would become accessible (in order to backup/restore single items) from the outside, some stan- dard interface and integration with file-based CM is still missing. There exists repository technology with sophisticated CM capabilities (e.g., Enabler [Soft97] seems promising), but whether CASE providers will adopt these technology is still an open issue. 1. i.e., in one process a particular user interface is used while in another process things may appear in a different way. 44 2 Process Support during Enactment of a PSEE should be designed and interoperated to take care of (parts of) this task. For instance, the visualization of the process state should be performed taking into account a high-level view of the process such as the one offered by a specification written in some pro- cess specification language (PSL). Conversely, at run-time we execute a process implemen- tation language (PIL) "program" which in general provides a much less abstract view of the process. Therefore, we should be able to develop reverse mapping tools to relate the state of enactment to the more abstract specification of the process. We experienced these phenom- ena in all our systems (OIKOS, EPOS, and SPADE-1)." 2.5.1 d) Dynamic Instantiation eases Process Evolution. Process instantiation is a useful term to clarify the use of process descriptions. Instantiation does not only define the transition from a process description to a process instance, but also the dependencies between these during process enactment and change. Process instantiation is still handled quite differently in PSEEs. Some PSEE create net instances and populate them with tokens; others instantiate objects from types/classes. Fur- thermore others (EPOS and Endeavors) perform instantiation by copying a prototype pro- cess, i.e., there is no type level. The latter approach raises the need for some pre-processing, i.e., the detecting and changing of unwanted properties (e.g., resource allocation copied from the prototype). Also the granularity varies. Users would view processes on the level of (sub) projects or development phases, while the instantiation mechanisms provided by PSEEs are also applied on a fine-grained level (e.g. creation of a relationship). Dynamic instantiation is used for process evolution. Again the granularity matters. For instance, net-based approaches, like Process Weaver or LEU, perform instantiation by creating a "populated copy"1 of a net. This way, within the net the process steps are determined in advance, i.e., there is less flexibility. More recent approaches claim to solve this problem by permitting more freedom at the instance level (DYNAMITE, EPOS, Adele, ClearGuide), i.e., the user can create/manipulate activities and control & data flow dynamically. The next process step to follow can be deter- mined dynamically too. Unwanted situations can still be restricted by constraints and pre/ post-conditions defined in the process description. Instantiation techniques can also be applied in net-based PSEEs. Christer Fernström describes this for Process Weaver as follows [Fern97]: "Process change during enactment is supported to some extent via the fact that these interlinked process networks are dynami- cally bound, so that a sub-process gets instantiated from its model only when its needed. Typ- 1. net instance populated with tokens 2.5 Trends and Open Issues 45 ically, a top-level process will loop through a set of objects that each one of them will be pro- cessed by an independent subprocess (for example a project schedule containing many dif- ferent tasks, a mailbox containing many incoming mails, etc.). The top-level process can have a very long life-time (months), whereas the children will be short-lived. Now if you change the definition of a child process (its cooperative procedure), the new definition will be used the next time the top-level process requires a new instance. In reality this means that you have dynamically changed the behavior of the top-level process, without having to stop any ongoing process instances." 2.5.2 Open Issues in Process Implementation The incremental definition of process support and its change during enactment are still great problems which have been tackled in theory but still offer great problems in practice. We believe that these problems require new paradigms for both PMLs and PSEEs. 2.5.2 a) Supporting partial known Processes in an incremental way In most processes, only the principal data & control flows are known, but exceptional flows can not be determined in advance. Or a process designer does not want to overwhelm process descriptions by exceptional cases which (besides monitoring) should not be supported any- way. So, only support is specified in the PML - unsupported parts of the process are enabled but not explicitly written down on the level of process implementation (although they may be described in some high-level process specification. Please recall "Implementation of Pro- cess Support differs from Process Modeling" on page 8). The basic prerequisite for this "lazy" approach is a basic infrastructure which enables developers to work even if no line of PML code is written (see requirement R2 in section 1.2). Support for partial known processes need language constructs like "The transition from step A to step B (if chosen by the user) is supported by an automation rule if condition C holds.". Thus, it should still be possible to come from A to B if condition C is not satisfied, and B could be entered from any other previous step1, even this is not explicitly specified. Many approaches (LEU, Process Weaver, JIL, DYNAMYTE, Endeavors) offer language constructs requiring complete specified processes. For instance, "A; B" or "A C B" express that "Only if condition C holds it is possible to come from A to B.", i.e., B can only be reached via the defined control flows. In many cases it is defined in the language semantics 1. if not restricted by other rules 46 2 Process Support during Enactment that B is started automatically, i.e., if user interaction is wanted, additional statements have to be included. Support for partial processes is possible in the mentioned PSEEs, but requires many more statements and efforts. PMLs based on the event-trigger paradigm (e.g., ClearGuide's PML) support incomplete/ incremental process implementation much better. How formal models can be used in a prag- matic way can be illustrated by the use of state transition diagrams in ClearGuide: beyond the defined transitions, it is possible to jump in an arbitrary way. Rules can restrict state tran- sitions or jumps. The principle behind this example is that there is some model defined which offers much freedom initially. As more knowledge about the process is obtained over time, freedom can be restricted to exclude unwanted actions. According to Peter Wegner: "Con- straints are more powerful because they are applicable to noncompositional behaviors. Michaelangelo's sculptures realized by chipping marble slab could not have been realized by gluing together small bits of marble." [Wegn96] Thus, incremental implementation of process support uses a mixed style of program- ming: On one hand, powerful process support should be provided by an existing infrastruc- ture and by language constructs which do not restrict unsupported process steps. On the other hand, the variety of possible processes has to be restricted by constraints. There are a number of rule-based PMLs permitting incremental addition and change of rules during enactment, e.g., Marvel/Oz [Kais94]. But currently their PSEEs can not support partial known processes as there is not a basic infrastructure enabling ad-hoc work which is not specified in the PML in advance. This is possible in ClearGuide which offers configura- tion management and activities which can be used even if little or (in the extreme case) no process rules are written. Currently there is little experience in applying this incremental style during implementa- tion of industrial processes. We expect that this approach will open the door for process tech- nology in industry. 2.5.2 b) Enabling Change during Process Enactment Process implementation is still programming. All approaches require programming (e.g., of preconditions, of new classes) which often leads to huge amounts of code. But in contrast to programming languages, process programs have to be changed during enactment. Dynamic change is possible in principle, but risky. A number of PSEEs offer a great flexibility during enactment, but only syntactical checks are applied to the changed process program. In general, no computer program can be assumed to be correct after a change. In particular, process support is difficult to be tested 2.5 Trends and Open Issues 47 completely because it is a data driven application and there is much information about con- sistency hiden in code. So changes during enactment are likely to cause errors. On the other hand, a PSEE is a central resource on which the work of many people depends. Thus, errors can have a high negative impact. We have identified the following cat- egories: * Errors which are detected as they occur. For instance, there may be syntactical errors in some scripts. Or some dynamic checks (e.g., preconditions, constraints) fail. These kinds of errors should be handled by some transaction mechanism in order to avoid inconsisten- cies in the database. All PSEEs treat single commands in a "all or nothing" way, but, except for EPOS, no other system can group several commands within one transaction. In Adele, the command and the actions triggered by it are performed within one transaction while in ClearGuide this is not the case. Therefore, the ClearGuide manuals demand that the process programmers do not perform checks after changes have been performed, because even if a check fails, the change is not undone by the system. This requires great care during process implementation and change. * Errors which have changed or deleted some important data. Such an error can cause sub- stantial work and trouble. Besides manual repair, archives are useful for storing backups and restoring lost data. The Adele database has a backup-restore mechanism, ClearGuide uses the one of ClearCase while other commercial PSEEs rely on the ones of the underly- ing databases or of the file system, respectively. Repair/restore of database states can be very labor-intensive1. * Errors with an impact on shared computing environment. For instance, errors can increase the load on a server or on the network in a way that these become unavailable to all users. Or programming errors may stop some server. In EPOS and ClearGuide, for example, the database server does not execute any process code, so it can not be stopped by program- ming errors. * Errors with an impact on processes accessing certain data. Often some code fails only for particular data while it works well in all other cases. For instance, if all commands access- ing an object in a certain constellation are erroneously aborted, some processes are blocked while others still can proceed. * Errors which disturb or mislead people. For instance, people can be overwhelmed with superfluous messages, or wrong messages can cause them to perform wrong actions. Each error can be contained in several of the categories above. The situation becomes worse when multiple cooperating processes are changed by different people. 1. It is important to detect as many errors as possible at runtime. Therefore, the implementation of runtime checks should be encouraged. 48 2 Process Support during Enactment The basic dilemma is that change during enactment is mandatory, but the risks might almost be too high. The risks can not be eliminated, but attempts can be made to minimize them: 1. PMLs have to be improved in such a way that the impact of a statement can be easily determined by a reader at first sight. This can be achieved by specific language constructs or by well-defined boundaries (similar to a program which can not access any memory outside its address space). 2. After a change the new situation should be clear for every participant. People want to specify their needs - within a few words - without having to read large texts in order to apply a change properly, and - on a high semantic level which can be understood by non-specialists. So even the PML should be tailored for process implementation, it has to contain the right abstractions. Some abstractions are embodied in the predefined process entities discussed above and in table 2.3. Introducing an abstraction carries the risk that its semantics may not be appropriate in some cases. But change can not be mastered without the right abstractions. 3. A PSEE should offer a transaction mechanism (as discussed above) in order to undo changes in case of errors. In particular, actions which are triggered by events should be executed within the same transaction which has caused the event. 4. There exists a number of debug and tracing tools (e.g., for ClearGuide), and process mon- itoring is also useful to discover the cause of errors. Currently there are no test tools which can make any assertions about the runtime behavior of process programs. 5. Changed process programs have to be tested in a test environment. A test environment has to be instantiated as any other process (see table 2.4 on page 38). Net-based approaches offer clear means of simulation and coverage criteria while other approaches don't offer the customer a test methodology. Realistic tests have to involve/emulate several users act- ing in a distributed environment on a large database. Setting up and maintaining such an environment can be expensive especially for PSEE customers. Every point above is challenging, although none alone will be a "silver bullet" eliminating all risks of process change. In specific cases (i.e., certain changes applied to certain kinds of process programs written in a certain PML), such an improvement can raise confidence in the correctness of a change significantly. 2.6 Concluding Remarks 49 2.6 Concluding Remarks Assessing the concepts of PSEEs was difficult as we had no access to them nor any contact to their users. Most research prototypes have not been used in practice. By looking at the papers and talking to the authors, we came to the following conclusions: * All mentioned PSEEs provide some basic process entities and services. The required spectrum is very broad1, maybe too broad for research prototypes. But also commercial products like Process Weaver and LEU do not seem to provide, for instance, sufficient ready-to-use CM services or integration with CM systems. Only ClearGuide and maybe Adele seem to offer a comprehensive infrastructure which frees the process designer from implementing basic entities and services. * Most PMLs and their PSEEs require a complete description of the process in terms of the PML in advance. This imposes a high entry barrier. Once achieved, such a completeness is hard to maintain due to the variety and continuous change of the processes in use. Sup- port for partial known processes (2.5.2 a) can not be implemented in an incremental way within most of the investigated PSEEs. * Process implementation is still programming. All PSEEs make use of database technology and general purpose programming/scripting languages. Process descriptions can easily become quite voluminous and hard to read. This requires skills which can not be expected from a typical project leader. * Change of process programs during enactment is still difficult and dangerous. In existing PSEEs, the impact of changes on the state of a process is hard to determine in advance. Although many PSEEs provide means for change during enactment, many seem too risky to be used in a system which has to be dependable. * Different process instantiations can coexist and cooperate within most PSEEs (see table 2.4). In most cases, cooperation is achieved by communication via agendas and accessing shared data. Some PSEEs support cooperation via message broadcasting as well (Adele, Process Weaver). To us these mechanisms still seem to be rather low-level. For instance, we have not found any means of sending messages to a specific task (or to its team mem- bers) located in another process instance. In total, existing PMLs seem to be too sophisticated and complex on one hand, while on the other hand important aspects are not supported or require too much code to be implemented. Process evolution is possible in some systems, but we assume that the risks of errors can only be reduced by major changes in the PML and its runtime environment, the PSEE. 1. For instance, team development requires some common configuration management. The use of agendas has become com- mon sense. There should be concepts for integration of tools and appropriate user interfaces. Process monitoring has to be supported. 50 2 Process Support during Enactment Besides technical features, there is the need for methodologies, e.g., for implementing cooperation, for design of easily changeable process support, or for testing process programs. As already argued in section 1.3.1 on page 8, we see that language features useful for high-level process modeling become obstacles during implementation of process support, especially when it comes to change during enactment. Thus, besides adding new features, existing concepts should be excluded. Within most PSEEs, many of these concepts are so fundamental that it seems impossible to improve these systems towards better process imple- mentation and change. The concepts we think to be the "right" ones and the ones which we recommend to omit are discussed in chapter 5. The following chapter introduces our PSEE named ADDD while chapter 4 shows how the PMLs of ADDD can be used to support the ISPW9 example. Acknowledgment: We are happy to thank Gregory Alan Bolcer, Geoff Clemm, Reidar Conradi, Elisabetta Di Nitto, Jacky Estublier, Christer Fernström, Alfonso Fuggetta, Volker Gruhn, Jens-Otto Larsen, Sabine Sachweh, Stanley Sutton, Ursula Wellen, and Bernhard Westfechtel for their contributions to this chapter. These include not only facts regarding their PSEEs, but also interesting discussions of concepts and their rationale. CHAPTER 3 A PSEE supporting Process Implementation and Change When process modelling became a hot research topic in the late eighties, process modelling languages (PMLs) dominated the discussion (e.g., there were long debates on rule-based vs. net-based PMLs). Since then, process enactment has gained more and more interest, for instance, configuration management (CM), tool integration, or the architecture of a process- centered software engineering environment (PSEE) (e.g., distribution, transaction models). Nevertheless, most existing PSEEs are shaped by the PML which was chosen a long time ago. Our work was focused on CM at the beginning. We aimed to support cooperation in CM and built a reactive software engineering environment named ADDD1 [Kobi90, Kobi93a, Kobi93b]. Later, a command interface was added based on which several languages evolved for different aspects of process support. Our vision of software processes and the supported needed was as follows: * Communication and workflow should be supported in first place, guided if possible, and enforced only in cases which are fully understood. People performing tasks push informa- tion to other people/tasks, or pull information produced by others. The decision about which item should be pushed or pulled at which time often depends on ad-hoc needs and believes. * Human decisions are of great importance in almost every process step. The complexity of the software system produced, the impact of a desired change, and non-technical forces influence the process in a non-deterministic way. For instance, some process steps may be skipped in order to perform them later or never. 1. A Development Environment for Dynamic Documents. 52 3 A PSEE supporting Process Implementation and Change * Visibility (i.e., what's going on) and traceability (i.e., what has been done) are essential for both humans and process programs. Process execution should be documented by con- necting process artifacts and product artifacts concerned (figure 3.1). Graphical user inter- faces should be adaptable to process needs to offer real process support. process artifacts product artifacts Figure 3.1: Traceability: relationships should document the usage of product artifacts by process artifacts. * Process support has to be added to and modified easily during enactment. This has influ- enced the technology we have chosen: 1. Any kind of situation should be represented as nets of interrelated objects. Situations should be changed by instantiating new objects/connections and removing them. Object-oriented technology supports this paradigm and allows it to define object inter- faces which only permit consistent operations. We found the object-oriented paradigm well suited to building and extending the PSEE by ourselves, but from the process designer's point of view a huge class hierarchy is difficult to understand. Object-oriented design in general is not an ad-hoc technology, i.e., it requires some time and improvement cycles in order to be applicable. Last but not least, modification of class hierarchies during enactment can reveal substantial conceptual and technical problems in general. Therefore, we reduced the need for class definition to a minimum. This is a significant difference to other approaches (like EPOS, APEL, Endeavors, or SPADE) where definition of object-oriented class hierar- chies is used heavily. 2. We have chosen event-condition-action (ECA) rules (we call them triggers) in order implement reactive behavior. ECA rules are generally very powerful. In order to enable understanding and change, ECA rules should be independent from one another. We excluded any mechanism such as forward or backward chaining and explicitly discour- age the implementation of any side-effects between rules. Each process rule should be designed, understood, and changed on its own. In contrast to a statement in some sequential formalism (which can exploit assumptions about previous statements), ECA rules have to verify any assumptions about their execution context (see page 67). This makes ECA rules robust in case of change. 3. Customization is a very pragmatic approach used to adapt the functionality of commer- 3.1 Basic Concepts and Terminology 53 cial products by changing some parameters or scripts. This requires to foresee varia- tions of system functionality that will be needed by customers, and to provide simple hooks which can be used to change things easily at runtime. 4. In ADDD, each task (or the process to which it belongs, respectively) can customize system behavior according to its purposes. Our approach to customization is similar to the Strategy pattern [Gamm95] (see 5.2.2 for discussion). ADDD integrates CM with task management and triggers: A task hierarchy can be dynami- cally built at run time. Developers can be associated with tasks dynamically. Work can be performed by a user only on behalf of a task. Therefore, locking, cooperation, monitoring, and event handling is performed with respect to tasks. The basic concepts and terms are described in section 3.1. The task hierarchy is the skeleton to which process descriptions (called policies) are attached. Policies contain dynamics like customization parameters, triggers, and process pro- cedures. We developed a trigger syntax which enables compact descriptions of active sup- port. Besides this, other languages are used to describe further process characteristics (3.2). A pragmatic methodology for using these languages during implementation of process sup- port is described in section 3.4. Section 3.3 illustrates how the concepts of ADDD are used. First, there is some kind of workflow support: events, messages, and results can be routed manually or automatically from one task to another. Second, traceability is an important issue: as users have to make decisions all the time, information has to be retrieved and displayed. This includes historical information, e.g, people involved, review remarks, change histories, etc. Processes can be changed during enactment, but only by authorized persons. Section 3.5 discusses the risks of process change and how they can be minimized in ADDD. We sum- marize the essentials of this chapter in section 3.7. 3.1 Basic Concepts and Terminology ADDD provides a kernel functionality which enables users to work, even if little or (in the extreme case) no process support is implemented. The kernel functionality consists of the following services: * Management of task hierarchies: task creation, assignment of team members and roles, management of data flow relationships between tasks, and state transitions on tasks (acti- vate/suspend/finish/abort). Each task has one or more team members with the role man- ager. A manager can perform privileged operations on his task and its subtasks, e.g., cre- ate them, activate them, assign inputs and team members. 54 3 A PSEE supporting Process Implementation and Change * Communication between tasks: messages can be sent to a task, i.e., to all its team members or to those performing a particular role. Furthermore, a manager can assign inputs to a task or one of its subtasks manually. * Implementation of process support: a manager can assign a policy to his task and its sub- tasks (see 3.2.3). * Configuration management: all artifacts produced during the process are versioned. Ver- sions can be grouped into configurations. A configuration is a set of versions (e.g., all sources used to build a particular program). A configuration is a version, too; i.e., old states are saved in a version history. The ADDD kernel is an object-oriented framework, i.e., it is implemented by a set of classes of a C++ database system, called OBST. OBST permits all public methods to be accessed via a Tcl [Oust94] command interface [Theo93]. Thus a user can directly invoke public methods on objects, or he can write some scripts to automate his work. The object oriented interfaces are designed to shield the objects from low level inconsis- tencies (like loss of referential integrity) or violation of the consistency constraints imposed by the concepts of ADDD1. In ADDD, the enactment state is represented by objects, e.g., tasks, versions, relation- ships, policies. Objects can be viewed, created, changed, and removed by the user interac- tively. The command interface is used by both users and process programs. Process programs do not access any internal interfaces hidden from the user. The user can understand the enact- ment state regardless whether it has been reached by execution of process programs or inter- active commands. This enables the user to proceed or repair the enactment state in case a process program does not execute as expected. Each command is executed within an execution context consisting of the id of the user who issued the command and the id of the task on behalf of which the command should be executed2. The execution context is used for several purposes: * Bookkeeping: The execution context is used to set the author of versions and relation- ships, for monitoring, and for locking. * Access control: Privileged commands are reserved for users which are managers of the concerned task or its parent tasks. Further access restrictions can be added by defining triggers. 1. The construction of a robust interface sounds trivial, but caused a lot of work during class design and implementation. Furthermore, deletion of data is restricted by various built-in rules. Parts of the database can easily be made append-only by some additional constraints. So in case of erroneous changes, earlier states can be recovered easily. 2. Of course, the user has to be a team member of this task. The execution context is denoted as username@taskname, e.g., user willi working on codingBugfix678 is written as willi@codingBugfix678. 3.1 Basic Concepts and Terminology 55 * The process support to be applied. Depending on the current task, the system behavior is customized and specific triggers are active. Customization and concerned triggers can be totally different for the same command when it is issued on behalf of different tasks. * Trigger execution. A command can raise several events which may cause triggers to be fired, i.e., procedures are executed. For each triggered execution the context is switched. If the trigger belongs to a policy of a task, the procedure is executed in the context of this task with the privileges of a manager. In 3.1.1 and 3.1.2 we define the basic terms for task and configuration management. Figures 3.3 and 3.4 show how the terms are interrelated using the OMT notation [Rumb91]. Tool integration and workspace management is explained in 3.1.3. In order to make our model reactive, events and triggers are introduced (3.1.4). 3.1.1 Task Management A task is "a piece of work to be done", for instance, fixing a particular bug. Tasks are created and finished dynamically. Tasks are the items appearing on the agenda (i.e., to-do-list) of a user, showing him which tasks are pending. There are some PSEE, like Oz [BS95], which do not have any notion of tasks. These PSEEs have difficulties to tell the user what to do next according to the current process (e.g., those PSEEs do not offer agendas). A task has a description (what to do) and a deadline. A task also includes all activities to perform this "piece of work ". Therefore, a task is a development activity. Tasks are the instances connected in a workflow. A task may produce a result which then can be consumed by other tasks. Tasks consume resources, i.e., time of the developers concerned. After a task is created, developers have to be assigned to it1. This fact determines the granularity of activities embodied by tasks: a task could be a project, a unit in an organization, a unit of work which takes hours, but NOT activities which are performed within a few minutes or by clicking on a button. For those see "Checklists" on page 59. Furthermore, tasks are above the level of tool executions, i.e., even a long-running tool execution is not modeled as a task. Tasks are organized in a tree-like task hierarchy. This hierarchy represents an organiza- tional structure; the manager of a task has management permissions on subtasks, too (see below). Each task is identified by a pathname (similar to the pathname of a file in a file sys- tem) built from its name and the names of its parent tasks. 1. We do not provide any time management functionality, i.e., we do not keep track of the time available per developer, and the time estimated for a task. Based on these informations, resource allocation and task scheduling could be performed in some intelligent fashion. In software development planning is often jeopardized by inaccurate time estimations, so we did not tackle this issue. 56 3 A PSEE supporting Process Implementation and Change A task can be in state "new", "activated", "suspended", "finished", or "aborted". When a task is created, it is in the state new. In this state team members and inputs can be assigned without disturbing the team members with notifications etc. Once a task is finished or aborted, it can be activated again. new activated finished suspended aborted Figure 3.2: State transition diagram for tasks Within a task, each team member has its own session (named username@taskname). A session is the working environment of a user with respect to a task. A team member has to "open" his session in a task in order to work on this task. This brings up a number of windows at the user interface1. These windows contain "username@taskname" in their title. A session can only be opened by its user, and only if he is still a team member of the task and the task is in state "activated". Each command issued by one of these windows is executed within an execution context (see page 54) consisting of the id of the user and the id of the task. This id is used for the author (of the last modification) of a version, for triggers (who caused an event, who has cre- ated a trigger, see 3.1.4), for implicit or explicit locking, and for access control (see below). Figure 3.3 illustrates the various relationships between the terms introduced so far. Below we give a short definition for each term. The terms `version' and `configuration' are explained in section "3.1.2 Configuration Management". Task a development activity, like fixing a bug or testing a release. A task can be struc- tured into subtasks. The task hierarchy forms a tree. A task may have several inputs and produces a number of results. input relates a version with a task. A input relationship states that the version should be used by the task. The version can not be modified as long this relationship exists. result relates a version with a task. A result relationship states that the version is a result of the task. The version can not be modified as long this relationship exists. 1. After "closing" a session, these windows vanish from the screen. When opening the session they appear again. 3.1 Basic Concepts and Terminology 57 producerConsumer producer consumer result Version Task teamMember User User Role input hierarchy Session Configuration Checklist Policy Window Workspace Figure 3.3: Terms for Task Management producerConsumer relates two tasks, one with the role1 "producer", one with the role "con- sumer". A producerConsumer relationship indicates that the "consumer" task should use (some) results produced by the "producer" task. Project a task which has no parent task. User has a name and a user id as defined by the system administrator of the operating system. A user can be associated with many tasks either as a developer or a manager. Before performing an action he has to determine on behalf of which task he wants to do this. This determines the session to be used. teamMember relates a task to a user who should work on this task (i.e., the task should appear on his agenda). This relationship has an attribute "role" which defines the user role the user should perform within the task. A user can be a team member in various tasks performing different user roles. User role describes the responsibilities of a person within a task, e.g., manager. This term should be distinguished from "role" as used in relationships2. Session the working environment of a user with respect to a task. It consists of a set of windows and a private workspace. Each action performed in such a window is done on behalf of the denoted task. The private workspace is a part of the file system and used for all checkout/checkin operations performed during this session (3.1.3). 1. Here we use the term "role" as in entity-relationship models [Chen76] or object models. Such a role "describes one end of an association" [Rumb91] typically by a name. 2. see footnote in the definition of producerConsumer before. 58 3 A PSEE supporting Process Implementation and Change Policy a collection of parameters, triggers and procedures which influence the develop- ment process within the associated tasks and their subtasks (3.2.3). Checklist list of sentences to be fulfilled/answered by the users working on the associated tasks (see below). Access Control A task has two kinds of team members: managers and developers. Such a user role is defined by a teamMember relationship. Managers have certain privileges as described below. * A manager of a task can create subtasks of this task and all its subtasks. * He can associate team members with this tasks and with all its subtasks. * He can remove team members from this task and all its subtasks. He can even remove himself, but only if he is not the only manager of this task. * He can assign any version (e.g., configuration, change request) as an input to this task or to one of its subtasks. He can also remove such an assignment. * He can declare any version to be a result of this task and he can undo such an operation again. Note, that he can not perform this for subtasks. For the results of a task only its man- agers are responsible. * He can put this task or one of its subtasks into state "activated", "suspended", "finished", or "aborted" (according to figure 3.2). * He can delete this task or one of its subtasks. This is only possible, if there do not exist any version created or modified by the task to be deleted. This way, traceability can be guaranteed as long concerned artifacts exist, for instance, in order to comply with ISO 9001 rules [Inte87]. Locking A lock represents the fact that a session is using a particular configuration, so this configu- ration and all its members should be read-only for others. Configurations1 can be locked explicitly during checkout2 or implicitly when a new con- figuration is created during checkin3. The versions contained in a locked configuration are locked implicitly, too. Configurations contained in locked configurations are locked recur- sively. 1. Also plain versions can be locked explicitly and implicitly. We discuss configuration locking, because configurations are the units of work developers should use. 2. addd_conf --extract, see 3.1.3 3. addd_conf --update or addd_conf --create 3.1 Basic Concepts and Terminology 59 A lock can be removed by the session which owns it. When the session is deleted (e.g., because its task has been finished or aborted) its locks are removed, too. Recursively locked configurations are freed if the lock on the containing configuration is removed. Checklists In order to ensure that some tasks are performed properly, a finer granularity of actions beyond the task level should be monitored. Again, the focus should not be on tool executions, because a tool may be invoked several times to achieve a goal, and it is the user who has to assess the results of tools. So, we take a result oriented approach: a checklist can be associ- ated with a task. A checklist is a list of sentences to be fulfilled/answered by the user, for instance, "Is the reason of the bug found?" or "Has the change an impact beyond the mod- ule". The developer working on the task can answer these questions, or leave them open if they are not applicable to the problem. A manager or other developers can look at these checklists in order to see, how far an ongoing task is completed, or how a finished task has been performed. Changes to the checklist can (and should) be recorded, at least in the log file of the task (see 3.2.3 b)). Section 3.2.4 describes how checklists are specified. 3.1.2 Configuration Management The previous section illustrates that versions and configurations are used as task inputs and results during the process. But process support needs more configuration management infor- mation about historical interrelationships and current dependencies: * In case a version should be analyzed or changed, it is important to know in which config- urations it is contained. * Version histories (i.e., which change has been performed by whom) are of general inter- est, especially in combination with * traceability issues: for example, a result of a task may be assigned as input to another task which changes it again (i.e., creates new versions of it) and publishes the final version as a result. In order to retrieve1 all tasks concerned with this document, relationships and his- tory information have to be traversed together. * In case generated objects (e.g., a time table generated from a project schedule) are used, the versions they stem from have to be retrieved easily. We meet these requirements by the configuration management model illustrated below (see figure 3.4). 1. and collect other associated information, for instance, the persons involved, other results produced, inputs used, etc. 60 3 A PSEE supporting Process Implementation and Change derivedFrom successor predecessor source generatedFrom Version Document Directory target hierarchy Configuration Figure 3.4: Terms for Configuration Management Document conceptual object (like a module implementation or a test plan) under develop- ment. Documents are organized in a directory hierarchy. Directory a container for named objects. A directory can contain documents and other directories, thus building a tree-like hierarchy. Documents and directories can be retrieved in the directory hierarchy by pathnames as known from file systems. Version state of a document. It contains a result produced by a tool (usually a file). Configuration a set of interrelated versions, e.g., all sources used to build a particular pro- gram, or a number of test cases used for integration test. A configuration is a version, too; i.e., it can be saved (historical dimension) and devel- oped in parallel, as variants. derivedFrom relates two versions. A derivedFrom relationship states that the version which holds role "successor" in this relationship has been created by editing1 the version having role "predecessor". The two versions need not belong to the same document. In case a version is copied, a derivedFrom relationship is created between the original and the copy. generatedFrom relates versions used or created during the execution of a tool. The used versions participate with the role "source", the created versions with the role "target" in a generatedFrom relationship. A generatedFrom relationship has the attributes "options" (containing the options with which the tool has been executed, e.g., the command line) and "messages" (the errors, warnings, or status messages produced by a tool run). The versions of a document are organized as a tree: the root version is the oldest one which was stored when the document was created. The leafs are the most recent changes. A new branch is created in case another successor of a non-leaf version is created. 1. i.e., incremental update performed by humans 3.1 Basic Concepts and Terminology 61 Leaf versions can be changed in order to avoid cluttering the version history with too many irrelevant states. The exclusive right to change a version can be obtained by locking (see 3.1.1). Non-leaf versions are read-only (state "save"). Leaf versions can be put into state "save" explicitly. For garbage collection reasons, versions can be deleted (see box below). There are a num- ber of restrictions which prevent deletion, but if none of them holds, a version can be deleted. Modification/deletion of versions are restricted by input and result relationships, and by locks as explained in 3.1.1. Another main restriction is that versions, which are contained in a read-only configuration1, can not be deleted or modified as long this configuration exists. If a version or any other object is deleted, referential integrity is preserved by deleting all concerned relationships, too. If a version is deleted which participates in different derived- From relationships in role "source" as well as in role "target" (i.e., it is an inner node in the graph constructed by relationships of this type) new derivedFrom relationships are created in order to preserve the same transitive relationships in the graph. The same holds for the generatedFrom relationship. Excursus: About deleting and changing versions The main task of a configuration management system is to provide complete traceability for all historical information stored in it. Every state which was once stored should be restorable exactly as it was before. So, it could be argued that versions should never be deleted at all. Today, all characters typed by a human being during his/her lifetime can be stored on a disk worth less thousand dollars. Using delta techniques [Reic91, Hunt96], storage of source code files do not raise any problems in disk space. On the other hand, generated files are stored in CM systems too. Their amount increases as CM systems move away from being only source code management systems (like SCCS [Roch75] or RCS [Tich85]) in order to capture the complete state, for instance, of a release or a situation shared by a development team. Especially libraries are taken under configuration control as they are changed incrementally by adding or replacing object code files during development. Also, single object files, executables, and other derived files must be stored in the CM system if multiple developers require a reliable access to them. Modern CM systems store binary data by simply compressing them. In addition to source code, documentation is also taken under configuration control. Modern text pro- cessors produce binary files on which delta techniques can be applied to a certain extent, but here the amount of data produced by an individual increases, especially when using images. Besides disk costs, users do not like to see too much historical information. For instance, when looking at the history of a document, the screen should not be cluttered with information about temporary versions stored years ago. The ability to change a leaf version stored in a CM system avoids the cluttering of the version history with intermediate states and reduces the frequency of garbage collection needed. NOTE: The ability of deleting and changing versions increases the possible negative impact of user errors as discussed in section 3.5. 1. As for versions, a configurations is read-only if it is not a leafs in its version graph, it is locked, or it participates in an input or result relationship. 62 3 A PSEE supporting Process Implementation and Change 3.1.3 Tool Integration ADDD does not consider tool invocations to be part of process descriptions. We argue that the characteristics of tool usage, especially of interactive tools, are hard to describe in a gen- eral language (see page 33 and the box below). Therefore, we support checkin/checkout of configurations from/to workspaces in the file system where the developer can invoke and use their tools suites as usual. We describe how batch tools are integrated by wrappers and how heuristics can be used for integration of interactive tools. In ADDD, each session has its own workspace where tools can be executed. Therefore, work on different tasks is separated even for the same user. The workspace is created on demand in the file system. It has a home1 directory below which all checked out files are stored. Session shell The agenda (i.e., the window displaying all associated tasks of the current user) offers to start a special Unix shell for a particular active task. Only within this shell the user can issue com- mands to the ADDD server (e.g., perform checkin/checkout operations). The shell identifies all commands to be performed on behalf of this session (i.e., username@taskname). How files are transferred between the server and the workspaces is described in "Appendix D: Checkin/Checkout in File Workspaces" on page 187. Integration of CSCW tools and interactive development tools Many people aim the integration of CSCW tools into PSEEs. This would enable to model cooperation (for instance, an online review) within a process step, and to perform this cooperation in a process-specific way. Integration of CSCW tools has been investigated in Oz [BS95, Vale96] and SPADE-1. [Band96] dis- cusses several strategies for integrating CSCW tools into the SPADE-1 PSEE. There is a trade-off between flexibility (in case either the CSCW tool or the process changes) and tight integration (needed, e.g., to ini- tiate synchronous communication between users). CM systems [Lebl94, Caga95] do not invoke tools. From the tool's point of view, a CM system can be used to store a set of files. The CM system guarantees to restore this set in exactly the same state any time later. Some CM systems provide own variants of the make tool [Feld79] in order to record data which is used to guarantee rebuilding a particular software system. So, usually the invocation of batch tools is man- aged by makefiles while the use of interactive tools is not restricted at all. To our notions, there has not been much complains about this situation. 1. It is called home directory, because in the session shell (see below) the $HOME shell variable is set to this directory. Therefore, all invoked tools look for their setup files in the workspace. 3.1 Basic Concepts and Terminology 63 Tool encapsulation of batch tools The dependencies of simple batch tools, like compiler or linker, are recorded in ADDD by creating generatedFrom relationships. This is achieved by conventional wrapper scripts which are used instead of invoking the tool directly. These wrappers can store the depen- dency and all files concerned in ADDD right after tool execution ends. But in case of multi- ple compile-test cycles, this would clutter the database with useless data. So a wrapper can append its information (concerned files, command line, results etc.) to a cache file. During checkin, this file is parsed in reverse order, and only the most recent dependency is consid- ered for each result. Encapsulation of interactive tool sets The black-box encapsulation of long-running interactive tool sets is still a problem in ADDD. There are two mechanisms which facilitate the treatment of those tools: 1. Black-box encapsulation offers few information about what the tool has done. In some cases there may be traces or heuristics to be used. ADDD offers a policy procedure (3.2.3 a)) which is invoked for each new or modified file and checks whether it is a result, or not. If yes, another procedure tries to gather information about attributes and dependencies of this result. 2. Even in cases where no information can be used automatically, information about tool results are available. This is because the user can determine which files should be grouped into which configuration. The grouping files captures valuable information, for instance, it can be assumed that all Framemaker files contained in a configuration are a consistent set of documents. 3.1.4 Events and Triggers So far, we have described ADDD as a passive system, i.e., the system receives commands and simply executes them. In order to make the system reactive, we introduce triggers. Trig- gers react on events and can be used for implementing automation rules, process constraints, notification, and monitoring. Triggers are event-condition-action (ECA) rules which have been investigated in the area of, so called, active database systems since several years [Daya90, Daya91, Geha91]. We will first describe our notion of events and triggers, and then discuss the semantics of trigger execution. 64 3 A PSEE supporting Process Implementation and Change Events Each action within the system is carried out on behalf of a task or a session. An action can cause events. Events can be caused as a side effect of executing a method on an object. This is determined by its class implementation. These events are called "class events". In addition to class events, events can be signalled explicitly by using a special command (raise_user_event {event_number object_id parameters}). We call these events "user-defined events". The event numbers of user-defined events are distinct from those of class events. This prevents class events to be faked by the user. So, while class events can be trusted, actions triggered by user-defined events have to consider that the event could be faked. At least, the action can trust in the subject_id generated by the system (see below). Each occurrence of an event carries the following informations: event_number the number which identifies the event. subject_id the id of the task or session which caused the event (provided by the system). object_id the id of the object on which the event was raised. parameters a set of parameters (name-value pairs) provided by the method which raised the event. For instance the event SO_EV_NEW_COMPONENT has the parameter "compo- nent" whose value is the id of the new component. Event types are organized in a generalization hierarchy. For instance, the event TASK_EV_ NEW_RESULT is a special SO_EV_RELATED_TO event1. This means * each time the event TASK_EV_NEW_RESULT is raised on an object, all triggers wait- ing for SO_EV_RELATED_TO are fired, too. * event TASK_EV_NEW_RESULT has at least the same parameters as event SO_EV_ RELATED_TO. This generalization hierarchy reduces the number of events raised by methods. A trigger waiting for a very special event has to check less conditions, compared to a trigger waiting to a very general event (e.g., "something has happened"). This reduces the system overhead for firing triggers in vain. On the other hand, it is possible to reduce the number of triggers, too. For instance, one can define a trigger which reacts on all events (SO_EV_ALL) raised on a particular object. 1. Event SO_EV_RELATED_TO signals that a new relationship has been created for an objects. This event is raised on each object which participates in the new relationship. The issue of a result of a task is realized by creating a result rela- tionship between the task and the object which so becomes a result. In this case, the event TASK_EV_NEW_RESULT should be raised, too. Because TASK_EV_NEW_RESULT is a special SO_EV_RELATED_TO event, only TASK_EV_ NEW_RESULT needs to be raised, not both. This fires triggers waiting for SO_EV_RELATED_TO, too. 3.1 Basic Concepts and Terminology 65 Triggers Trigger is an event-condition-action rule. A trigger declares that each time the event is raised and the condition is true, the action is performed. Triggers can be defined by a session or by associating a policy to a task (see 3.2.3 b)). A com- mand can raise several events which may cause triggers to be fired, i.e., actions are executed. For each triggered execution the context is switched. So, the execution context which has actually raised the event is not responsible for the triggers it fires implicitly. If a trigger is created by a session, the condition and the action is executed on behalf of this session. If the trigger has been created by associating a policy with a task, the action is executed in the context of this task1 with the privileges of a manager. This is because only a manager has the right to associate a policy with a task. ADDD provides three kinds of triggers: triggers on objects, triggers on lock sets, and trig- gers observing tasks. These are special kinds of ECA rules designed for different purposes. Due to their characteristics they can be supported by the system efficiently. A trigger on an object waits for one or more events to be raised on a particular object. Trig- gers on objects are used very frequently to update a screen representation in case displayed objects are changed. A trigger on the lock set of the actual session waits for events on objects locked by the actual session. This set varies over time. Furthermore, the members of locked configurations are locked implicitly, so inserting/removing members changes the lock set too. Such triggers are useful for defining cooperation policies for developers working on shared objects. A trigger observing tasks waits for events which were caused by a task matching a partic- ular pattern. This kind of triggers is very helpful to record the activities carried out to fulfill a task, to automate development work, and to constrain process execution in order to pre- serve certain consistency rules. Note, that each these three triggers incorporates a condition which in the last two cases are quite complex. The user is freed from writing these conditions, but he may define further conditions in order restrict trigger execution. Triggers are defined and changed throughout the process as new user interfaces are added to the system, people cooperate, and process support is improved. The triggered conditions and actions are subject of change, too (3.5.2). We will not introduce the C++ programming interface of triggers (e.g., used for program- ming user interfaces), but section 3.2.3 d) describes in detail how triggers are defined within policies. 1. A command executed in the context of a session know the actual user, his workspace in the file system, and the windows belonging to the session. In contrast to this, the execution context of a task (used during trigger execution) has none of these notions, but still can be used for the purposes described on page 54. 66 3 A PSEE supporting Process Implementation and Change Trigger Execution We call the action which has triggered the event the triggering action, and an action which is performed by a trigger a triggered action. The relation between the triggering action and its triggered actions can be defined in terms of the execution scope and the commit depen- dency of a triggered action [Daya91]. Execution Scope The triggered action can be performed immediately when the event occurs or deferred. Immediate execution: The triggered action has access to the modifications performed by the triggering action until the event occurred. In case of several immediate actions, they are performed in an arbitrary serial order. Deferred execution: The triggered action is started after the triggering action has commit- ted. The triggered action is performed on a committed state. Again, if several deferred actions have been triggered by the same event, they are performed in an arbitrary serial order. Commit dependency The triggering transaction may depend on the commit of a triggered transaction, or not. If it does and the triggered action aborts, the triggering action is also aborted. The triggered actions always depend on the commit of the triggering action. For each trigger, any combination of execution scope and commit dependency is possible. triggering action is triggering action is commit dependent NOT commit dependent on the triggered action on the triggered action immediate execution + + deferred execution + + Table 3.1: Possible combinations of execution scope and commit dependency. From a theoretical point of view, execution scope and commit dependency could be defined for conditions, too. In our model, conditions are commit dependent (they should not perform any modifications anyway1), and are executed immediately. In case of an event, all condi- tions are checked before the first immediate action is executed. 1. Although this is not checked by the system. 3.2 Describing Process Support in ADDD 67 Trigger programming In general, ECA rules have to be written carefully [Simo95]. In case of immediate execution, conditions or triggered actions are performed on an intermediate (i.e., uncommitted) state. Furthermore, in case of several immediate actions, the last action is performed on the state left by its predecessors. In case of deferred execution, the information of the event (about objects involved) and the condition may both be invalidated at the time when the triggered action is started. The triggering action or other triggered actions could have deleted or modified everything in the meantime. Therefore, when an action starts execution all assumptions, especially the existence of objects, have to be checked first. 3.2 Describing Process Support in ADDD A process to be supported by ADDD has to be described in a number of policy and checklist files. Furthermore, appropriate user interfaces have to be provided and, if needed, some pro- cess-specific artifact classes can be defined. Policy (client part) Customization of client loaded by Graphical User Interface (GUI), Session Shell functionality (Parameters and procedures) Client Server Policy (server part) Triggers Customization of kernel Process GUI-specific incl. procedures used as functionality (Parameters Procedures Procedures conditions and actions and procedures) Process-specific classes Tcl Interface ADDD kernel Figure 3.5: The interplay between the various process descriptions. Arrows express call relationships, i.e., A § B means A calls B. 68 3 A PSEE supporting Process Implementation and Change Figure 3.5 shows the architecture of the ADDD PSEE illustrating the interplay between the various descriptions which drive or influence the process. The bottom line is the object- oriented ADDD kernel on which everything is based (3.2.1). It can be extended by process- specific classes as described in 3.2.2. All public methods can be accessed via a Tcl [Oust94] command interface. The user interacts with the environment using the session shell (3.1.3) and some graphical user interfaces (GUIs, 3.2.5). He invokes process procedures (3.2.3 c)) and GUI-specific procedures in order to retrieve information or to perform a process step. Any modification in the database may causes one or more events. Triggers waiting for events are executed according their execution scopes (3.2.3 b)). The conditions and actions invoked during trigger execution access the database again and may cause further events to happen. At specific points, methods consult certain parameters or procedures in order to behave according to process-specific preferences (3.2.3 a) customization). Those procedures typically compute their results only from their input parameters and do not access the data- base. Triggers, procedures and parameters used for kernel customization, and process proce- dures are contained in policy files (3.2.3). The same policy files which influence command execution at the server side are also loaded by the clients1. These are used to set user preferences, to select the checklist for a spe- cific task (3.1.1, 3.2.4), or to determine which user interface should be used to display a par- ticular object (3.2.5). 3.2.1 The ADDD Kernel The ADDD kernel is an object-oriented framework, i.e., the terms and semantics introduced so far are implemented by a set of classes of a C++ database system, called OBST [Uhl93]. With respect to the previous sections, object-orientation is just an implementation hidden from the user. The process designer comes in contact with object-orientation * as he writes new artifact classes as extensions of the predefined ADDD framework using the data definition language of the underlying database system [Uhl93]. * as he writes procedures which directly invoke public methods on objects through the Tcl interface provided by the database system [Theo93]. Procedures are used for various pur- poses, see "3.2.3 a) Customization of System Functionality", "3.2.3 b) Triggers defined in Policies", "3.2.3 c) Process Procedures", and "3.2.5 User Interfaces". Benefits of Object-Orientation The use of object-oriented technology has two important benefits for the ADDD PSEE: * Storing artifacts and process descriptions in an object-oriented database system supports direct manipulation of the enactment state during process enactment. As basic notions of 1. The client ignores server-specific commands, and vice versa. 3.2 Describing Process Support in ADDD 69 consistency are implemented by the classes, the user can directly invoke methods without any fear of jeopardizing the system (see 3.5 for further discussion). * Extensions to the core terminology are added by defining subclasses of ADDD classes, thus reusing existing functionality and consistency checking. The instances of new classes are integrated (e.g., visible) in the ADDD environment by definition. Predefined Classes In section 3.1, we explain the terms from the user's point of view, for instance, in the OMT diagrams we mention only one case of inheritance (configuration), and leave out unnecessary details. Of course, the implementation offers an elaborated set of classes which make strongly use of inheritance. Let us demonstrate this by a small example: the class add_Rela- tionship models our general notion of relationships in the framework: add_Relationship relates objects; the semantics are similar to those of the Entity-Relation- ship model [Chen76]. It has the attributes "date" (the date when the relationship has been created) and "author" (the pathname of the session which created the relationship). All relationship classes are subclasses of add_Relationship. For instance, the teamMember relationship relates a user with a task. Another subclass of add_Relationship is add_use_Relship which expresses that a version (role "used") is needed by another object (role "user"), e.g., a task. Used versions can not be deleted or modified until this rela- tionship is removed. The classes add_input_Relship and add_result_Relship are subclasses of class add_ use_Relship. That is why these relationships have the same role names ("used", "user") and the "used" version can not be deleted/modified as long such a relationship exists. Properties of other classes are modeled by parent classes in a similar way. ADDD provides a rich set of artifact classes (e.g., task, version, various relationships) which can be reused during the definition of process descriptions. We assume that the exist- ing class library will be sufficient for a great deal of processes. If this is not the case, the pro- cess designer has to define new artifact classes in the ADDD framework. 3.2.2 Definition of Process-specific Artifact Classes New artifact classes are defined in the data definition language (DDL) of the OBST database system [Uhl93]. A schema written in the DDL is translated into C++ headers and schema- specific code and meta data. The user implements the class methods directly in C++ accord- ing to the generated headers. The DDL syntax is similar to class definitions in C++ [Stro93], but there are some differ- ences. For instance, definitions are grouped into schemas. Instead of C++ constructors and destructors the user has to provide local_initialize() and local_finalize() methods 70 3 A PSEE supporting Process Implementation and Change which are called implicitly during creation and destruction, respectively. For each attribute, C++ methods are generated in order to retrieve and set its value [get_(), set_()]. The access specifier public, private set: expresses that the get method will be public and the set method will be private. In the example below, a new priority can only be assigned to an existing change request object by using the method new_priority(sos_Int). This methods checks permissions and then calls the private set_priority(sos_Int) method. A process designer can define new version classes (sub classes of add_Document_Ver- sion) or new relationship classes (sub classes of add_Relationship). Below there are two examples taken from chapter 4. Redefined methods are marked with the name of the super class where the method was defined first. During enactment, these methods are called from methods of other classes in the ADDD framework. For instance, the method icon() below was first defined in super class add_Interactive_Object. This method is called each time an object should be displayed as an icon at the user interface. schema Change_Request { class add_Change_Request(sos_Cstring version_id, add_Document nsp, sos_Cstring c = EMPTY_CSTRING, sos_Int priority = -1, /*...*/ ) : add_Document_Version (version_id, nsp, c, /*...*/ ) { public: void new_priority(sos_Int); // sets the priority, ONLY if the actual user has manager privileges // for ALL tasks related to this Change_Request. // ------- add_Interactive_Object sos_Cstring icon(); public, private set: sos_Int priority = priority; protected: static void local_initialize(add_Change_Request this_one); // raises CR_EV_NEW } class add_observed_Relship(add_Document_Version change_request, add_Document_Version configuration) : add_use_Relship(change_request, configuration) { // relates a change_request to the configuration which has motivated // the request. 3.2 Describing Process Support in ADDD 71 public: add_Document_Version configuration(); //access to role configuration add_Document_Version change_request(); //access to role change_request } } // end schema Minimizing Class Definition and Modification The current implementation of ADDD makes intensive use of object-oriented technology, but we minimize the need for new classes to be defined by a process designer. This is because: * The process designer should not be forced to know all the ADDD classes (>50), methods, their semantics and their interrelationships. * Adding a new class requires recompilation and restart of the server. This is not an elegant operation. * Schema modification must be performed carefully, especially when adding or removing attributes to/from classes from which multiple instances are currently existing [Schi93]. We found out that in most cases the definition of a new class was motivated by a slight vari- ation: for example, only the icon() method was redefined in order to get a different repre- sentation on the screen. Or a single attribute was added. Some methods are redefined in order to raise events in certain situations. For instance in the example above, the method add_ Change_Request::local_initialize() was defined in order to raise the event CR_EV_ NEW ("creation of a new change request"). So, we took the following measures in order to minimize class definition: 1. Only subclasses of add_Document_Version and add_Relationship should be defined. 2. Attributes (i.e., name-value pairs) can be dynamically added to each object1. Values are strings, but integers and object references can be stored as strings, too. The update of an attribute (event SO_EV_ATTR_UPDATE) can be controlled by constraints or recorded in log files (see 3.2.3 b)). 3. Properties which are likely to be adapted during runtime can be customized by policy parameters and procedures (see 3.2.3 a)). For instance, the icon of an object is computed from its name by default (thus making use of naming conventions in the file system). Only for classes to which no naming convention can be applied, the icon() method has to be redefined. 4. User-defined events can be raised outside the implementation of methods (Tcl command 1. get_attribute (sos_Cstring attribute_name), update_attribute (sos_Cstring attribute_name, sos_Cstring value) 72 3 A PSEE supporting Process Implementation and Change raise_user_event {event_number object_id parameters}, see "3.1.4 Events and Triggers"). Again, the correct occurrence of such an event can be controlled by con- straints. We could avoid the definition of class add_Change_Request above, if we introduce some naming convention for change requests (which we actually do in chapter 4), if the priority is assigned by update_attribute() and controlled by a constraint, and if the event CR_EV_ NEW is raised as a user-defined event by the command which is used to create a change request 1. 3.2.3 Policies Parameters, triggers, and procedures controlling the development process are grouped into policy files [Kobi95]. The project manager can select a policy file to constrain the work of the whole project. Furthermore, he can associate specific policy files with each subtask depending on the tools to be used, the goals to be met, and the skills of the developers. project XY project policy team policy B development of component A development of component B coding policy A test policy B coding system test coding system test Figure 3.6: A task hierarchy with policies assigned to tasks at different levels. Figure 3.6 shows an example. Project XY develops a product by (first) creating the compo- nents A and B. Each component is developed independently as subtasks of project XY by separate teams (not shown). Each development team performs coding and system test as two cooperating subtasks. Some team members are assigned to the coding task, some to the sys- tem test task, some to both. There is a project policy which determines the tools to be used during coding and testing, and the way how work is coordinated between coding and system test (e.g., in terms of requests for change/test). The project policy influences all its subtasks unless things are rede- fined in policies assigned to them. For example, task "development of component B" may find it useful to adapt the coordination between the coding and system test tasks to their 1. In this case a change request is created as an instance of class add_Document_Version. 3.2 Describing Process Support in ADDD 73 needs. The changes are defined in team policy B associated with this task. Furthermore, dur- ing the system test of component B, the text editor of the test tool should be used instead of the editor defined in the project policy. This change can be specified in test policy B and asso- ciated with the system test task as shown. Similar, different tools are selected for coding of component A. Besides redefining parts of a policy, policies assigned to subtasks can specify aspects which were left open at the project level [see 3.2.3 d) for further discussion]. A policy file contains 3 kinds of elements: Triggers event-condition-action rules. Cooperation and process enforcement are both sup- ported by some special rule syntax. The aim is to simplify writing, understanding, and modification of rules. Procedures written in Tcl [Oust94]. Procedures can be called as conditions or actions of trig- gers (3.2.3 b)), and by class methods of the ADDD kernel (3.2.3 a)), or directly by the user (3.2.3 c)). Parameters name-value pairs (i.e., Tcl variables) which are accessible in the sessions of the task and all its subtasks. Parameters are used for customization of system func- tionality (3.2.3 a)). In the following, we first describe how these elements are used to customize system func- tionality (3.2.3 a)), to automate and constrain work (3.2.3 b)), and to drive the process man- ually (3.2.3 c)). Then we discuss the interrelationships between policies assigned to different levels in the task hierarchy (3.2.3 d)). 3.2.3 a) Customization of System Functionality Parameters and procedures can be used for planned, anticipated changes of the system behavior or the process, respectively. The ADDD core functionality is written in C++, so the system has to be stopped in case code change and recompilation becomes necessary. It has been a design goal of ADDD to identify functionality which is likely to be changed due to the preferences of the users. In order to perform this functionality, the code retrieves pre- defined parameters or procedures from the policy of the actual session. Thus, the functional- ity is performed in a task-specific way. For example, the following functionality can be cus- tomized in a policy: * the tools (text editor, viewer, diff between files, file merger, shell) to be used * the icons of versions depending on their name. * the user interface script used to display the properties of an object (e.g., a task) can be selected based on its class and its name (3.2.5). * the checklist (if any) which should be associated with a task (see 3.1.1, 3.2.4). 74 3 A PSEE supporting Process Implementation and Change * during checkin (addd_conf --create or addd_conf --update see "Appendix D: Checkin/Checkout in File Workspaces" on page 187) files have to be filtered, typed (both based on their pathname), and some type-specific defaults have to be retrieved. New files (which did not exist before and therefore are not part of any configuration) have to be inserted into some configuration for better handling and retrieval. Furthermore, the appropriate storage mode and location have to be determined1. Heuristics for encapsulation of complex tools can be implemented by procedures, too. * The appearance and functionality of some user interfaces can be customized in a task-spe- cific way (e.g., whether a particular button should appear or not). 3.2.3 b) Triggers defined in Policies Active process support can be defined by triggers (see 3.1.4). The process designer can define (1) cooperation support, (2) constraints and automation rules which enforce process properties, and (3) process monitoring and notification. In this section, we describe the con- cepts by some examples. The syntax is specified in "Appendix C: Syntax of Policy Triggers" on page 183. In general, conditions and actions of policy triggers are defined by procedures. When a trigger is defined in a policy file, its condition and action procedures (if any) should be writ- ten in the same file. The Scope of a Policy Trigger A policy trigger looks for events occurred on or caused by tasks matching its scope. The scope of a trigger is defined by a pattern which can contain one of the keywords SELF, PAR- ENT, or PROJECT at the beginning. These keywords refer to the task to which the policy is assigned, its parent task, or the top-level task containing it. Each time an event is matched against the trigger, the keyword is replaced by the pathname of the denoted task. So when using the pattern SELF*, the trigger is applied to the policy task and all its subtasks2. Simi- larly, a trigger containing PARENT* (or PROJECT*) looks at the parent (or top-level) task and all its subtasks (figure 3.7). For instance, the rule notify $TASK_EV_NEW_RESULT SELF/* - MANAGER 1. It has to be determined whether the file should be stored in an RCS archive using delta techniques, or should it just be compressed in a simple file store. In order to accelerate group checkin and checkout by parallel access of multiple discs, ADDD allows the use of multiple stores distributed in the local area network. So, for each new file its store has to be determined. 2. We use wildcards as known, for example, from the Unix shell. The scope of SELF is defined by the pattern SELF* because no other pattern containing SELF can match more tasks. 3.2 Describing Process Support in ADDD 75 Task associated with the policy containing the trigger SELF* PARENT* PROJECT* Figure 3.7: The principle scope defined by the keywords SELF, PARENT, and PROJECT. notifies the managers of the task to which this policy is assigned in case one of its subtasks produces a result. If the `/' in the pattern is omitted, the managers are also notified when a result is produced for the task itself1. Without the use of any of the keywords above, the pattern of a trigger is applied to the tasks of all events occurring in the system. "Caused by" vs. "Happened on" In 3.1.4 we distinguished between triggers on an object (i.e., events happening on a particular object) and triggers observing a task (i.e., caused by this task). In the example above, the event happens on a subtask and, according to 3.1.1, has to be caused by itself (one of its man- agers). Thus, for this particular event the causing task is identical with the object of event. This is not the case in the next example: the manager(s) should be notified if any input is assigned to a task. notify_on_task $TASK_EV_NEW_INPUT SELF - MANAGER Inputs are usually (but not always) assigned by a manager of a parent task, so here it is easier to listen for the event happening on the specified task. The next trigger says that each time a change request has been created (i.e., caused) by the parent task or one of its subtasks, a procedure (handle_change_request) should be exe- cuted automatically. 1. In case of a single manager, this is superfluous because only he can declare an item to be a result (see 3.1.1). So he need not to be notified. 76 3 A PSEE supporting Process Implementation and Change trigger $CR_EV_NEW PARENT* - handle_change_request Triggers for special purposes The commands trigger and trigger_on_task can be used to create general event-condi- tion-action rules. These rules are very powerful, but require programming of some actions and conditions (optional). In order to express simple things in a simple way, ADDD provides some special-purpose abstractions: a) Process Monitoring and Notification Monitoring of events and automatic notification of people are very simple but effective mea- sures for providing process support. In the current ADDD PSEE, there are about 50 events defined, so message texts can be provided for all. These texts are defined by parameters which can be customized for each task as described in 3.2.3 a). Event occurrences are recorded in files and signalled to the team members of the task associated with the policy. If the role MANAGER is used (as in the examples above), the rule only notifies the team members playing this role. log_on_task $TASK_EV_NEW_RESULT SELF/* - /usr/tmp/subtask_IO.log log_on_task $TASK_EV_LOST_RESULT SELF/* - /usr/tmp/subtask_IO.log log_on_task $TASK_EV_NEW_INPUT SELF/* - /usr/tmp/subtask_IO.log log_on_task $TASK_EV_LOST_INPUT SELF/* - /usr/tmp/subtask_IO.log The above triggers record all inputs and outputs of subtasks in a particular file. As inputs/ results are declared by creating special relationships, a more general formulation would be to look for creation/destruction events for all kinds of relationships (see 3.1.4): log_on_task $SO_EV_RELATED_TO SELF/* - /usr/tmp/subtask_IO.log log_on_task $SO_EV_DISCONNECT SELF/* - /usr/tmp/subtask_IO.log Each task and each document has an own log file in which some event history can be recorded. The next command creates a trigger which records all events raised on a task in its log file. *tasklog* means "record in the logfile of the task"1. ALL stands for the pattern *, i.e., this trigger should be applied to all tasks in the system. log_on_task $SO_EV_ALL ALL - *tasklog* b) Process Constraints In some cases, process support has to restrict certain actions in order to preserve some con- sistency constraints. Usually it is very difficult to undo violations after they have occurred and other users have seen them or triggers have reacted on them. In ADDD, constraint trig- 1. The log files of tasks and documents can be found in dedicated system directories. 3.2 Describing Process Support in ADDD 77 gers can be used to abort modifications on the database level (i.e., aborting all triggered actions too). This resets the system to the state before the offending command was issued (i.e., as if it was never executed). The syntax of the constraint and constraint_on_task commands is similar to trig- ger and trigger_on_task, except the triggered action is implicitly "abort". For instance, the following trigger prevents the managers of a task to assign a new policy file to it: constraint $TASK_EV_NEW_POLICY_FILE SELF* - If we would have chosen constraint_on_task, even policy assignments to this task per- formed by managers of parent tasks should be aborted. This is not quite correct, because the triggered action ("abort") is performed with management permissions of the task to which the policy is assigned (see page 65). With these permissions a command issued by a manager of a higher task can not be aborted. "Abort" is simply ignored in this case. In order to prevent policy assignments, a constraint with an appropriate task pattern has to be installed at a higher level of the task hierarchy. Cooperation support In 3.1.4 on page 65, we have distinguished a third category: triggers on the lock set of the actual session. Currently ADDD focus on locking of configurations thus locking all con- tained elements implicitly. Events on individually locked versions are matched by the fol- lowing triggers, too. set EV_CHANGE_plus_NEW_VERSION \ [expr $DVERS_EV_CHANGE_INTENSION * $SO_EV_NEW_COMPONENT] notify_on_elements_of_locked_confs $EV_CHANGE_plus_NEW_VERSION \ *.\[Chc\]#* CAUSED_BY_OTHERS notify_on_elements_of_locked_confs $EV_CHANGE_plus_NEW_VERSION \ *.tcl#* CAUSED_BY_OTHERS The first statement above combines two basic events and creates a general event which matches both. This reduces the number of triggers to be defined in the following. The two notify triggers ensure that each time a locked version is intended to be changed by another person (i.e., it is checked out for writing) and each time a new version is created, the owner of the session which holds the lock is notified. The pattern (e.g., *.\[Chc\]#*) is applied on the pathname of the locked object, where # is the separator before the version id. Some PSEEs (e.g., ClearCase, Adele, EPOS) offer automatic propagation of file updates between workspaces of different users. If ADDD would catch file system events1, file updates could be triggered by rules like the above. 1. Currently it doesn't. 78 3 A PSEE supporting Process Implementation and Change --- Note that the rules described in this section depend on the ability of ADDD to determine * the execution context (session, task, parent tasks) which has caused an event, and * the configurations to which a particular version belongs, and the sessions which currently lock (i.e., use) a configuration. 3.2.3 c) Process Procedures In 3.2.3, two kinds of procedures have been introduced so far: a) procedures which are used to customize some behavior of the ADDD kernel, and b) procedures used as conditions and actions of triggers. Both kinds have in common, that they are called implicitly by the ADDD kernel, but never explicitly by the user. The ability to invoke public methods on objects in Tcl scripts can be used, of course, to write scripts which can be started by the user directly. We distinguish process procedures from procedures which are written specifically for particular user interfaces (3.2.5). While the former are contained in policy files the latter are not. Process procedures are used to establish, preserve, or just query process-specific consis- tency when triggered by the user. Process procedures are used, for example, * to build up an initial work structure when the process is established, * to modify the work structure during the process (e.g., extend it or clean it up dynamically), * to perform consistency checks at various points during the process, and * to clean up everything at the end of the process. Most of these procedures require manager permissions (see 3.1.1). For instance, the follow- ing procedure builds up a initial work structure of a process by creating process objects (tasks, producerConsumer relationships) and associating policies to tasks. proc establish_ispw9_structure { parent_task } { # instantiates the ISPW9 process below an existing parent task: # Three subtasks (CCB_task, Integration_task, and Test_task) are # created and the corresponding policy files are associated with them. # Then a producerConsumer relationship is created between the # Integration_task and the Test_task, i.e., the Test_task should # test the configurations produced by the Integration_task. global CCB_task_name integration_task_name test_task_name set cnt [mcall $parent_task container] set CCB_task [mcall add_Task::create $cnt \ $CCB_task_name $parent_task CCB_policy.tcl] set Integration_task [mcall add_Task::create $cnt \ $integration_task_name $parent_task integration_policy.tcl] set Test_task [mcall add_Task::create $cnt \ 3.2 Describing Process Support in ADDD 79 $test_task_name $parent_task testing_policy.tcl] mcall add_producerConsumer::create $cnt $Integration_task $Test_task } 3.2.3 d) Incremental Redefinition of Policies in a Task Hierarchy The interplay between policies defined on different levels of the task hierarchy is different depending on the semantics of the policy item: * Parameters and procedures defined in the policy of a task can be redefined by its subtasks. This means that within the execution context of the subtask, the redefined value/imple- mentation is retrieved for a parameter/procedure, while commands executed on behalf of the parent task still retrieve the values defined in its policy. In figure 3.8, for example, the parameter start_editor is redefined by team policy B, so developers working on Com- ponent B will use the vi editor while the rest of the project is using emacs. Similarly, the redefinition of procedure default_icon leads to the fact that (some) items are displayed with different icons for people working on B than for the rest of the project. * Triggers are instantiated for each task the policy is associated with. For example, the project policy defines that manager(s) of project XY should be notified in case one of its subtasks produces any result. This trigger is not implicitly instantiated for subtasks, e.g., task "development of component B" is not notified if one of its subtasks produces any results. Similar, triggers on locked configurations ({trigger,notify,log}_on_ elements_of_locked_confs) define the cooperation policy for the sessions of the asso- ciated task. Subtasks may define totally different cooperation policies for their sessions. project policy set start_editor {emacs -i $filepath} proc default_icon {icon_name} { ... } project XY notify TASK_EV_NEW_RESULT SELF/* - MANAGER development of component B team policy B set start_editor {vi $filepath} proc default_icon {icon_name} { ... } notify TASK_EV_NEW_INPUT SELF - MANAGER Figure 3.8: Example of policies defined on different levels in the task hierarchy. 80 3 A PSEE supporting Process Implementation and Change This means that parameters and procedures are inherited by subtasks and can be redefined by them, while triggers are neither inherited nor redefined. The latter is because tasks on dif- ferent levels of the task hierarchy follow quite different processes. Making policy redefinition secure A policy is a Tcl [Oust94] script. A parameter is a Tcl variable, which is defined by the set command (see figure 3.8). A procedure (e.g., an action of a trigger) is a Tcl procedure. Trig- gers declarations are Tcl commands (e.g., notify). When the policy file is sourced by a Tcl interpreter, these commands are executed, thus installing triggers in the tables of the system. Each session and each task has its private Tcl interpreter which executes commands issued by the session or issued by triggers defined in the policy of that task, respectively. These interpreters source first the default policy and then the policies of their parent tasks, begin- ning with the policy of the top level task and then down the hierarchy. Trigger commands of parent policies are not executed. This causes procedures and parameters to be redefined by subtasks while triggers once installed in the trigger tables are not affected by the policies of subtasks. Triggers can not be redefined by subtasks, nor can they corrupted by redefinition of pro- cedures in the scope of subtasks: the condition and the action of a trigger are executed in the scope (i.e., Tcl interpreter) of the task associated with the policy. This implies that the pro- cedures of this interpreter are taken and not any procedures redefined in the interpreters of subtasks. 3.2.4 Checklist Definition The checklist of a task is retrieved by a policy procedure [see 3.2.3 a), proc checklist_file {task_pathname}] which computes the checklist file from the pathname of the task. The rationale of checklists are explained in section 3.1.1. Checklists are specified in files where fields for user input are indicated by `#'. Default values or further advice (for instance, "[This is a] mandatory field") can be placed after the `#'. For example, the checklist shown in figure 3.9 is generated from the following file: Detailed comments should be appended to the change request!! Please, fill out only those questions which are applicable. Urgency / Priority #mandatory field Is this request caused by - misunderstanding ? # - wrong or incomplete specification ? # - wrong or incomplete documentation ? # - an implementation error ? # 3.2 Describing Process Support in ADDD 81 Figure 3.9: The checklist of task analysis_cr83#0.1 displayed to the user. Is the problem already fixed ? # Related change requests: # Does the request conflict with the specification ? # require a change of the documentation ? # require a change of the testcases ? # require a change of code ? # Time estimation for fixing the problem: # Modules affected: # 82 3 A PSEE supporting Process Implementation and Change Do you propose a solution ? # Have you already fixed the problem ? # 3.2.5 User Interfaces In ADDD, each user has an agenda which offers him all active and suspended tasks. In the agenda, it is possible to open a session for a task; this causes all windows to reappear which were present the last time the session was closed. ADDD offers several kinds of windows to the user: * the management view shows information about a task: its team members, its inputs, its subtasks, and its results. In case the user has management permissions, the window offers menus to manipulate these issues, for example, to assign a team member to a subtask. * the history view displays the version graph of a document, i.e., all versions and the derivedFrom relationships which connect these. * the configuration view contains all versions belonging to the displayed configuration. * the browser view displays a net of objects (tasks, versions, users) connected by relation- ships. This is a very general tool which offers quite different views depending on the object used as the starting point. We argue that user interfaces can offer much process guidance to the user (2.1.2). Therefore, the user interface of ADDD can be selected in a process-specific way by a policy procedure. In case the user wants to see the "attributes" of an object (e.g., by selecting the corresponding popup menu entry), this procedure maps the name and type of an object to its user interface script [3.2.3 a), proc gui_script {name type}]. For instance, a task which receives, schedules and assigns change requests to developers should have a user interface like figure 3.10. Tasks which just have to carry out change requests may require a much simpler user interface. Note, that the commands issued by the buttons and menus usually provide some process support. The user interface also supports communication and cooperation in various ways. For instance, in figure 3.10 the lower subwindow displays the log of the task. In the log of a task all relevant actions are recorded. By looking at the log, team members are informed about important events, even if their effects and sequence are no longer simple to detect any more. Furthermore, users can write notes and messages to the log of a task. It can be argued whether a user interface should be viewed as part of the process model, or not. Some PMLs allow to configure the user interfaces of their PSEEs, e.g., Escape+ (Mer- lin), APEL (Adele). Such approaches have their limits. For instance, complex windows, like figure 3.10, can not be generated. Our PML approach does not care about user interface design (which we perform by using a general purpose user interface builder [Delm93]). Pol- icies just link tasks to the user interfaces to be used (see above). 3.2 Describing Process Support in ADDD 83 Figure 3.10: A window on a task named Coding coordinating coding activities of a project. The upper left subwindow shows the change requests (bug reports and a request for changing the GUI layout of the product) to be performed by Coding. They are sorted by priority (1st column). The 2nd column shows name and ver- sion number of the change request. The other columns show the deadline (if any), the last modification date, its state, and the concerned subtask. The upper right subwindow shows the current subtasks of Coding. It shows whether there exist any results (indicated by *), the state of the subtask, and the associated developers (not visible). The lower subwindow displays the log of Coding. Notes and messages which were explicitly written by users are indicated by . When a user interfaces is started, it downloads a number of procedures into the ADDD server which are invoked in the sequel by the user interface in order to query or modify the database. The main difference between those and process procedures (3.2.3 c)) is that a downloaded procedure is specific to the needs of a particular user interface, while a process procedure is not. Process procedures are part of policies, while downloaded procedures are 84 3 A PSEE supporting Process Implementation and Change determined in several steps: a policy file contains the procedure gui_script computing the script to start the user interface. This script determines the procedures which have to be sourced by the ADDD server. --- Up to now, we have introduced concepts, languages, and mechanisms. In the remainder of this chapter, we will show how these can be used to implement process support and to sup- port process enactment and change (3.4 - 3.5). 3.3 Applying the Concepts of ADDD to Process Support In this section we want to illustrate how processes can be supported in ADDD (see also chap- ter 4 of an extensive example). Let us recall the aims of process support in section 2.1 and see how these can be accomplished using ADDD. But first, let us make a general statement: Approach: It is important to understand that our approach does not attempt to describe the process completely. Actions that are not described are not restricted by default. For instance, * besides the "official" task tree of a project, other (e.g., private) task hierarchies can exist. Or within the projects task tree, additional tasks can be added in order to perform excep- tional work. The work performed "aside" can easily be reconciled with mainstream devel- opment, because everything is performed within the same task network. * workflows can be described, but it is not enforced that the consuming task must process every result produced by a predecessor in the flow. Results are not reserved to be exclu- sively used by successor tasks as declared in the workflow. Other tasks can see these results and can react on them. This approach gives the humans in the process a lot of freedom and in turn requires respon- sibility from them. This freedom can be controlled and decreased by monitoring, guidance, and enforcement. J --- Workflows are supported firstly by providing an appropriate task network. This structure defines where a particular kind of work has to be performed and which results produced by one task should be used by another. We propose an approach which models dynamic task networks by spawning subtasks on demand. Automation can be used to ease routine work. Work Structure Versioned items (e.g., change requests, configurations) can be associated with a task as inputs. A user with the role "manager" can declare an item as being a result of a task. This is recorded in the database by input and result relationships between tasks and items (3.1.1). 3.3 Applying the Concepts of ADDD to Process Support 85 In order to establish some kind of workflow, producerConsumer relationships between tasks are created. It is expected that the output of the producer task should be the input of the consumer task. In contrast to input and result relationships (which describe the current situ- ation), producerConsumer relationships describe an intention. To which degree this intention is enforced depends on the policies (3.2.3). A given task hierarchy, producerConsumer relationships, and checklists (3.1.1) provides a work structure which tells the users involved where they are and what to do. For instance, a user associated with task ".../Test/test_release#5.2" sees this on his agenda window and knows that he has to test release#5.2 1. He can easily retrieve the task which has produced this release (e.g., .../Integration/make_release#5.2) and the people involved. The checklist tells him which steps during test should be performed. Note, that this is all structural information (i.e., data structures), there aren't any rules or other kinds of dynamics which are much more difficult for the user to understand. Dynamic Task Networks In many cases the principal sequence of tasks is known, but not how many of these task instances are active at a given point of time, nor the cardinalities of their interrelationships. producer system test coding consumer test 1 test 2 fix A fix B A B = task B is subtask of A A B = task A has produced a result which is now an input of B Figure 3.11: One possible constellation of how results of subtasks are consumed. 1. We assume that the name of the task is generated automatically depending on the item to be tested. Besides this, the user can also retrieve this information by inspecting the inputs of the task. 86 3 A PSEE supporting Process Implementation and Change For instance, it is clear that testing usually raises several change requests which should be fixed afterwards. Or, each change should be reviewed and then integrated into a new baseline configuration for further testing. But it can be advantageous to fix several change requests in one change task, or to integrate changes in several integration steps. How work is broken down into tasks has to be decided on a case-by-case basis. Our approach in tackling this is to create a task for each major activity, for instance, cod- ing, review, integration, and system test. These tasks are likely to exist throughout the project they belong to. They are connected by producerConsumer relationships. In case an input (e.g., a change request) arrives at one of those tasks, its manager has to decide if and how to proceed. He can * reject the input, * just notice the input but delay processing, * create a subtask and assign the input to be an input of this subtask1, too, or * assign the input to an existing subtask. This may lead to task structures as shown in figure 3.11. It shows a task hierarchy with two tasks (system test, coding) which both have spawned two subtasks to perform particular tests or codings, respectively. Due to the decisions of the coding manager, the input-output relationships between leaf tasks may be as shown. Note, that this situation has not been planed before on this level of detail. It is shaped by the ad-hoc decisions of the people respon- sible. Automation The creation/destruction of input and output relationships cause events which can be handled by triggers defined in the policy of a task. For instance * A change request assigned as input to task coding can cause the creation of a subtask which should perform the request. * If a subtask produces some results (a modified code configuration and a modified change request, containing some remarks about the code modifications), a review task can be cre- ated (or notified) automatically in order to perform a code review. * By declaring a new configuration to be the output of a task, an associated consumer task system test, creates a subtask in order to test this new configuration. In the examples above the decisions of humans are still required. For instance, a manager can delete the automatically created subtask if he decides to reject the change request, or he can assign it to an existing subtask. If he agrees, he assigns people to the subtask and activates it2. 1. This is similar to the "fork and exec" paradigm in the Unix operating system. 2. Again, assignment of people can be automated in case of code ownership (i.e., each module has an owner who must per- form all changes on this module). 3.3 Applying the Concepts of ADDD to Process Support 87 Routing of events Another example of automation is the routing of events to tasks which should process them. This is important in particular for supporting dynamic task networks. For instance, instead of routing change requests along producerConsumer relationships, it can be stated that each new change request should automatically be assigned as an input to the coding task. This way, all change requests are considered, even those created during coding itself. Automation becomes critical if triggered actions have a high impact or can not be undone manually. For instance, activation of a subtask may cause people to spend time on this task. Section 3.5 discusses the impact of crucial operations. Guidance Guidance can appear to the user either in a pro-active/intuitive way ("What to do next?") or in a reactive manner (by providing some critique). The task structure provides an orientation (answering "Where am I") which shapes the understanding of the user. Similar checklists guides the thinking of the user in an unobtrusive way. Process-specific user interfaces (3.2.5) can present information and actions suggesting only valid actions. Automatic notification (especially workflow events, like the arrival of task input) is a quite effective way of implementing guidance. Instead of aborting commands using constraints, similar rules can be used to comment on user actions or provide critique. Enforcement when needed Enforcement can be implemented by constraints. For instance, constraints can be used as pre- conditions: the task activation event can cause constraints to be evaluated. Further triggers can be used to suspend tasks if their preconditions are invalidated during execution. Note that such a kind of process enforcement is possible but not requested or suggested by any syntax or user interface. As discussed in section 2.1.4 and in "Supporting partial known Processes in an incremental way" on page 45, we argue that enforcement must be carefully applied if the process should not be restricted too much. Enforcement should be introduced to a process after some evaluation has given insights about the process support really needed. Traceability and Monitoring Finished/aborted tasks can not be deleted as long as versions created by them exist (3.1.1). The existence of a task further prevents any deletion of its checklist, inputs, and results. As inputs and results are often configurations, their versions and in turn the tasks which pro- duced them can not be removed either. Therefore, traceability of process information is pro- vided for a long time. 88 3 A PSEE supporting Process Implementation and Change Log triggers (3.2.3 b)) can be used to observe any groups of events on any particular object(s) in one or more log files. This way, logs can provide various views of the process which can be filtered and analyzed by common text-processing tools during and after enact- ment. 3.4 A Methodology for designing Process Support in ADDD Before implementation of process support, process requirements have to be discussed, pre- liminary process descriptions have to be evaluated by several people, and possibly some for- mal representations are analyzed or simulated. So, when it comes to process implementation there already exists a number of descriptions which can be exploited. Figure 3.12 shows the dependencies of documents used/produced during process implementation. In the following we discuss the creation and contents of each document. We follow this methodology in chap- ter 4 for the implementation of process support for the ISPW9 scenario. user roles abstract workflow description (e.g., as a net) task kinds task hierarchy workflow support, definition of consistency checking checklists definition of objects & relationships process-specific user determine information interface design to be recorded in log files Figure 3.12: Dependencies between design documents during process implementation. Feedback flows along the arcs in the opposite direction, e.g., user interface design may lead to modification of workflow support. The documents above the dotted line are assumed to be stable during process implementation, but are, of course, the subject of process improvement during process enactment. We assume that there exist some documents describing the roles of users and the desired workflow to be followed. These documents may be written in some formal language or in an informal way, like the ISPW9 scenario. If not already contained in these documents, devel- 3.4 A Methodology for designing Process Support in ADDD 89 opment tasks have to be identified and described. In ADDD, we distinguish between two kinds of tasks: * short-termed tasks, for instance, analyzing a change request, reviewing a change, or inte- gration of several changes. These tasks are typically finished within minutes or even hours. * management tasks. Management tasks initiate short-termed tasks and control them. Man- agement tasks are more concerned with a certain responsibility, rather than completing some piece of work (as short-termed tasks do). Therefore, management tasks are long last- ing tasks, which are only "finished" if the corresponding user role becomes obsolete or as the project ends. After the short-termed tasks and the management tasks are identified, a (preliminary) task hierarchy can be derived easily. As a first process support, one can write a procedure which instantiates this task hierarchy below any given task. Initially managers of a task or its parent tasks would have to do things manually: inputs have to be assigned, results have to be communicated/propagated to other tasks, tasks have to be started and finished, etc. This may work due to process scripts (see page 12), i.e., tex- tual descriptions about responsibilities of people, flow of information and control, and qual- ity issues. Therefore, we are not forced to transform the given workflow description totally into some process support, but do it selectively and in an incremental way. Workflow between tasks can be automated (e.g., routing results to subsequent tasks), con- strained (e.g., restricting other behavior) and documented (e.g., creating relationships between results and tasks). By thinking about project management or quality issues, further information has to be recorded during the process in order to check that everything is per- formed in the right way and nothing is forgotten. For instance in chapter 4, it is checked before testing whether the current configuration contains fixes for all change requests issued by the last test. The information collected by checklists can be used for project management or quality issues, as well. The triggers and procedures defined for workflow support and consistency checking may require an extension of ADDD's class hierarchy by additional relationships and version classes. Based on this, process-specific views (i.e., user interfaces) can be designed from which the user can drive the specified workflow (see figure 4.3 on page 106). Normally the design of user interfaces leads to a lot of feedback for improvement of previous documents. So it is important not to spend too much time on the previous documents before thinking about user interfaces. The last steps of process implementation include the definition of the information to be recorded in log files and customization (not mentioned in the figure above). These steps are trivial and can be delayed until enactment if desired. 90 3 A PSEE supporting Process Implementation and Change Note that the documents mentioned in figure 3.12 contain triggers and procedures which are grouped into policy files according to the tasks which should be influenced. So after this partitioning has been done, these documents are no longer single units files but represent information contained in several files. This methodology contains many steps and dependencies which are not specific to ADDD. We suppose that process implementation on other PSEEs may require additional steps or must omit some steps not supported (e.g., process-specific user interface design). Specific to ADDD are the use of checklists and the dominant role of the task hierarchy. 3.5 Process Change during Enactment Changes may have good and bad effects. In the positive case, a process manger may want to change everything, and work continues without any disturbance and even better than before. On the other hand, change may invalidate work performed so far, or may confuse people, thus preventing them to spend their time on the right tasks. Furthermore, the person perform- ing the change may not understand the current state and the impact of his changes, thus mak- ing mistakes. The situation becomes worse, if unwanted changes can not be undone easily, or cause unrecoverable loss of information (in the extreme case, invalidate the whole pro- cess). In this section we discuss how processes can be changed in ADDD during enactment and how change impact can be mastered. There are two kinds of changes: a) changes to the state of enactment and b) change/replacement of policies. These and their impact are discussed below. 3.5.1 Changing the State of Enactment The state of enactment is represented explicitly as a set of objects. These objects are created and manipulated via object oriented interfaces. Methods can be called manually by the user or within procedures. There is no difference between whether a state has been reached by process automation or by manual activities. Thus, exploration of the enactment state and the command histories can be done by each user without extra knowledge. The object oriented interfaces are designed to shield the objects from low level inconsis- tencies (like loss of referential integrity) or violation of the consistency constraints imposed by the concepts introduced in 3.1 and 3.2 1. Besides changing the enactment state by normal work (e.g., creating a new version, updat- ing a configuration), the manager of a task has the right to perform the following changes: 1. This sounds trivial, but caused a lot of work during the design and implementation of the classes. 3.5 Process Change during Enactment 91 * adding a new task, adding people to it, deletion of a task which has never been activated Possible negative impact: none * activation of a new task. People become aware and can start working. Possible negative impact: Superfluous tasks can disturb people and make them spend time on the wrong tasks. Cure: Suspend task again. Of course time wasted by people can not be recovered any more. * assign/disconnect people to/from an active task Possible negative impact: A unintended use may disturb people by notifications and may hinder them by not spending enough time on the tasks they should work on. Cure: There are inverse operations. * assign inputs, declare results of active tasks and inverse operations (disconnect). Possible negative impact: A unintended use may disturb people in the tasks concerned. Cure: inverse operation * adding a producerConsumer relationship between active tasks Possible negative impact: The workflow may become ambiguous. Cure: This should be detected by the team members of the tasks concerned. The relation- ship can be removed. * removing a producerConsumer relationship between active tasks Possible negative impact: Results may remain unused and forgotten (i.e., not handled by subsequent tasks any more). Cure: Queries can detect these situations. The relationship can be established again. * suspend an active task Possible negative impact: Suspending the wrong task may hinder people. Cure: Activate task again. * finish/abort a task Possible negative impact: Similar to suspend. The task sessions are deleted and all locks are freed. This is the most severe operation. Cure: activate task again. The sessions and locks can not be restored. The session works- paces in the file system still exist, so changed files can be recovered from there. The above illustrates that the set of operations changing the process is quite small. The impact of each operation can be recognized and undone easily (besides the waste of time, of course). The most severe operations are finish and abort. But negative impact can be mas- tered by secure garbage collection and an append-only database approach. Secure garbage collection The problem of information loss should be discussed using an example. If an item (e.g., a configuration) is no longer used (for instance, as an input or a result), it can be changed or 92 3 A PSEE supporting Process Implementation and Change deleted (3.1.2). So, if a use relationship was removed accidentally and some garbage collec- tion has been performed after this, an unrecoverable loss of information occurs. This problem can be tackled by additional mechanisms: 1) items can only be deleted by privileged garbage collectors and 2) before deletion items are archived. ADDD provides a backup/restore mech- anism which can be used for archiving. The system currently does not provide such a secure garbage collection, but it could be added easily. Append-only version histories ADDD permits the change of leaf versions in the version graph of a document (3.1.2). This is because we want to prevent histories being cluttered by intermediate versions possibly containing large files (e.g., binaries). This is important because basically ADDD does not distinguish between source files and derived files as other systems do (e.g., ClearCase [Lebl94]). But ADDD offers a policy procedure which decides, based on the file name, whether a change should overwrite the current version, or not. This way critical version his- tories can be turned into "append-only" offering a more detailed history information. Again, special garbage collection routines may clean this up when it is no longer needed. 3.5.2 Change of Policies Access Control during Process Enactment and Change Creation of subtasks, association of inputs and outputs, activation, suspension of tasks, are (among others) privileged operations which can only be performed by team members who play the role "manager" in a concerned task or one of its parent tasks (3.1.1). A manager is responsible for the policy associated with his task. He can change the policy file1 or associate a new one with the task. Therefore, the triggers defined in an associated pol- icy are executed with the privileges of a manager of this task (3.1.4). This way, triggered actions can perform privileged operations on this task and its subtasks, but not on other tasks. Change Impact The change of a policy can affect work in a fundamental way. If some parameters or proce- dures are ill defined, certain commands abort or (more severe) are performed in the wrong way. For instance, if the message formats are changed in the wrong way, people may receive wrong or misleading notifications in case of an event. Or, the invocation of a text editor may lead to an error. If managers make mistakes during the definition of policy triggers, people may get no or superfluous notifications, or too few or too many events are logged in a par- 1. Currently the policy files do not reside in ADDD but in the file system. In order to reflect the managers' responsibilities, the access rights of these files have to be defined properly. 3.5 Process Change during Enactment 93 ticular file. Furthermore, triggers may perform all the changes discussed above (3.5.1) auto- matically. In the current implementation of ADDD, policy files are not versioned by ADDD, but any file based version management system (e.g., RCS) can be used for this purpose. Thus, we assume there is no loss of stable states of policy files due to change. In case an error is detected in a policy file, its previous state can be associated with the task, or the task can be suspended until the situation is fixed by applying inverse operations as discussed in 3.5.1. But in general, the (positive and negative) impact of an operation increases as subsequent operations are performed on the resulting state. The worst case scenario is that errors are not detected and lead to wrong (re)actions, or produce new erroneous or incomplete data. For instance, a log file becomes incomplete in the sense that some important events are not recorded any more. Or, notifications are not sent or sent to the wrong people. Or, events are not recorded in log files, or the wrong information is recorded. The effect of an error becomes worse as long as it is not detected. Thus, techniques should be introduced to identify, review, trace, and analyze the impact of changes. Changes may disturb work or can cause work to stop, but a policy affects only the con- cerned task and all its subtasks1. Of course, a change to the policy of a large project would and should have great impact, but tentative changes can easily be limited to subtasks before applying them to the whole project. Thus, ADDD supports isolated test and review of policy changes. Mechanisms for tracing and analysis of policy impact are not implemented in the current ADDD prototype, but can be added easily. 3.5.3 Conclusions on Change Impact Most failures can be repaired by simple inverse operations. With a save garbage collection mechanism and append-only histories (see above) everything (besides loss of time which is an expensive resource, of course) can be recovered. It is generally accepted that process change has to be described and performed as a pro- cess, too. ADDD permits the process designer to apply, test, and review non-trivial policy changes in a limited context. If this is performed in an accurate way, the risk of process change can be mastered. Last but not least it should be mentioned that the likelihood of negative change impact depends also on the readability and complexity of the process description discussed in sec- tion 5.2. 1. Triggers containing ALL or a general taskpathname pattern (see 3.2.3 b)) can be abused (e.g., they can cause superfluous notifications to all project participants), but their effect can not be destructive. 94 3 A PSEE supporting Process Implementation and Change 3.6 Assessment of ADDD according to Section 2.4 In the following, we supply the information regarding ADDD for the tables in "2.4 A com- parative View on PSEE Technology". A more detailed comparison of ADDD concepts with other approaches can be found in chapter 5. Table 3.2: Definition of Process Support Languages used for ADDD Workflow producerConsumer relationships between tasks, Definition and triggers reacting on new results of tasks (see example in 4.1.3) Schema & Data Formats DDL of the underlying object-oriented database system (OBST) (3.2.2) Resource Modeling (users, teams, Users are associated with tasks either as developer, as manager, or both. (3.1.1) roles, working hours, etc.) State Transitions Can not be defined by the process designer. There are predefined state transitions defined for versions and tasks. (3.1.1, 3.1.2) Reactive Behavior Triggers (event-condition-action rules) (3.1.4, 3.2.3 b)) Definition of Process Events, e.g., end Inside of method implementations (C++) of an activity + user-defined events (3.1.4) Programming of {pre, post} condi- Tcl (3.2.3) tions, actions, constraints etc. Tool Integration, e.g., shell Tool wrapper, e.g., shell scripts or adapted makefiles (3.1.3) Workspace Coordination (notification, A user working on a session can be notified in case of events on the versions locked propagation of file updates) by him. Currently, such an event can be the creation of a new successor version (checkin); changes in the file workspaces are not monitored. (3.1.3) Communication between users within/ Messages can be sent to all team members of a task or only to the managers of that between workflows task. It is also possible to notify the user of a particular session. Notification triggers can be used to do this in case of events. Process-specific graphical user inter- The appearance of objects can be configured in a process-specific way. Depending faces on the process currently used, the same object may be displayed by a different win- dow (3.2.5). Process Monitoring (i.e., recording Can be configured by special triggers. [3.2.3 b)] information about process perfor- mance) Building blocks used to (de)compose Tasks can be structured into subtasks, and a policy can be associated with each task process descriptions (3.2.3). Predefined Process Entities which are Task, Relationships (producerConsumer, input, result, teamMember), Configura- part of the language(s) tion, Version etc. (see 3.1) Predefined Process Entities available agenda and other GUIs (3.2.5), change request etc. (4.2.1) as reusable process libraries) What is the size of a process model for see 4.4 a reasonable project (e.g., ISPW- {6,7,9} example). 3.6 Assessment of ADDD according to Section 2.4 95 Table 3.3: Process Enactment ADDD Are there means of process instantiation, i.e., A process is typically instantiated by creating a task tree under a given task creating a process instance from a process in the task hierarchy, and by associating policies to each task. This is usually model? done by a procedure invoked by a manager. (see 3.2.3 c)) Can several process instances created from The communication between tasks and between users is not restricted, different process models coexist/interact in regardless of the task hierarchy (see row "Communication between users ..." the same PSEE? above). Visualization of Enactment State agendas, predefined GUIs, process-specific GUIs, checklists (3.2.4, 3.2.5) Process entities which can be created/ Tasks, Relationships (producerConsumer, input, result, teamMember), Con- removed dynamically without changing the figurations, Versions process description . Table 3.4: Process Change during Enactment ADDD Parts of the process descriptions which can Each part of a policy can be changed at any time. Changed policies are auto- be changed during enactment matically loaded by the associated tasks. Can a process instance be associated with Each task can be associated with a new policy at any time. another process description during enact- ment? Which changes can be limited to one process Each task can be associated with an individual policy. instance without affecting others? User interfaces used for process change dur- Text editor and the ADDD command line interface. ing enactment Normal impact of process change during Nothing needs to be stopped or suspended enactment (e.g., must the process or the PSEE be suspended?) After a change: what kinds of errors are see 3.5 detected automatically? Which kinds of errors can not occur due to PML or PSEE properties? What kinds of errors can occur after a pro- Ill-programmed triggers can stop the ADDD server (e.g., by infinite loops). cess change? When will they be detected and This can be cured by restarting the server without the erroneous trigger(s). how could they be repaired? See 3.5.3 on page 93 for further discussion. Access control for process change Only a manager (or the managers of parent tasks) can change the policy of a task. This can be further restricted by constraints. How can users continue to work even when Users can continue working on their workspaces in the file system, but no the PSEE is not operable for some time? checkin/checkout or other services can be used until the ADDD server is up again. It is possible to suspend trigger execution (because of ill-defined trig- gers) like in ClearGuide. 96 3 A PSEE supporting Process Implementation and Change 3.7 Concluding Remarks The ADDD PSEE offers instance level support for task execution. The main characteristics of this environment are * Process support is based on task hierarchies and information flow relationships which can evolve dynamically during process enactment. An event-trigger mechanism can be used to automate and constrain the process. A special syntax leads to compact and easily under- standable trigger definitions. * The process is driven and constrained by policies associated with tasks. The scope of a policy can be limited to the associated task and its subtasks. Therefore, the process can be tailored to particular tasks according to their needs. * The triggers, procedures, and parameters contained in a policy can be changed without or with very limited side effects. Changes can be undone easily. In case the impact of a pro- cess change can not be tested instantly, but requires some evaluation, changes can be tested in a special subtask. * The PSEE is based on an integrated configuration management system. This is manda- tory, because process support for state-of-the-art software development (especially pro- cess traceability) must be based on an effective CM system. During process enactment, relationships (between tasks and versioned product artifacts) and flexible process moni- toring (using multiple log files) ensure visibility and traceability. This information can be exploited by process-specific user interfaces and by triggers which automate process steps or check consistency constraints. At this point we want to emphasize that ADDD changes the focus to task instances and incre- mental process improvement, instead of abstract process descriptions which are hard to change and to synchronize with process reality: i) In ADDD, people can start working without any process definition and develop/change process support during work in an incremental way. ii) Process support can be adapted for specific task instances. This can be performed by the manager(s) of a task in an autonomous way (local process autonomy). Change is only permitted to task managers, and the effects of changes are limited to the tasks they are responsible for. iii) Task networks can evolve dynamically. Tasks can work on documents and react on events which have not been known at process definition time. The tasks which have pro- duced or causes these documents/events need not be known in advance either. For instance, events can be routed to a management task which decides if and how work should be dispatched by subtasks (see page 85). 3.7 Concluding Remarks 97 In the following chapter we illustrate how ADDD's concepts facilitates the formulation of effective process support. In chapter 5, we compare our approach with other PMLs regarding expressiveness, readability, and dynamic change. 98 3 A PSEE supporting Process Implementation and Change CHAPTER 4 Implementation of Process Support In this chapter, we demonstrate how support for a given process can be implemented in the ADDD PSEE. We use the ISPW9 process as an example. The ISPW9 example illustrates a typical change process driven by problem reports. The scenario starts with a tester who reports a problem which is then analyzed and assigned to resources. Changes to the code as well as to documentation have to be reviewed, approved/ rejected, and tested (see "Appendix A: The ISPW9 Example" on page 163.) The ISPW9 example contains several options and sub-scenarios. Besides others, we con- sider that the problem report leads to the modification of several modules and that these changes are performed in parallel by two or more developers. This then leads to an additional integration step in order to produce a new baseline/configuration which is taken for further testing and development. In addition to this kind of workflow, the ISPW9 example also focuses on traceability. Of course, it requires configuration management (CM) for baselining and for retrieval of mod- ules/systems using a changed module. Beyond CM, the scenario requires the retrieval of pos- sibly affected documentation. Instead of documentation, we show how the relationships to test cases are managed1. According to our methodology (3.4), we first elaborate the workflow aspects of the ISPW9 example (4.1). Then, we illustrate traceability issues (4.2). In section 4.3, we discuss which aspects of the ISPW9 scenarios are supported by our solution, and which are not. Sec- tion 4.4 looks at the process support and argues its quality. The complete description can be found in "Appendix B: Supporting the ISPW9 Example in ADDD" on page 167. 1. Maintaining relationships, either to documentation or to test cases, seems to raise similar problems. We chose test cases in order to avoid interoperability issues (e.g., referential integrity) with text processing software. 100 4 Implementation of Process Support Note, that we are doing some interpretation of the ISPW9 example (in particular extend- ing it) in order to be operational. The ISPW9 example itself is quite a short english text which describes the process in a goal oriented way. In many cases, it is said that there should be some support, but there are no details nor quality issues specified. Furthermore, the scenario does not specify alternatives, exceptions, nor the way work (e.g., parallel development) should be performed. 4.1 Workflow in the ISPW9 Example The ISPW9 example contains some workflow between users. In the following we generalize the scenario while identifying user roles, tasks, and workflow between them. All change requests are sent to the configuration control board (CCB) [Berl92, Buck92]. The CCB has to decide if and how a particular change request should be fixed. The CCB usu- ally consists of several people; they discuss the pending requests and schedule them for the next product release. They can reject change requests or assign them to people, thus creating tasks. Optionally, a change request can be analyzed before fixing it. In obvious cases the analy- sis can be skipped and the change request can be coded directly. After the change request is coded, these changes must be reviewed. After the review is finished, the change request and the associated changes are passed for integration. Integration of concurrent changes is performed every day. The integration manager decides which changes should be included and assigns them to an integrator who performs the integration. This person merges the changed files and performs the code changes which are necessary in order to compile the new software configuration properly. The integrated configuration is passed along for further testing. Again, there is a test man- ager, who decides what to do. For instance, there may be a collection of test cases which can be checked automatically over night, and some interactive testing which should be per- formed from time to time. Furthermore, test cases have to be updated according to the changes of the product, therefore the use of test cases has to be managed as well. From his manager, a tester receives a configuration to be tested, and the test cases to be used. He runs and observes the tests and issues new change requests. 4.1.1 User roles Above, several user roles are mentioned. Now we want to name and describe them. In the ISPW9 text [Pene94b] the following definition of the term "user role" is given: An expected behavior pattern associated with one or more people when executing life-cycle activities (e.g., project manager, configuration manager, developer, system analyst). One person can 4.1 Workflow in the ISPW9 Example 101 play multiple roles in a project. For example, when someone is writing code, s/he is playing the role of developer; when s/he is doing configuration management, s/he is playing the role of configuration manager. In the ISPW9 example, we identify the following user roles: CCB member can reject, schedule, and assign change requests to people. Change requests can be assigned for analysis, coding, and review. These tasks have to be con- trolled, i.e., a CCB member can abort or reschedule them. Analyzer of change requests estimates the impact of a change request, i.e., the amount of work which is needed to fix it and any further consequences (e.g., the need for a future redesign). He may also suggest a solution, but should propose code changes only in triv- ial cases1. An analysis can also reveal that the change request is obsolete, because of some misunderstanding, it has been fixed in the meantime, or because it is equivalent to another scheduled change request. Coder fixes a change request by changing code. He should also develop and adapt test cases and documentation of the features concerned by the change request. Reviewer looks at the changes, checks coding style (e.g., portability, readability), and anal- yses impact of the changes. He may reject changes and suggest improvements which should be performed by the coder. All the roles above are permitted to add annotations to the change request in order to qualify it, quantify efforts, propose solutions, explain solutions, mention alternatives, etc. Integration manager manages integration activities. He receives reviewed change requests and decides which to include in the next integration step. He initiates and controls inte- gration activities. Integrator performs an integration, i.e., merges the changed files and performs some code changes in order to compile the new software configuration properly. Test manager initiates and controls test activities. He receives configurations to be tested and new test cases, and assigns them to test activities. Tester receives from his manager a configuration and the test cases to be used. He runs and observes the tests, and issues new change requests. All users are permitted to issue new change requests as they reveal problems or useful improvements during their work. The above set of roles can be reduced (by joining the behavior patterns of several roles) or enlarged (by splitting them). Again, we should mention that a person can play several roles, for instance, the integration manager is likely to be a member of the CCB, too. 1. In these cases, the coding task becomes obsolete and the review of the changes can start immediately. 102 4 Implementation of Process Support 4.1.2 Task Structure After we have identified an appropriate set of user roles, we want to look for tasks (i.e., "pieces of work" which can be scheduled, started, and finished after some time). The user roles as mentioned above lead us to two kinds of tasks (let us recall the definitions from 3.4): * short-termed tasks, for instance, analyzing a change request, reviewing a change, integra- tion of several changes. These tasks are typically finished within minutes or even hours. * management tasks, like the CCB task and the management of integration and test activi- ties. Management tasks are more concerned with a certain responsibility, rather than com- pleting some piece of work (as short-termed tasks do). Therefore, management tasks are long lasting tasks, which are only "finished" if the corresponding user role becomes obso- lete or as the project ends. Management tasks initiate short-termed tasks and control them. They should be kept informed about their subtasks automatically. Figure 4.1 shows the principle data flow between short-termed tasks and management tasks. The naming scheme for the short-term tasks should illustrate their goals. For instance, analyze_cr123 is the task that analyzes change request cr123. Task integrate_5.2.97 inte- grates the current changes on the 5th of february 1997. Test_conf#1.21 tests the configura- tion conf#1.21. Due to clarity, it is not shown that each task can issue a new change request as input for CCB. Furthermore, figure 4.1 only shows the supported data flow, i.e., other kinds of data flow are not restricted initially. change request cr123#0.1 analyze_cr123 CCB coding_cr123 rejected review_cr123 integrate_5.2.97 Integration Manager test_conf#1.21 Test Manager short-termed tasks management tasks Figure 4.1: Data flow between short-termed tasks and management tasks in our solution for the ISPW9 example. 4.1 Workflow in the ISPW9 Example 103 Short-termed tasks are controlled by the corresponding management tasks. This means, that they are created, suspended, and finished by these management tasks. Short-termed tasks may receive additional input (for instance, in case another change request should also be coded in the same task) and report their results to their management tasks. In ADDD, we sup- port this kind of control with the task hierarchy. Figure 4.2 shows the task hierarchy of the example above. This hierarchy can be instantiated several times under different parent tasks in the task tree of a company. This way, several (sub-)products can be developed indepen- dently according to (variations of) the ISPW9 process scenario. < some parent task > CCB Integration Test analyze_cr123 integrate_5.2.97 test_conf#1.21 coding_cr123 review_cr123 Figure 4.2: The task hierarchy of the tasks shown in figure 4.1. 4.1.3 Automation and Consistency Checking Cooperation between tasks is performed according to rules responsible for notification, auto- mation, and consistency checking. As software processes are driven by humans, people have to be notified in case of important events (points 5, 6, 7, and 8 below). Beyond notification1, automation rules react on events by performing some steps which the user would have to perform manually otherwise. This could be the creation of relation- ships (points 1, 3, 6, 7, 10), subtasks (points 3, 10), or the termination of tasks (points 2, 4). By consistency we mean consistency from the user's point of view, rather than from the system's point of view. Consistency is related to automation in such a way that * automation rules should be performed in a consistent way (thus they ensure consistency by themselves), and 1. Notification embodies a special kind of automation. 104 4 Implementation of Process Support * additional rules can forbid to perform work differently compared to the automation rule (e.g., point 4). Another aspect of consistency is the definition and control of permissions associated with user roles. For instance, the analyzer of a change request is not permitted to reject it; this decision should only be made by a member of the CCB. Another constraint forbids that a manager of a short-termed task changes its policy. Consistency can be checked/guaranteed automatically (e.g., point 9), or manually from time to time1 (e.g., point 8). In the following we describe the 10 rules which drive and constrain the workflow in the ISPW9 scenario. The complete set of policies (including all used conditions and actions) is listed in "Appendix B: Supporting the ISPW9 Example in ADDD" on page 167. 1. All new change requests have to be routed to the CCB for scheduling and assignment. In the policy of the CCB task: trigger CR_EV_NEW PARENT* - route_CR_to_CCB The trigger above invokes the procedure route_CR_to_CCB whenever a new change request is created (event CR_EV_NEW). This procedure creates an input relationship between the change request and the CCB task: proc route_CR_to_CCB {event rule_ta obj <... other parameters ...> } { <...> mcall add_input_Relship::create $cnt $obj $CCB_task } 2. A CCB member has to decide whether an analysis task is finished or not. Acceptance is performed implicitly by assigning the analyzed change request for coding. A trigger ensures that such an assignment finishes the corresponding analysis task automatically: In the policy of the CCB task: trigger_on_task TASK_EV_NEW_INPUT SELF/*coding_* - \ finish_previous_authors 3. A result of a coding task should be routed to a review task automatically. If a review task exists which reviews the same change request2, then the result is assigned to this task. Oth- erwise, a new review task is created automatically. In the policy of the CCB task: trigger_on_task TASK_EV_NEW_RESULT SELF/*coding_* - \ route_result_to_review if_no_consumer_is_selected_yet - FALSE 4. A coding task should remain alert in order to react on critique from the review task. Trig- gers assure that a coding task is finished when its review task is finished, and not earlier. In the policy of the CCB task: 1. Thus requiring some manual repair actions in case of constraint violation. 2. A change may be performed by several coding tasks changing code, documentation, and test cases. The results of all of these tasks should be reviewed together by one review task. 4.1 Workflow in the ISPW9 Example 105 trigger_on_task TASK_EV_FINISH SELF/review_* - \ finish_previous_authors constraint_on_task TASK_EV_FINISH SELF/* - \ only_if_consumers_are_finished 5. A coding task should be notified whenever a review task appends some comments to the change request (thus creating new versions of it). Note, that we use the change request as a medium for documented (and therefore official) communication1. In the policy of a coding_* task: notify_on_task TASK_EV_NEW_RESULT_SUCCESSOR SELF - MANAGER 6. A review task should be notified if one of the results of the coding task has been changed, for instance, in case the coding task has reacted on the critique of the reviewer. In the policy of a review_* task: trigger_on_task TASK_EV_NEW_RESULT_OF_PRED \ SELF - create_input_relship notify_on_task TASK_EV_NEW_INPUT SELF - MANAGER notify_on_task TASK_EV_NEW_INPUT_SUCCESSOR SELF - MANAGER 7. All reviewed change requests are automatically routed to the today's integration task (e.g. integrate_5.2.98). The second trigger notifies the manager of the Integration task about this event. In the policy of the Integration task: trigger CR_EV_REVIEWED PARENT* - route_CR_to_integration notify CR_EV_REVIEWED PARENT* - MANAGER 8. The integration manager can also select changes not reviewed so far (Note that such changes still have to be reviewed and that changes demanded by this review have to be integrated later). Therefore, the integration manager should be notified in case a coding task produces a result. In the policy of the Integration task: notify TASK_EV_NEW_RESULT PARENT/CCB/*coding_* - MANAGER He has to ensure that the corresponding test cases are at hand when fixed change requests are tested2. These checks are started manually. 9. During integration, an integrator can exclude a particular change request3 from being inte- grated into the next system configuration, because of technical problems. The integration manager is notified. He may decide to pass it back to the CCB for some rework. During these operations, there should always be a task responsible for the change request, i.e., if a change request is disconnected from a task, it has to be connected to another instantly. In the policy of the common parent task of the CCB, Integration, and Test task: constraint TASK_EV_LOST_INPUT SELF* - keep_CRs_connected - its_a_CR 1. Besides this, reviewer and coder may communicate in various ways not visible from the process' point of view. 2. In other words: he has to avoid that change requests are tested with incompatible test cases. 3. I.e., the changes which fix the change request. 106 4 Implementation of Process Support 10.When a new integrated system configuration is created, a new test task (e.g. test_sys- temA#1.21) should be created automatically in order to test this configuration. In the policy of the Test task: trigger TASK_EV_NEW_RESULT PARENT/Integration/integrate_* - \ notify_manager_and_create_subtask 4.2 Traceability in the ISPW9 Example The previous section elaborated the scenario as a task network where product artifacts are created and passed around. Besides this, the setting should also be viewed as a database which is queried and updated by several process participants (figure 4.3). Each user has a user interface(s) according to his role(s) in the process. This user interface offers him the information he needs and the actions he should perform. Taking this point of view, we have to determine what kind of information should be con- tained in the process database (4.2.1) and what kind of view should be provided for each user role (4.2.2). 4.2.1 The Information Model The core terminology of ADDD (see 3.1) has to be extended in order to support the ISPW9 example for two reasons: First, the ISPW9 example uses some terms which have to be introduced to ADDD. One term is "change request" which is a document containing information about a problem, together with suggestions and comments about how it has been (or should be) fixed. The sec- CCB member Analyzer Coder Reviewer ... Policies Enactment State: Results Tasks Change Requests Checklists Relationships Figure 4.3: Database view on the PSEE supporting the ISPW9 scenario. 4.2 Traceability in the ISPW9 Example 107 ond term is "test case" which includes a set of scripts and data necessary to test a piece of software. This term is not included in the ISPW9 example, but we prefer to use it in order to provide comprehensive test support. Second, in order to increase traceability we have introduced several relationships which are not mandatory for modeling the scenario. These are used to answer the following ques- tions * Which change requests are fixed by a particular configuration? * Which test cases can verify that a particular change request is accomplished? * Has this configuration been tested by these test cases? * Which test cases must be executed again because they have failed? These relationships are created either manually (by invoking process procedures) or auto- matically (e.g., generated by a test tool). They are evaluated by the procedures used, for instance, by the integration manager (see point 8 in 4.1.3). We describe these terms and their rationale below. With respect to 4.1.1 and 4.1.2, we state which roles/tasks are allowed to create instances. Change Request a versioned file containing a request for action. It has an attribute "prior- ity" which denotes the priority on which this request should be handled. The attributes "deadline" states when the change request should be fixed. Everybody is allowed to cre- ate change requests. observed relates a change request with a configuration where the reason for the request has been observed by the person who has created the request. This relationship is typically created during the creation of a change request. assigned relates a change request with a configuration where the request should be fixed. This relationship is created by the CCB manager who schedules work on change requests. fixed relates a change request with a configuration where the request is accomplished. This relationship is created by a reviewer who approves whether the change request has been fixed successfully. integrated relates a change request with a configuration. A configuration is assumed to accomplish all change requests related to it or to one of its predecessors1 by integrated relationships. This relationship is created during integration when merging several fixes of change requests. Test Case a configuration containing scripts and test data. Test cases are created and modified by the developers who do the coding. 1. by following derivedFrom relationships. 108 4 Implementation of Process Support Version observed Configuration Change assigned Request fixed integrated crequest conf Test Case testcase passedTests [failedTests] Figure 4.4: Modeling the ISWP9 example: Extensions to the core terminology of ADDD. passedTests relates the inputs and outputs of a successful test run: the configuration to be tested (role "conf"), the used test cases (role "testcase") and the generated change requests (role "crequest"). These relationships are created by a test_* task. failedTests same as passedTests but used in case some test cases have failed. We intro- duce this relationship in order to find failed test runs without analyzing the contents of messages or change requests. The observed, assigned, fixed, and integrated relationships prevent the connected change requests from being modified as long one of these relationships exists1. Figure 4.4 shows the interrelationships between the new terms. "Version" and "configuration" have been explained in section 3.1.2. Each new term is implemented by a new class, except "Test Case" which is just a configuration containing certain elements (thus represented by a dotted box). 4.2.2 Process-specific Views Most2 of the ISPW9 scenario be performed by using the predefined user interfaces provided by ADDD, but this would lead to a bad process performance. 1. I.e., their classes are subclasses of add_use_Relship (see 3.2.1). 2. Creating instances of the new classes would not be elegant using only the command interface. 4.3 Support for the ISPW9 Base Scenario 109 Each kind of task shown in figures 4.1 and 4.2 is supported by a special user interface, called view. As tasks are derived from the user roles described in 4.1.1, these views support user roles as well. Views are used for various purposes: * Retrieval and visualization of information. This is the fundamental mission of each user interface and not special for PSEEs. Users can make their decisions based on displayed information. * Communication between users. Communication is needed for process support, but how it is performed at the user interface may be not crucial for the process and can be left to the user interface designer (instead of the process designer). * Performing work by invocation of process procedures and GUI-specific procedures (see figure 3.5 on page 67). The latter may be created during user interface design, but contain valuable knowledge about how to organize and perform development. * Checklists. These are special user interfaces used for gathering information during devel- opment and for guiding people, especially to prevent important aspects/steps from being forgotten or skipped (3.2.4). Checklists are specifically used for a process and have a high impact on it. 4.3 Support for the ISPW9 Base Scenario This section illustrates how the ISPW9 base scenario is supported in ADDD. The original text of the example is printed in italics. The steps performed within ADDD are printed in reg- ular letters. During the text, policy statements supporting the current issue are mentioned. The complete policy files are listed in Appendix B. In the following, username@taskname denotes a specific user working on the given task. For instance, kobi@CCB means user kobi (we use the login name of a user, not his real name) working on the CCB task. Users send their commands from dedicated windows (titled username@taskname). Please recall the naming conventions for tasks in 4.1.2. Base Scenario for Demonstration: Problem Reporting and Change Process A software project is on-going, with "parts" of the system already designed, codified, tested and baselined (i.e., under configuration management control). A problem is reported by a tester on the testing of a piece of the system under development. The project's problem reporting and analysis procedures are then followed and a person is assigned the task of the analysis of the problem. (Note: these procedures can be formal or informal, depending on the type of project. Notification can be effected by mail, by forms, by a tool. The procedures may include rules or guidelines telling who assigns people resources to study which problems and what kind of steps need to be followed.) 110 4 Implementation of Process Support 1. Tester rea@test_fooWish.cnf#2.131 creates an change request (cr86#0.0). This is assigned as input to the CCB task automatically by rule 1 on page 104. 2. Kobi@CCB sees cr86#0.0 assigns a high priority to it. He creates a subtask (analysis_cr86) and an input relationship between it and cr86#0.0. He assigns this task to user simon. Not covered: There are no rules or guidelines telling which problems are assigned to which people2. 3. The steps which need to be followed during analysis are defined as a checklist. Simon@ analysis_cr86 fills out some of the fields during analysis. The detailed report is appended to the change request (see step 6 below). Figure 4.5: After step 3: The view of kobi@CCB and the checklist edited by simon@ analysis_cr86 (for description of these windows see page 81 and page 83). A developer/analyst analyzes the problem and proposes a solution. After the analysis (which can be illustrated via automated process support or assumed to have been done manually), the developer identifies that the problem affects one software module which has been coded, tested and baselined, and possibly also affects some documentation (e.g., design and/or test- ing documents). 4. simon@analysis_cr86 performs some analysis [talks to rea, looks at traces, rebuilds the configuration with debugging options and reruns the test, determines whether the pro- 1. I.e., User rea testing configuration fooWish.cnf#2.13. 2. For instance, we could support code ownership by using a simple database which maps names of module to names of users, and problem keywords to old change requests. 4.3 Support for the ISPW9 Base Scenario 111 gram, the test case or the documentation (i.e., specification or user handbooks) were wrong, etc]. (Note: the related documentation can be identified explicitly with help from the system, or implicitly via existing pre-defined rules in the system). There are no queries to find specifications or user handbooks. As noted at the beginning of this chapter, we support test cases instead of documentation. If considered, test cases are related to the change request via a passedTests or failedTests relationship. After some analysis, it is noted that the module to be fixed is currently being (re)-used by two separate users or teams (again how this is accomplished may vary, i.e., the system may flag this issue or this fact may be found explicitly by inspection by a configuration manager or the developer). Those users are notified of the problem and that the module will be changed. 5. simon@analysis_cr86 finds the error in module tclAppInit.c#1.6 and detects1 that, besides fooWish.cnf#2.13, this version (or a predecessor/successor version) is used by testWish.cnf#1.27 too (see figure 4.6, left window). He looks for the author of these con- figurations and at the users currently locking (i.e., using) them. 6. simon@analysis_cr86 creates cr86#0.1 by appending the information he has collected, and declares cr86#0.1 to be the result of task analysis_cr86. Figure 4.6: Left window: simon@analysis_cr86 retrieves the configurations which are pos- sibly affected by a change of tclappinit.c#1.6. Right window: When simon@analysis_cr86 publishes his result, this notifica- tion is automatically sent to kobi@CCB. At the end of the text, the rule and the containing policy file is given for traceability reasons. 1. by browsing relationships interactively 112 4 Implementation of Process Support The change process starts according to preestablished change procedures (which entail assignment of resources, code and/or documentation modification, analysis/testing/review, approval/rejection and new baseline of the module and associated documentation). 7. kobi@CCB sees (in the log subwindow of figure 4.5 and by receiving a message (see fig- ure 4.6, right window)) that task analysis_cr86 has produced a result. He looks at cr86#0.1 and is satisfied with the quality of the analysis. In case simon has already performed the needed change, kobi just creates the review task and continues with step 10 below. Otherwise (the normal case), - he assigns cr86#0.1 for coding (thus creating subtask coding_cr86. Task analysis_cr86 is finished implicitly according to rule 2 on page 104). - He sets a completion date for cr86#0.1 and a deadline for the task1. He assigns module fooWish.cnf#2.13, test case performance.tc#1.15 (as input), and user simon2 to this task. Figure 4.7: Simon is notified about the new situation. His agenda (the window in the mid- dle) is updated. After he opens his new task coding_cr86 in the agenda, the management view on this task appears (right window). (Optionally, the fix could be done by two or more separate developers and their cooperation may be illustrated via process support). 8. In order to improve the test case performance.tc#1.15, kobi@CCB creates subtask 2nd_ coding_cr86, and assigns cr86#0.1 and performance.tc#1.15 to it as input. Then user swantje is assigned to this task. Cooperation between swantje@2nd_coding_cr86 and simon@coding_cr86 is necessary, because the improved test case should fit to the 1. The deadline of the coding task is earlier than the completion date of change request cr86#0.1, because the completion date stands for the date when an approved baseline should have been passed to system test. 2. Simon is chosen, because he is familiar with the problem due to the analysis he has performed. 4.3 Support for the ISPW9 Base Scenario 113 changed software. Cooperation is supported by automatic notification in case a shared version is checked out for writing and when it is checked in again. This is done by the fol- lowing rule contained in the policy of each coding task. notify_on_elements_of_locked_confs EV_CHANGE_plus_NEW_VERSION \ "*.\[Chc\]#*" CAUSED_BY_OTHERS "~/..intension_log" Figure 4.8: The change request cr86#0.1 is input for the tasks coding_cr86 and 2nd_ coding_cr86 which are performed in parallel. The module is checked out of the baseline according to the CM procedures for change but reuse of the old version continues. The module is changed to fix the problem. 9. simon@coding_cr86 checks out fooWish.cnf#2.13 and changes tclAppInit.c#1.6 (thus creating tclAppInit.c#1. 7 and fooWish.cnf#2.14). Because a test case is assigned, he compiles and tests his change1. The module is tested (formally or informally). Once the problem is fixed, procedures for acceptance/rejection are followed. 10.The results of coding_cr86 and 2nd_coding_cr86 are automatically routed to a task named review_cr86. If it does not yet exist, it is created and the manager(s) of CCB are notified (rule 3 on page 104). User kobi@CCB sees the results, sets a deadline for the review, and assigns user johan to this task. 1. If no configuration or test case is assigned, he just publishes tclAppInit.c#1.6. 114 4 Implementation of Process Support 11.johan@review_cr86 reviews the code and proposes some changes to simon@coding_ cr86. Communication can be performed in several ways: first, recommendations are appended to the change request (=> cr86#0.2). In this case, notification of simon@ coding_cr86 is performed automatically by rule 5 on page 105. Second, messages can be sent via the ADDD message service which sends messages to all members of a team and records them in the task log. Of course, communication can also be performed by email or voice. 12.simon@coding_cr86 changes the code again (=> fooWish.cnf#2.15) and declares fooW- ish.cnf#2.15 to be the new result. Notification of johan@review_cr86 is performed auto- matically by rule(s) 6 on page 105. The first rule creates an input relationship between fooWish.cnf#2.15 and task review_cr86 (see figure 4.9). Figure 4.9: When simon publishes fooWish.cnf#2.15, then johan@Integration is noti- fied (upper right widow), and a trigger is fired immediately (please note the time stamps) which assigns fooWish.cnf#2.15 to the review task (left win- dow). After johan@review_cr86 has declared the change request to be fixed, the person who is responsible for Integration (don't be confused that this is again johan) is notified (lower right window). 13.johan@review_cr86 looks at the updated code, creates a review report, and appends it to cr86#0.2. He creates a fixed relationship between cr86#0.2 and fooWish.cnf#2.15. Once the module is accepted (i.e., the change does fix the problem and it does not violate any of the requirements), appropriate regression testing on the modules/systems which reuse a prior version of this module can be performed. 14.Each evening, johan@Integration looks at all reviewed and non-reviewed change requests and decides which changes go into the next baseline. He looks if all needed test cases are 4.3 Support for the ISPW9 Base Scenario 115 Figure 4.10: The process-specific user interface of a review task. The upper windows dis- play the assigned change request (left) and configurations (right subwindow currently displays their history). This user interface is used to create fixed relationship between a configuration and one (or more) reviewed change request(s). Similar to this window and the ones in figure 4.5, all tasks have user interfaces and checklists which are specific for the ISPW9 support. The other shown user interfaces are not process-specific and are provided by ADDD "as is". available. For instance, he can include a change only if the test cases which are incompat- ible with the change are updated as well. Rule 7 on page 105 ensures that he is notified in case changes are proposed or accepted by a review (figure 4.9, the windows on the right). Johan creates a new task (.../Integration/integration_14.11.97) and associates the selected change requests and test cases with it. User simon is chosen to perform this task. 15.simon@integration_14.11.97 builds a new baseline from the changes to be integrated. There are a number of configurations and single source files to be merged into one base- line. Work is finished if everything compiles successfully. Then the new baseline (fooW- ish.cnf#2.16) is passed to task Test. Rule 10 on page 106 automatically creates a new sub- task .../Test/test_fooWish.cnf#2.16 and notifies rea@Test. 16.Rea@Test checks the available test cases again, similar to step 14. Then she assigns swantje to do the tests. Swantje@test_fooWish.cnf#2.16 may first do some manual work (e.g., install the new test cases) and then start the test runs. At night, this baseline is tested extensively using a number of test cases. In case of errors, new change requests are issued automatically and connected to fooWish.cnf#2.16 and the 116 4 Implementation of Process Support concerned test case by failedTests relationships. At morning, the test traces are examined manually and further change requests are created. Once all is done, the change process is finalized. In fact, each new change request triggers the process again. Sub-Scenarios Demonstrations should explicitly include as many of the following sub scenarios as possible: 1. Policy Extension. Specify and demonstrate one or more specific procedures/policies to complement the sce- nario (preferably performed with automated process support): * problem reporting and/or analysis Reporting: All change requests are routed to the CCB. There are rules defining how change requests are handled, and how this is reported to coworkers. Analysis: A checklist offers mandatory and optional questions to the user. By answering the questions, the user is guided in his thoughts and in the work he is performing. * testing procedure/method There are procedures about how to manage test cases. In this scenario, we do not support a particular testing method. * analysis of a problem using data in system no * configuration control: retrieval, storage All items are stored in the CM repository of ADDD. * code fix The way how code is implemented and changed is influenced by a checklist. * problem approval/rejection Again, this is guided by some checklists as above. * resource allocation In software development, people are the main resources. The assignment of developers to tasks is supported by an ADDD service. But ADDD does not provide any resource/capac- ity planning. 2. User Role Support. Demonstrate implicit/explicit support for project user roles (see definition in note), i.e., dem- onstrate: i) (multiple) user to (multiple) role assignment, either static or dynamic; ii) the impact of actions of one role upon another (i.e., automated cooperation among roles based 4.3 Support for the ISPW9 Base Scenario 117 on process definition); and iii) how roles affect the interaction styles and other aspects of the process. Note: Definition of Life-Cycle User Role (adapted from Webster): An expected behavior pattern associated with one or more people when executing life-cycle activities (e.g., project manager, configuration manager, developer, system analyst). One person can play multiple roles in a project. For example, when someone is writing code, s/he is playing the role of developer; when s/he is doing configuration management, s/he is playing the role of config- uration manager. The roles in the scenario are introduced in section 4.1.1. i) Multiple user to multiple role assignment is provided by ADDD. ii) Automated cooperation among roles is supported, for instance, between reviewer and coder (rules 4-6 on page 105). iii) Roles affect the user interfaces to be used, the notifications received, and the permis- sions for privileged actions (for instance, simon has not the permissions of a manager of the CCB task, see 3.1.1 on page 55). 3. Individual Support. Demonstrate how individuals are guided about what task to do next, how users are made aware of the state of the process, or how the system performs actions as a result of the users' actions. Demonstrations should clearly illustrate how users are aware of the process, how the environment and individuals interact, and what variables control the different modes of interaction. The user is told "what task to do next" by messages, notifications, and his agenda. Users are made aware of the state of the process by notifications and various user interfaces. The system performs actions as a result of the users' actions by invoking triggers. 4. People Coordination. Demonstrate coordination of multiple people, including any support for resolution and tol- erance of inconsistency. In particular, demonstrations can illustrate which aspects of these policies, if any, are hard-wired into their systems, and which can be altered by the particular model, and when the policy selections are made. Integration of an unreviewed change is a inconsistency which is tolerated by the process1. In this case, the review is still performed, and the Integration task is notified as usual that the review has finished (rule 7 on page 105). Reviewed changes which have not been integrated 1. It may depend on the point of view whether to call this an inconsistency or not. An example for an unplanned inconsis- tency is discussed in point 7 below. 118 4 Implementation of Process Support can be retrieved from the database. If the manager of Integration refuses to integrate the changes, this has to be approved by the CCB. 5. Configuration Management. Demonstrate how software and/or documents are controlled for the purpose of change, and how individuals using a module in their development are made aware of problems and/or changes to that module. The evolution of sources and change requests is controlled by the ADDD's CM service. Cooperation rules can ensure that people working on the same set of source objects are noti- fied in case of changes. People which are using a module as a library rather than the sources, can be notified by implementing a trigger. 6. Project/Central vs. Individual Coordination. Demonstrate how the executing process supports both individual and project activities, and how the interactions of those activities are supported/mediated by the system. Any user can perform private activities not related to the ISPW9 scenario. If wanted, each item produced by a private task can be used by a ISPW9 task and vice versa. Moreover, the private task itself can be incorporated into (becomes a part of) a particular ISPW9 process. 7. Process Changes while in execution. Dynamically demonstrate changing any of the process definitions supporting the scenario and points 1-5 above, and the effects of those changes. An additional attribute ("cr_state") has been associated to change requests1. The cr_state is set by procedures invoked by some user interfaces. After a while, it turned out that the cr_ state was not updated as needed when certain commands are performed using a built-in user interface, the "management view" (right window in figure 4.7). The situation has been fixed by (i) updating the incorrect cr_state attributes of existing change requests manually2, and by (ii) writing a trigger3 which ensures the update of cr_state. This trigger was appended to the policy of the parent task of the CCB task. The updated policy was (re)installed while the system was running. 1. This is a dynamic attribute as described on page 71. 2. Alternatively, a procedure could have been written to do the job automatically. 3. trigger SO_EV_RELATED_TO SELF* - set_state_of_change_request cr* 4.4 Statistics 119 4.4 Statistics We have shown how we have designed the process support for the ISPW9 scenario (4.1, 4.2) and we have demonstrated how close we can support each step (4.3). Now we want to assess the quality of the process code according to criteria which indicate its readability and com- plexity. Complexity correlates to the number of cross-references between functional units, num- ber of control flow statements, and the number of side effects1 between units. The impact of changes on complex programs is difficult to determine; changes will often lead to errors. Readability of a process program depends, of course, on its complexity but also on quan- titative issues. A large amount of code is not very readable even if the code is simple. Table 4.1 below contains statistics about the ISPW9 support written in ADDD languages (see figure 3.5 on page 67 for a survey). There are classes (written in OBST DDL and C++), the policies (triggers, kernel configuration, and process procedures) used, GUI-specific pro- cedures, and checklists. Process support requires many things which are more or less process relevant. We want to concentrate on the essential parts of process support and exclude parts where technology is not process-specific. In particular, we will not consider any user interface code. GUI-specific procedures retrieve information from the database for visualization and modify the objects in the database. The characteristics of these procedures are due to the underlying OBST database system [Uhl93]: data is accessed like C++ data structures, i.e., by traversing along pointers and iterating through lists and sets. This leads to many lines of code. The number of lines would be significantly smaller, if the data could be retrieved and modified by using a query language. Thus, the quality of this code does not depend on our approach to process support. Nevertheless, it is an example for general programming code, to which we can compare the other code. It is distinguished between actual lines of code and "real" lines of code (i.e., without empty line and comments). Table 4.1: Statistics about the ISPW9 solution in ADDD Kernel Configu- Process Check- DDL, C++ Triggers ration Procedures lists GUI Procedures Lines of Code 157 (DDL) + 173 (triggers) + 99 39 98 1053 288 (C++) = 345 218 (procs) = 391 Real Lines of 92 (DDL) + 42 (triggers) + 52 25 69 804 Code 193 (C++) = 285 188 (procs) = 230 1. Side effects can occur, e.g., when accessing the same data, or implicitly executing a trigger by raising an event. 120 4 Implementation of Process Support Table 4.1: Statistics about the ISPW9 solution in ADDD Kernel Configu- Process Check- DDL, C++ Triggers ration Procedures lists GUI Procedures files 1 schema file 5 policy files 5 4 1 implementa- containing trig- tion file gers, kernel con- figuration, and process proce- dures units 7 classes contain- 9 triggers 2 parameters 11 parameters - 33 procedure ing 23 methods invoking procs 7 procedures 1 procedure + 19 trivial triggers = 27 real lines of code 8,39 lines per 23,5 lines per 7 lines per proce- 14 lines per pro- - 24,36 lines per per unit method non-trivial trigger dure cedure procedure number of control 0,61 per method 3,38 per non- 0,29 per 0 - 4,33 per flow statements, trivial trigger procedure procedure per unit The statistics show that the GUI specific procedures accessing the database include many lines of code and have a reasonable complexity. This part of the implementation contained the most errors. The extensions of the ADDD class hierarchy were rather moderate. New methods cover only a few lines of code and have little complexity. Most triggers are trivial as they do not invoke any procedures. They do not fire any other triggers and are easy to understand. But even the procedures executed by "non-trivial" trig- gers are rather simple compared to GUI-specific database procedures. Only one trigger causes another "non-trivial" trigger to fire, so programming required some care in this case. There is currently only one process procedure: the one which establishes the ISPW9 struc- ture below a given task in the task hierarchy (see page 78). On the level of programming, there is not much difference between process procedures and GUI-specific database proce- dures, so we expect roughly the same characteristics if there would be more process proce- dures. The procedures used for kernel configuration are very simple. Checklists are the most triv- ial part of process programming. 4.5 Comparison with ISPW9 Support written in other PMLs 121 4.5 Comparison with ISPW9 Support written in other PMLs Currently there are only two process description known which support the ISPW9 scenario. Both descriptions are provided by the process group at Columbia University. The first one is using Oz while the other uses Process Weaver [Fern93]. The Oz solution [BS95] supports (1) the delegation of bug report to the owners of the source files, (2) the review of a change request by the concerned code owners and the writer of the documentation1, and (3) the coding of a change and the building of a binary which in turn is available for testing. There is no task structure; instead the people involved are retrieved by following references, e.g., pointing from a source code object to its owner. The workflow is not represented explicitly, but computed by rules depending on the user input and the current contents. The rule syntax (which incorporates a query interface to the under- lying database) is quite compact, but has to be read very carefully in order to understand the rule chaining which differs depending on the contents of the database. The solution consists of about 4877 lines of code for implementing data structures (427), rules (1794), and tool envelopes (2656), not including any user interface code. The ISPW9 support modeled using Process Weaver [Popo95] is rather a simulation of control and data flow aspects than a comprehensive support (see figure 5.1 on page 125). But even if user interfaces and CoShell code is missing, it is interesting to compare it with the ADDD solution. Although we criticize its inflexibility (see 5.1.1), the representation is quite compact and easy to understand. Thus, if a process does not require much flexibility, a solu- tion using Process Weaver could be appropriate. This example shows that if a process can exploit the strengths of a PML, process support can be written down in a compact and under- standable way. But a change of a few requirements can turn the same PML to be totally unsuitable for the process. Evaluation of different ISPW9 solutions requires a detailed specification of the targeted process support before these solutions can be compared by measuring any statistics. 4.6 Concluding Remarks Section 4.3 illustrates that the proposed support covers all aspects of the ISPW9 scenario, except the fact that integration with software documentation was replaced by test case man- agement. The process is supported in the first place by mapping user roles to tasks and organizing these in a task hierarchy, thus giving the user a structure of the process, e.g., to ask questions like "where am I now?". From the user's point of view, user interfaces, checklists, and noti- 1. The review is performed by invoking a conference tool. 122 4 Implementation of Process Support fications provide the most visible support. Users may not be aware of any triggers when they perform an action (e.g., press a button). Usually they can not distinguish between the effects of the action itself and the triggered actions. The system does not appear to be "intelligent" in a sense overruling its users. The small number of triggers needed for ISPW9 support leaves users in a position where they still control the process support, not vice versa. The amount of code needed to implement the ISPW9 support seems to be considerably small, although we have aimed comfortable and not minimal support. CHAPTER 5 Evaluation of the Concepts of ADDD This chapter compares the ADDD approach with other concepts in the field. In chapter 2, we introduced existing PSEEs and assessed their support for process enactment and change. We applied the same grid to ADDD in 3.6. Instead of comparing row by row, we want to con- centrate on the main issues behind this assessment grid: i) the power of process support which could be offered using a PML, ii) readability of process programs, and iii) factors influencing change, especially local change of process instances. As the concepts of ADDD are introduced in chapter 3 and illustrated in chapter 4, we can now discuss some conceptual background. Here we want to explain the following: * Why ADDD allows the definition of more process support than other PMLs (5.1), * Why process descriptions can be understood and managed easily, and * Why processes can be changed during enactment, and why change impact can be better controlled than in other approaches (5.3). 5.1 Process Support Here we focus on the expressiveness of PMLs, i.e., the ability to define a wide range of pro- cess support (see "2.1 What can be expected from Process Support?"). The main features of ADDD's process support are (i) The processes of subtasks can be influenced and controlled on arbitrary levels of the task hierarchy. 124 5 Evaluation of the Concepts of ADDD (ii) Task networks can dynamically evolve. (iii) Traceability of different aspects or parts of a process can be easily obtained. We will point out that ADDD offers more support than PSEEs which * restrict instance level task networks, * do not offer any general event-trigger concepts including commit dependencies, * do not offer any execution context of commands and triggered actions, or * do not provide any proper integration with configuration management (CM). 5.1.1 Dynamically evolving Task-Networks Tasks read input documents and produce results consumed by other tasks. This fact connects tasks and forms a task-network on the instance level. Such a network expresses "what has happened", i.e, which task has produced/consumed which item [in contrast to the process description level which expresses "how it should be"]. Most existing PMLs restrict the dynamic evolution of task-networks on the instance level. In many processes, the principal sequence of tasks is known in advance, but not how many of these tasks are active at a given point of time, nor the interconnection of their input-output interrelationships. This can be illustrated by looking at a Process Weaver ISPW9 solution taken from [Popo95] (Figure 5.1). Here, during a test a bug is found; a bug report is created which may lead to a change request; the change request can be accepted or rejected by the design team. In case of rejection, there is a designer conference. The modified code is reviewed and tested. Without considering the feedback loops in this example, there is 1 bug report, 1 change request, 1 code change (which may affect several files, of course), 1 code review, and 1 test. In real life, such a 1:1:1:1:1 constellation is not the normal case. For instance, a bug report may lead to several change requests being passed on to several designers. The coding of a change request may be delayed, so some tests should be performed without it. Furthermore, a change request may not be caused by a bug report; for instance, a code review may suggest modifying the module structure of the system. How work is broken down into tasks has to be decided on a case-by-case basis during the process, and not at the time of process definition. In terms of the process described in figure 5.1, process instances are joined and forked several times, or started in the middle. Figure 5.2 illustrates several many-to-many relationships that are possible between instances of task types in the ISPW9 example. These particular kinds of dynamic evolving task networks are difficult to describe in existing net-based PMLs, for several reasons: * A task (e.g., "Run Test") may produce several results to be consumed by another task (e.g., "Analyze Bug Report"). This is not possible in the cooperative procedures of Pro- cess Weaver, because a place can not contain more than one token. 5.1 Process Support 125 Figure 5.1: ISPW9 Simulation in Process Weaver 126 5 Evaluation of the Concepts of ADDD Perform Code Review Analyze Change Request Run Test Bug Report Rerun Tests A B = Task A has provided some input for task B Figure 5.2: A trace of task executions illustrating dynamic data flow between tasks. * Some PMLs allow only special kinds of data & control flow. For instance Process Weaver and LEU do not permit a transition to emit results before termination, nor to receive inputs multiple times after start. * Graphical representations attempt to name all tasks in advance. After they are named and connected by some data and control flow in the process description (e.g., some net), their cardinalities and interrelationships are precisely defined for all instantiations of the net. This approach does not offer the flexibility needed for the ISPW9 example. The DYNAMITE approach permits increased freedom as new tasks can be created dynamically, but still the interrelationships between tasks are constrained in the process description, i.e., they can not be determined by some user at runtime. Please recall "Sup- porting partial known Processes in an incremental way" on page 45. 5.1.2 Modeling Process Interfaces Of course, we can omit any data and control flow in the process description for the dynamic parts. Then the picture will change. Let us illustrate this again using Process Weaver. The focus is now on the activity hierarchy of Process Weaver: The activity hierarchy displayed in figure 5.3 corresponds with the hierarchy used in the ADDD solution (figure 4.2). Activities can be instantiated several times. Thus it is possible, for instance, to analyze/code/review several change requests in parallel. For each activity, the inputs and outputs are defined. A cooperative procedure (net) can be associated with each activity in order to define the internal behavior of each task1. Note, that in contrast to figure 1. Recall from 2.3 on page 18 that instances of activities are called tasks in Process Weaver. 5.1 Process Support 127 Test Run test Review change Manage Change Request Change code Analyze Change Request Figure 5.3: A Process Weaver definition of an activity hierarchy for the ISPW9 scenario. 5.1, in this approach net transitions are not used to model development activities. Nets may be used similarly to state transition diagrams (STDs) [so this solution can also be achieved by STD-based systems like ClearGuide]. The routing of outputs of one task to the input of another task can be done manually.1 The modeling approach above can be called object-oriented in some sense. First, multiple task objects are created from some activity descriptions dynamically. Second, the interaction of a task object with users and tools, and the arrival of input may be viewed similarly to method calls. The generalized view is shown in figure 5.4. method call token Task event Figure 5.4: Viewing a task in an object-oriented way. The object-oriented approach has several advantages: first, an arbitrary number of instances can be created and connected dynamically. Each object has an identity (similar to the this pointer in C++) and it can react on events (method calls, tokens, flow of control or data2) 1. In Process Weaver 2.0, propagation of variables (referencing task results) up and down the task hierarchy is done based on their names (e.g., values can overwrite previous ones) [Gemi94]. This mechanism requires some care when it is used as described in this scenario. 128 5 Evaluation of the Concepts of ADDD concerning this object. This generalized view abstracts from whether the internal mecha- nisms used to react on external events is a Petri-net (as in Process Weaver), state transition diagrams, or some object-oriented approach (like in EPOS or Adele). The deficit of the pure object-oriented approach becomes obvious when looking at the rules used for supporting the ISPW9 scenario in ADDD (4.1.3 on page 103): in most cases, the events of interest do not occur directly on the interested task. Thus, the pure object-ori- ented perspective is too restricted. We have to model reactive behavior in a broader sense. 5.1.3 Modeling Reactive Process Support So far, we have argued that graphical specification of data & control flow is good as long as the process does not requires any dynamic routing of data and control on the task instance level (see 5.1.1). We have further proposed that object-oriented concepts (instantiation, encapsulation) are adequate, but not sufficient enough to offer reactive process support (see 5.1.2). Here we take a closer look at reactive technology which could be used for this pur- pose. Event parameters are needed for trigger execution. By returning again to Process Weaver, there is the message broadcast mechanism used to react on events happening somewhere in the system [Caga90]. A task (or any instance of a net or CoShell script) can register actions to react on arbitrary event patterns and can send requests to some object/task in the system. The rules on page 103 reveal that event patterns are not enough; the relevance of an event has to be determined by computing several objects related to this event (e.g., the task which caused it) and complex conditions (e.g., is the causing task a child of a sibling of the task interested in the particular event?). In order to do so, the event has to carry enough informa- tion to compute the condition, for instance, the id of the causing task has to be passed as a parameter. Message broadcasting permits appending of various parameters, but event defi- nition in APEL1 and EPOS does not. Extensive use of message broadcasting raises conceptual problems in Process Weaver. The computational power of Process Weaver's process support can be increased by exten- sive use of message broadcasting. This would require the definition of broad sets of events (including their parameters), conditions, and (re)actions. This is a major effort; a customer would expect a commercial product to provide some predefined sets. On the other hand, such a move to message broadcasting would invalidate the other paradigms in the system, for 2. These events are often checked by some preconditions. 1. The definitions of event parameters ("annotations") is announced for future releases. 5.1 Process Support 129 instance, the Petri-net support becomes optional and could virtually be omitted in order to reduce user training. Beyond message broadcasting, execution scopes and commit dependencies are needed. The reactive capabilities of ADDD go beyond message broadcasting. Various execution modes are supported (see page 66). For instance, the constraints in the ISPW9 scenario can only be supported because the triggering action can be aborted by the triggered action. Only ClearGuide and Adele offer such a coupling. But in ClearGuide, an abort does not undo any triggered actions. Thus within a triggered action, checks have to be performed before any changes are made. But if several actions are triggered by a single command in an arbitrary (!) order, an abort does not roll back the changes which have been performed by previously triggered actions. 5.1.4 Controlling the Effects of multiple Processes A PSEE should host multiple processes cooperating on overlapping sets of objects. These processes are defined by different persons with different goals/perspectives. Even if general good-will can be assumed, these processes have to be distinguished during execution because of access control and process monitoring. In ADDD, the trigger concept is integrated with the concept of execution contexts (3.1.4): triggered actions are performed within the context (user session, task) where the trigger has been defined. This ensures that an execution context is still responsible for the triggers defined by it. This execution context has to provide the privileges needed to perform the appropriate (re)action. Different process instances can coexist and cooperate within most PSEEs. But in case rules of different processes (possibly written by several authors) interfere or conflict, most PSEEs do not consider who has installed the conflicting rules nor the priority of the con- cerned processes. In traditional rule-based PSEEs, like Marvel/Oz [BS95], rule execution (chaining) does not recognize whether it triggers process steps in the current process or in some other pro- cess. It is not possible to distinguish between different processes at runtime, or between fun- damental rules (with "super user" privileges) and process rules. Using message broadcasting, actions are only performed by the receivers of requests or event notifications. So here the producer and the consumer of events are clearly distin- guished, and the producer of an event is not responsible of any reaction. Besides ADDD, only1 ClearGuide knows during execution of a rule, for which activity this rule has been defined. 130 5 Evaluation of the Concepts of ADDD Impact. In ADDD, the impact of a trigger is defined by a pattern. This pattern is matched against the pathname of the task which has caused the event. This limits the impact of a trig- ger to particular tasks in a way the user can understand at first sight without any further anal- ysis. None of the mentioned PSEEs as a notion of the task which has caused the event. For instance, in ClearGuide only the actual user is known. Thus, these PSEEs do not support the tracing of events (e.g. on change requests) caused during the execution of a particular task. Further issues of impact control, especially concerning ClearGuide, are discussed in sec- tion 5.3.5. Control of Permissions. Context information (actual task, actual user, the task/process for which a rule is defined) can be used for conflict resolution and access control. 5.1.5 Integration with Configuration Management Of the PSEEs introduced in chapter 2, some provide integrated CM and some do not. We argue that CM integration is mandatory (see also [Joer97]) in order to achieve the following goals: * Traceability. Of course, each PML can be used to record data about process performance and store it in a database for later use (automation, consistency checking) during the pro- cess. From the PSEE's point of view this requires some notion of versions (their ids and their organization in histories), configurations, and notification in case these objects are changed. * Coordination support is based on events and locks of CM objects. The previous sections have shown that events on CM objects are important for process support, especially change notification and propagation. CM objects need to be locked in order to prevent par- allel work from interfering. * Constraint enforcement. In case constraint violation can not be detected in advance, changes have to be rolled back in both the PSEE and the CM database (see page 66). This feature has to be provided at the database level - proper roll back can not be performed by the user manually. Currently each PSEE supporting traceability (ADDD, Adele, EPOS, ClearGuide) provides its own proprietary CM system (although ClearCase is a leading product in the CM market). But it would be very advantageous to decouple a PSEE from the CM system used: 1. In Adele, the execution context of a rule carries no information about the process. Rules are associated with objects (the "observers"). These objects listen to events occurring on other objects (the "producers"). In case the observer objects are activities and assuming that each activity belongs to exactly one process, the effects of a rule may be seen as effects of a particular process. 5.2 Understanding Process Descriptions and Change 131 Today many companies already use a CM system. Thus, a PSEE should be introduced without the need to switch to a new CM system. Although this is beyond the scope of this thesis, we argue that such an interface between PSEEs and CM systems is feasible and nec- essary in order to supply process technology from non-CM providers. 5.2 Understanding Process Descriptions and Change Beyond the expressiveness of a PML, it is essential that process descriptions are easy to understand and change during enactment. Otherwise, people will resist using it and errors (because of misunderstanding or language complexity) will sacrifice any benefits of using a PSEE. In section 5.1, we justified our choice for an event-trigger based PML because it's computational power is superior to that of PMLs offering only data & control flow, or object- oriented approaches. But in general, event-triggers offer a very low level language (see [Simo95] for a detailed discussion): * the user may be forced to write a lot of triggers and scripts, * the event-trigger paradigm does not initially provide any methodology to structure large sets of triggers, * the purpose of large trigger sets are hard to understand by reading them sequentially, * event-triggers can become quite complex if execution order matters and triggers cause each other to fire in a cascading way. In chapter 4, we have analyzed how ADDD can support the ISPW9 example. Here we dis- cuss the reasons why the results are so promising (5.2.1): first, ADDD provides the right con- cepts and abstractions for process support. Second, ADDD omits concepts which are likely to cause unnecessary specification effort, tend to be too restrictive, or raise obstacles during process change. Although ADDD does not offers any traditional structuring concept like interfaces, a methodology is provided how to structure and maintain process descriptions (5.2.2). 5.2.1 Core Concepts and Abstractions In the process community, it is clear that combining the concepts of all existing PMLs into one "super"-PML would either be impossible or lead to a very complex language which would be difficult to implement by PSEE builders and hard to learn/understand by process designers. The ideal PML should be simple, containing only a minimum of concepts which on the other hand should be powerful enough to build any process support needed. 132 5 Evaluation of the Concepts of ADDD In this section we look at the reasons which make the ADDD process descriptions so easy to be used and understood. We argue that (1) ADDD concentrates on the essential concepts needed for effective process support, and (2) uses the right abstractions. 5.2.1 a) Essential Concepts and Abstractions High-level Services The ADDD services provides mandatory concepts for organizing software development, like configuration management, task hierarchies, and agendas. This conceptual framework lets the process designer concentrate on the process at hand. There is an object-oriented interface which is designed to be safely used by the end user directly via a command interface. The framework can be modified/extended in an object-ori- ented way, but the main issue is the quality of the existing framework - not its extensibility (see "Minimizing Class Definition and Modification" on page 71). Event-Condition-Action Rules The use of ECA rules depends on a set of events, on which they can react. ADDD provides a set of predefined events which are raised inside of methods of the object-oriented classes. In APEL and ClearGuide, any call of a method/command can be defined as an event. Both PSEEs have predefined sets of methods/commands, so there are rich sets of usable events. General event-condition-action rules are very powerful, but difficult to write and under- stand. ADDD provides a growing library of frequently used triggers, conditions, and actions (e.g., monitoring, notifications, constraints, etc.; see 3.2.3 b)). The most powerful feature is the ability to define patterns matching pathnames of tasks. This allows the catching of events concerning tasks ("caused by" or "occurred on" a task) in a straight-forward way. Other PSEEs provide other kinds of abstractions. For instance, APEL offers a graphical language level which allows the user to specify data and control flow in a graphical way. The drawbacks of this approach have been discussed in 5.1.1. Data flows are named, therefore task interfaces are defined (see below). This syntax hinders the formulation of efficient pro- cess rules (e.g., there is no equivalent to the matching of task pathnames in ADDD) even the underlying trigger mechanism may be powerful enough. 5.2.1 b) Secondary Concepts and Abstractions The above points out what should be the core concepts of a PML and the right abstractions for defining process support. This should not deny the introduction of additional concepts, e.g., task interfaces. But it should be clear that these are secondary concepts which * should not be in the core part of the PML but added as process libraries or macros, and 5.2 Understanding Process Descriptions and Change 133 * are modeling paradigms which should be applied selectively, i.e., there are reasons why to apply them and why not. Not considered: Interfaces between Tasks In ADDD, the interfaces between tasks (inputs, results, items to be (not) accessed, commu- nication protocols between tasks) are initially not restricted. It has to be checked by the peo- ple involved whether the inputs or the results of a task are reasonable or not (e.g., comply with some quality standard). This happens either during their work, when things come into sight, or later by analysis of the process performance (for example, by checking for pending change requests). Checks can be automated by implementing constraints which act, for instance, as pre- or postconditions of tasks. Other PMLs emphasize the definition of interfaces, i.e., number and type of task inputs and results (LEU, Process Weaver), and, in addition, messages to be understood by a task (EPOS, APEL). The use of interfaces has some drawbacks: * This requires more knowledge about the process in advance, * makes the language (and the process descriptions written in it) more complex, * raises modeling problems if interfaces should vary on a case-by-case basis (e.g., use sim- ple interface for simple cases [e.g., review of a trivial change]; use complex interface for severe cases), * increases the likelihood/frequency that the process description has to be changed as the process evolves over time, and * increases change impact, i.e., if an interface changes, all its implementations have to be adapted and all the implementations which call the changed (part of the) interface. This may affect many processes currently enacted. * Task interfaces often come with information hiding and refinement hierarchies. These paradigms do not comply with the characteristics of human-driven software processes1. These burdens can be tolerated, if the use of such interfaces give any positive equivalent. We argue that this is not the case: The aspects checked by an interface (cardinalities, types, message formats) are not of the same importance as in the field of programming languages. There, run time errors on the code level can not be tolerated because this level is hidden from the user. So, syntax checking is of great help. During the software process, the quality of results is the important factor. This and the pro- cess itself are controlled by users. In most cases, the quality of a result is checked in the next 1. Developers would not accept information hiding to be applied in the same rigid way as in programming languages. They would establish additional communication or processes not specified in the PML. Thus, the ongoing process is no longer described by the process model completely. It can not be expected to repeat the process by simply reusing the process model. 134 5 Evaluation of the Concepts of ADDD process step(s), for instance, a code change is reviewed, then tested. The quality of a review is justified by forthcoming codings and reviews. The quality of a test may be the subject of critique during subsequent tests or complaints from customers and co-workers relying on that code. Due to traceability, low quality work and the people responsible for this can be identified at any later time. So, as people care about quality, issues of interface compatibility are of minor importance. For instance, whether some document can be omitted or some addi- tional information has to be included, depends on the judgement of the people involved. Furthermore, in most cases other items are related to a result which is passed from one task to another. These items are passed implicitly, so this can not be checked with interface definitions known from programming languages. We argue that enforcement of interface issues should only be added for critical parts of the process when training and guidance are not sufficient (2.1.4). Experience at AT&T has revealed that developers demand that process complexity should be reduced and organized Why concepts of programming languages are not useful for PMLs Many PMLs are influenced by general purpose programming languages (PLs) and have similar computational models. We argue that PLs are not suitable for modeling process support because they are too complex, do not provide appropriate representations of the state of enactment, and because change is error-prone. Software programs contain many dependencies. Usually variables, rules, events, and the underlying data model have impact on large parts of the program. Traditional control flow programming isolates flows from one another, unless explicitly stated. Multi- threaded programs are complex to write and maintain. In programming languages, the state of execution is not accessible to the users of a program. Although debuggers can be used to view program execution, this is a single- user test situation. In contrast to this, changing the PSEE`s enactment state can jeopar- dize valuable persistent data or other user's work. During execution, change of control flow can be difficult because of many assump- tions and impact (5.3.4). In most PLs, it is not possible to change the type of a given instance, or to associate a new type with this instance. During process enactment, descriptions of instantiated processes have to be modified quite often, and the assign- ment of totally reworked process descriptions can happen more than once to a process instance. The use of interface definitions in PMLs is discussed in 5.1.2 and 5.2.1. These difficulties arise from transferring concepts from programming languages into PMLs and are solely caused by the chosen language. They are not due to the problem domain, i.e., software development. 5.2 Understanding Process Descriptions and Change 135 in a simple way [CL94]. Besides other measures taken, dozens of data flow diagrams were replaced by a single table containing the dependencies between tasks. Not considered: Special Data & Control Flow The discussion in 5.1.1 has shown that graphical data & control flow notations can restrict the freedom at the instance level. Thus, a process designer should not be forced to use such notations, but should apply them selectively. ADDD does not provide any constructs expressing data & control flow at the basic lan- guage level. Instead macro techniques have to be used similarly to APEL, where (graphical) representations of data & control flow are transformed into a set of trigger definitions. Not considered: multiple formalisms Process automation in ADDD is based solely on the event-trigger mechanism. Thus process models are easier to understand in comparison with approaches based on multiple formal- isms. The use of multiple formalisms seems tempting from the point of view of a process designer: he can express each process property with the most appropriate formalism. On the other hand, there may be methodological problems as some aspects can be expressed in sev- eral ways. Furthermore, there may be conceptual problems while understanding process enactment and change. Changing a process specified with multiple formalisms is discussed in the next section (see 5.3.3 below). Even if we introduced abstractions borrowed from other formalisms (e.g., temporal logic), their semantics should be expressed in terms of event-triggers in order to give the user a uni- form view of the system's behavior. Not considered: Computing Metrics, CSCW issues, Tool Integration ADDD treats tool integration separately, not as part of the process description (3.1.3). For instance in EPOS, tool invocation is modeled by task objects as well. Similarly, ADDD sup- ports the collection of process data (by relationships, in log files) but leaves the computation of metrics to other tools (e.g., Perl scripts) accessing this data. APEL directly supports the computation of metrics as part of the language. Other PSEEs aim to integrate and control CSCW tools in order to improve team coordination, e.g., during reviews (see page 62). 5.2.2 Modularization and Management of Process Descriptions Most PMLs use some interface paradigm and structure their descriptions into modules implementing these interfaces. As ADDD has no notion of task interfaces (see above), other kinds of modularization criteria have to be used. 136 5 Evaluation of the Concepts of ADDD Applying the Strategy Pattern for Process Management In addition to the organization of work, the task hierarchy is used to organize process descrip- tions, called policies (3.2.3). A policy can be assigned to each task (figure 5.5). This policy influences the work of this task and/or its subtasks as defined in 3.2.3 d); we call this the scope of a policy (3.2.3 b)). Beyond triggers, a policy contains process procedures and cus- tomization parameters and procedures, thus the multiple aspects are grouped and treated together. Triggers A B Triggers events of other processes C Triggers events = event propagation Figure 5.5: In ADDD, triggers are part of policies associated with tasks. A policy is instantiated when associated with a task1. The policy instance (parameters, installed triggers) is removed when the task is removed or a new policy is assigned. Besides its position in the task hierarchy, the characteristics of a task are determined by its policy. This eliminates the need for other mechanisms to adapt the behavior of tasks, for instance, there is no need to define subclasses of class Task. This approach is very similar to the Strategy pattern as defined in [Gamm95]. In the fol- lowing we cite [Gamm95] but replace the word "algorithm" by "process support": Intent: Define a family of process support (...) and make them interchangeable. Strategy lets the process support vary independently from the clients that use it. Also Known as: Policy ... 1. Note that a policy can be associated with many tasks. 5.2 Understanding Process Descriptions and Change 137 Structure: Context Strategy a Task abstract notion of a policy ConcreteStrategyA ConcreteStrategyB In the structure above taken from [Gamm95], we inserted annotations in regular font in order to point out the analogy: The Context of a strategy is the execution context of the associated task which is influenced by the policy. Our abstract notion of a policy is similar to the Strat- egy class while concrete strategies correspond to concrete policies which comply to this notion1. The ClearGuide approach is very similar to the above. In contrast to ADDD, ClearGuide associates activities with activity types which in turn refer to a process descriptions, i.e., there is the overhead/flexibility2 of a further indirection, the activity type. Modularization In ADDD, the scope of a policy implies an organizational scheme, i.e., the reasons for some effects can be located without searching all policy files. For instance, if someone looks for a particular automation rule which applies to the work of his current task, he has to inspect the policies of his task and its ancestor tasks. This organization scheme can also be used to reduce redundancy as common rules can be specified only once on a high level in the task hierarchy. Message broadcasting mechanism (e.g., ToolTalk [Juli94]) leaves the process designer without any methodology about how to organize triggers constraining the process3. He may define any event handler containing arbitrary kinds of triggers. 1. Compliance is not achieved by redefinition of methods as in an object-oriented language [Gamm95], but by overwriting parameter values and procedure implementations in an interpreted script language (Tcl). 2. depending on the point of view. Note that the Strategy pattern associates the strategy with the context instance, not with its type. 3. First of all, it has to be determined what kinds of trigger define a process and which do not (for instance, there may be triggers implementing a model-view-controller mechanism for updating user interfaces). There should not be a general mix of triggers defined for different purposes. After process triggers have been identified, one has to think about how to organize them in order to give the user a intuitive structure for trigger retrieval and understanding. 138 5 Evaluation of the Concepts of ADDD Management The task hierarchy also defines a structure for controlling policy change. Only the managers of a task or one of its parent tasks is allowed to (re)assign a policy to a task (3.1.1, 3.5.2). Further access restrictions can be defined by constraints on the "assign policy" event: for instance, managers of subtasks can be disabled to (re)assign policies, or policy assignment should only be possible for a particular manager, the process "guru". Similarly to this, Cle- arGuide permits the controlling of process change by rules. 5.3 Process Change during Enactment Process support needs to be changed during enactment, but, as discussed in sections 2.2 and 2.5.2 b), some challenges have to be mastered: * Process change should be performed in a save1 and user-friendly way. * Organizational units should have local autonomy for defining and adapting processes. When it comes to change, the strengths of ADDD are a) schema definition/change is kept to a minimum, b) the enactment state is represented in an object-oriented way and can be manipulated directly, c) the trigger paradigm is suitable for change (in particular, its robustness and the straight- forward semantics of change), and d) policies can be changed for each individual task ("local process autonomy") due to the use of the Strategy pattern and the notion of policy scope. 5.3.1 Schema Evolution In principle, schema evolution is not a research topic in the field of the software process. In a PSEE, schema evolution should be handled by the mechanisms of the underlying database system. This is the case in ADDD [Schi93] and other PSEEs, e.g., SPADE. Some PSEEs rely on proprietary DBMS, so their providers have to consider schema evolution as well (e.g., Adele, EPOS). In general, schema evolution can cause many problems and efforts; therefore it should be avoided if possible. PSEEs differ in aspects which in/decrease the likelihood of schema changes. For instance, if the customer has to define complex subsystems or functionality (like configuration man- agement, tasks, or agendas) on his own, he has to create a lot of schema information and may need several modifications until he has achieved the right solution. Some PSEEs store more 1. i.e., without jeopardizing the process or other processes, or raising some unrecoverable error. 5.3 Process Change during Enactment 139 information in the database than others. For instance, EPOS stores information about tool integration. Thus in case additional information about tools should be stored, the schema has to be modified. ADDD provides a schema which considers configuration management, tasks, and agen- das. Tool integration is handled by scripts, so change does not lead to schema modifications. If someone wants to store additional information, a schema change can be avoided by the use of "dynamic attributes": a list of name-value pairs can be associated with each object (tasks, versions, relationships). Attribute change can be controlled by constraints (3.2.3 b)). If any, only new classes for versions and relationships need to be defined (see 3.2.2). 5.3.2 Direct Manipulation of the Enactment State In ADDD, the enactment state is represented by objects (tasks, versions, relationships, poli- cies). Objects can be viewed, created, changed, and removed by the user interactively. The command interface for installation of process descriptions and for user performed adapta- tions is the same. Thus, * process descriptions are not compiled into some internal representation or data structure, * the state of enactment consists of objects which the user can browse interactively at the user interface, * the object-oriented data model ensures basic consistency of data, and * the user can inspect state and command histories regardless if installation/change has been performed (half) automatically or manually. Thus he is able to repair unwanted effects of process programs. Other PSEEs [e.g., SPADE, Endeavors, Adele] transform control or data flow from high level formalisms (some kind of nets) into data structures. Manipulating these data structures directly and without automatic consistency checking is rather low level and error prone. Therefore, specific views (editors) are required for process change. Such views are also present in ADDD; we argue that view construction is facilitated in ADDD, because consis- tency is implemented in the object model rather than in the views. 5.3.3 Semantics of Enactment and Change If different kinds of formalism are used, their interplay at runtime has to be specified. For instance, JIL [Sutt97] offers an event-trigger mechanism (it distinguishes between "reac- tions" and "exception handling") and allows the definition of some temporal constraints, e.g., sequences and possible parallel executions of (sub)tasks. Let us assume a task sequence (A; B; C;) and a situation where an instance of task B is currently executed: What are the effects if the sequence is changed to (C; B; A;)? Are the current instances of A and B aborted 140 5 Evaluation of the Concepts of ADDD and their effects undone? Or is B suspended and task C started automatically? Although this seems to be a trivial example, different interpretations of the change and of the current state (e.g., suppose B is almost completed and C is a trivial step) can lead to rather different con- sequences. Therefore if the PSEE already supports a paradigm (event-trigger), introducing another formalism which is totally independent raises questions of interoperability. For instance, if B is finished, are triggers executed, or should B be rolled back immediately? If event-trigger is the only underlying paradigm, it is clear that after a change execution continues on the current state of enactment until the next event occurs1. Assume this event is the end of task B. According to the new sequence (defined by triggers waiting for the end of tasks), task A has to be started. But starting A requires the completion of task C transi- tively. Here the user (or maybe some trigger) has to decide whether he wants * to start again with the new process, * to continue according to the old process (i.e., he practises local process autonomy, see 5.3.5), or * to choose some pragmatic solution (e.g., perform selective undo and/or redo of tasks). In this case the situation can be understood and handled without thinking about interopera- bility constraints or side effects between different formalisms. 5.3.4 Design for Change Programming of general event-condition-action (ECA) rules has to be done with great care ("Trigger programming" on page 67). All assumptions (e.g., existence and state of objects) have to be checked before the action is performed. But this effort is paid back when it comes to process change. Properly designed ECA rules are quite robust in case of process change and are likely to be reused in other process descriptions. Process descriptions with explicit defined control flow are likely to contain implicit assumptions about the previous sequence of process steps. Similarly to programming lan- guages, one statement possibly depends on all the previous statements. Some PMLs offer very elegant ways of describing sequential aspects, but this may lead to processes which can only be changed with great care. Compared to the interface paradigm, event-triggers are much easier to change. While interfaces and their implementations call each other, triggers are defined independently (fig- ure 5.6). 1. Of course, the change itself can be an event. 5.3 Process Change during Enactment 141 actions triggers (a) (b) events Figure 5.6: Triggers depend far less on one another (a) than process fragments do express- ing interfaces and control flows explicitly (b). 5.3.5 Local Process Autonomy As in the Strategy pattern discussed above, policies can be changed and new policies can be associated with each individual task. In contrast to ADDD and ClearGuide, EPOS achieves local process autonomy similarly to the Prototype pattern [Gamm95]: a new project is created by virtually cloning a task struc- ture and the type hierarchy, so that changes can be made specifically for this project. Process instantiation in ADDD also includes the creation of a task structure (see 3.2.3 c)), thus the main difference is the capture of process information in a type hierarchy instead of using pol- icies. We argue from our own experience that, even if "hard" schema modifications do not occur, the understanding and change of object-oriented type hierarchies are difficult and error prone, especially when performed during enactment. A strategy can be replaced easily while the replacement of a type hierarchy could have an enormous impact. The difference between ADDD and ClearGuide, is the absence of scope in ClearGuide rules. In ADDD, events caused by a particular task or its subtasks can be observed by triggers (3.2.3 b)). In ClearGuide it can not be determined which activity has caused an event. Instead, rules can react on events on particular objects, instances of types, objects contained in another object, or all objects contained in a particular VOB (virtual object base). Interest in particular objects, types, or VOBs is implemented by creating guard relationships. Thus it is hard to define rules which only apply to the work performed by a particular activity. It is likely that rules defined for different activities apply to the same event, thus causing redun- dant actions. Furthermore, events processed by the rule set of an activity are also processed by the rule sets of its parent activities. Therefore, the set of objects guarded by an activity is extended by the guarded objects of its sub activities. This may again cause rules to match events which were not intended to be matched by the process designer. Thus, the impact of process definition and change is much harder to determine compared to ADDD (see 3.5.3, and 5.1.4). 142 5 Evaluation of the Concepts of ADDD 5.4 Conclusions Throughout this chapter, we have shown that the ADDD approach leads to process descrip- tions which offer more support than many existing PSEEs can offer, and which are shorter and much easier to change than the process descriptions written in other PMLs. ADDD is based on an event-trigger paradigm which allows the expression of powerful process support. From the process designer's point of view, the power depends on the exist- ence of a predefined infrastructure containing many process entities (tasks, users, relation- ships, configurations, versions, etc.) and offering a comprehensive set of events. We empha- size the use of object-oriented instantiation, but strongly recommend reducing the definition of new classes to a minimum in order to reduce complexity for process understanding and change. We have demonstrated that a reasonable process, the ISPW9 scenario, can be supported by ADDD and that the description of this process support can be formulated in a compact and comprehensive way. The main reasons for this success are * the use of task-patterns within trigger definitions, allowing to define the impact on other tasks more precisely, and * the absence of secondary PML concepts which could add more complexity to process descriptions without equivalent pay back in support. In ADDD, the enactment state and process descriptions can be changed dynamically due to the use of object-oriented technology and event-triggers. Event-triggers force the process designer to design process descriptions for change. The semantics of change are simple because the event-trigger paradigm does not consider previous events or process steps. The units of change are policy files. We assign policies to tasks similar to the Strategy pattern, Installation and change of process support are performed as a single operation. There are not any consistency problems like those which might occur during update of database schemas, Petri-Nets, or conventional computer programs during their execution. The scope of policy triggers enables the limitation of the impact of process support and change to certain tasks in the task hierarchy. --- But will the ADDD approach be applicable in an industrial setting? Although we have not used ADDD in any project, we claim that the concepts applicable for supporting the software processes of a company. We emphasize the analogies between ADDD and ClearGuide. Both use the event-trigger paradigm to define process support, both let the user define processes in an incremental way (see "Supporting partial known Processes in an incremental way" on page 45), and both support change similar to the Strategy pattern as discussed above. As a conceptual advantage of ADDD, we claim that by using task-patterns the user can control the impact of ADDD triggers more favorably as compared to the ones in ClearGuide. Clear- Guide has been just released in April 1997, so there is not a lot of industrial experience out- 5.4 Conclusions 143 side Rational as yet. But the company has made large investments in the development and marketing of ClearGuide, so there is much confidence that its concepts are sound for indus- trial use. 144 5 Evaluation of the Concepts of ADDD CHAPTER 6 Conclusions and Future Trends Software processes differ from business processes and they do not comply with computa- tional models known from programming languages. Thus, software processes can not be supported by simply applying existing paradigms, languages, or environments. Specialized paradigms, languages, and environments have to be found for effective software process sup- port implementation. The properties of PMLs and PSEEs have to be chosen carefully in order to achieve powerful process support which can be understood by all participants and which can be improved incrementally during enactment. In this thesis, we have introduced and evaluated the concepts of a PSEE named ADDD. Evaluation has been performed by implementing support for the ISPW9 scenario and by comparing concepts with those of other PSEEs/PMLs in the field. 6.1 Main Features From the user's point of view, it is important that ADDD provides comprehensive process support which is easy to install, to adapt, and to change. The main features of ADDD are 1. Incremental Installation of Process Support First of all, there is a powerful infrastructure consisting of services which provide initial sup- port even when the users have not specified any process support as yet. This way the infra- structure lowers the entry barrier for a company to introduce process technology. In our opin- ion, the used terms and concepts (e.g., the semantics of the task hierarchy and the capabilities 146 6 Conclusions and Future Trends of managers) are concrete enough for easy use and more appropriate than those in other PSEEs. Secondly, ADDD's PML is based on a powerful process formalism (event-trigger) which enables the user to specify effective process support within a few lines. The power of this PML stems from a) the event-trigger paradigma itself, b) its adaptation to the process domain by offering appropriate abstractions, and c) the comprehensive infrastructure providing a rich set of events and appropriate (re)actions. Thirdly, beside enlarging the capabilities of the users, the amount of possible process steps can be constraint. Whenever a process step has shown to cause problems when occurring in a specific situation, it can be restricted by a rule. For example, the capabilities of certain user roles can be detailed this way. Note that the power of constraints depend on the power of the functionality introduced by the services and the PML (i.e., if there is nothing to carve, a chisel becomes useless). The users can add more process support and restrict unwanted effects any time. This way process support can be modeled during enactment. 2. Adaptation of Process Support to task-specific Requirements The problem to be solved, the used methodologies and tools, and the skills and working styles of developers vary a lot. These points have to be considered and exploited in order to provide effective process support. Thus, task-specific support can be more effective com- pared to unspecific process support. ADDD applies the Strategy pattern in order to customize process support in a task-specific way. A policy influences both the behavior of services and client programs. The event-trig- ger semantics has been specialized in order to fit into the policy paradigm. It is easy to write rules which support only those tasks which are influenced by the policy. The policy paradigm has shown to be also a good structure for designing and managing process support. It is easier to write rules for concrete situations rather than writing general rules. And it is easier to find and change rules which apply for certain tasks. 3. Change of Process Support during Enactment Dynamic change of process support is a mayor challenge (see section 1.2). Claiming that process support can be changed in principle is not the point. It must be possible to handle change and errors in an environment which has to be dependable. First of all, the semantics of change are quite simple when using the event-trigger para- digm. After a trigger is installed or removed, the changed rule set is applied to the next event. Compared for instance with imperative programming, the event-trigger paradigm forces no inspection of the current state, the execution history, nor any side effects with other state- 6.2 Enabling Concepts 147 ments in case a rule is changed. Such considerations have to be made only due to the process to be supported, but they are not induced by the language paradigm. Controlling the impact of a (change of a) rule (This is usually a weakness of rule-based systems) is supported by the trigger syntax. First, many triggers can be written down without writing any procedures or complex predicates. Second, even in case procedures are used, the impact of a trigger is obvious. If the keywords SELF or PARENT are used, it can be assumed that the effects of the trigger apply only in this context. But even if someone tries to influence other processes, the triggered actions only have the permissions of a manager of the task associated with the policy. Process support is changed by performing simple operations. Associating a new/updated policy with a task can be done any time during enactment. This operation requires manage- ment permissions and can be further restricted by constraints. In case of complex processes, it is easy to set up a test environment for evaluation (due to impact control, see above). The state of enactment can be manipulated by the user directly in order to complete or compensate the effects of insufficient process programs. The ADDD services provide a sound object-oriented interface which ensures basic consistency. 6.2 Enabling Concepts The features above are enabled by a number of concepts on the technical level. The first two concepts are only available in ADDD. The third one has been realized independently in Cle- arGuide and ADDD without knowing from each other. The last two concepts are also present in the Adele PSEE and to some extent in ClearGuide. * The use of pattern matching on task pathnames within trigger definitions. This way it is easy to restrict a trigger on events caused by or occurred on specific tasks. * Execution contexts of commands and triggered actions. Firstly, the environment distin- guishes between the execution contexts of users working on different tasks and uses this information, e.g., for access control. Secondly, different process support is provided depending on the execution context. For instance, user interfaces are selected in a task- specific way. Triggered actions are executed within the execution context of the task asso- ciated with the trigger's policy. * A concept which is similar to the Strategy pattern [Gamm95] is used to assign policies to tasks and to change them any time during enactment. This mechanism (also supported in the recently released1 ClearGuide product) enables adding/changing process support dur- ing software development. 1. in April 1997 148 6 Conclusions and Future Trends * In order to program event-trigger systems properly, it is important to consider both com- mit dependencies and execution scopes (as known from active databases, see page 66). In particular, the implementation of constraints require triggering command to be commit dependent on the triggered constraint checks (see 5.1.3). Many approaches just use mes- sage broadcasting for event propagation. * The power of the infrastructure depends on the integration of configuration management services. This integration requires CM objects to be accessed and controlled by the pro- cess engine. In particular, CM objects should be locked, events on CM objects should be observed, and the CM database has to be integrated with the transaction concept in order to abort commands properly (see 5.1.5). While the above concepts are mandatory in order to provide the features of ADDD, there are concepts which are just "good to have". One of them is the use of task-specific checklists (see 3.1.1). Checklists seem to be an effective way of collecting information and assessing/ controlling tasks. Among the PSEEs which are investigated in chapter 2, ADDD is the only one which supports checklists. 6.3 Lessons learned Our work on this topic has not only revealed the concepts which are essential for effective process support. By looking at other approaches and by evaluating our own experiences, we had to learn to exclude concepts which hinder incremental installation, adaptation, and change of process support. * Paradigms known from programming languages, especially the separation between inter- faces and implementation, seem not mandatory to implement these processes nor to reduce the complexity of process programs. Most of them are obstacles when it comes to change during execution (see 5.2.1). * In case activities and the workflow between them have to be determined dynamically, cur- rent graphical notations (e.g. APEL) and, in particular, net-based approaches are too restrictive (see 5.1.1). * Any extension of the infrastructure (in particular, the definition of new terms) requires great care and effort both on the conceptual and technical level. In contrast to other object- oriented approaches (e.g. Adele), we recommend defining as few classes as possible. In ADDD, process support can be defined by other means which are more robust in case of change. * The main difference between event-trigger approaches and rule-based systems is that the latter exploits side effects between rules (rule chaining), while the former does not. We mean that during design of trigger sets, side effects should avoided as much as possible. 6.4 Further Evaluation 149 Side effects make the behavior of the process program difficult to understand, and enlarge the likelihood of errors in a way which seems not be acceptable for a PSEE. * Some PSEEs have been designed during times when it was common sense to store all information using a single database schema. Such schemas turned out to become quite big, containing complex dependencies, and are therefore difficult to change. We started with such an database approach, but then began to exclude certain information (e.g. data about tool integration) from the schema. These things are now configured within policies. 6.4 Further Evaluation This thesis and in particular the summary above gives evidence that the developed concepts contribute to fulfill the requirements listed in section 1.2. But it is not shown whether the requirements can be satisfied in total by applying these concepts. For instance, the policy concept together with the concept of execution contexts permits task-specific process sup- port, but we could not prove (although we strongly believe this) that the support can always be formulated task-specific enough and that no other concept is needed to meet this goal. The implementation of the concepts within the ADDD PSEE gives the opportunity to demonstrate them and to perform experiments which allow to assess the concepts. The implementation of process support for the ISPW9 scenario gives an impression how the con- cepts can be applied. The use of ADDD in an industrial software project could raise the con- fidence in the concepts. Such an experiment is difficult to install, because project leaders are reluctant to bear the risk using (possibly immature) research prototypes, like ADDD. Com- pared to a single-user development tool (e.g. a code analyzer), the use of a PSEE is a major commitment, because this requires training efforts for all team members and the project highly depends on the availability of the PSEE. A more feasible way of showing the maturity of the concepts is to evaluate similar PSEEs within industrial projects. For instance, ClearGuide combines the use of event-condition- action rules with the Strategy pattern in a way similar to ADDD (see page 141 and page 142). But of course concepts which are not implemented in other PSEEs can not be assessed this way. Evaluation can also be performed in an academic context. For instance, a group of several students can perform a programming task using ADDD. The goal of the evaluation could be the assessment of requirement R3, i.e., how understandable and changeable are process pro- grams. A possible metric is the ratio of self-induced errors (i.e., the errors which are induced during the correction of another error) to the total number of errors. This ratio should be con- siderable smaller than the self-induced error ratio of the programming (using, e.g., Java) per- formed in the same group by the same persons. It is also possible to perform similar experi- 150 6 Conclusions and Future Trends ments both in ADDD and another PSEE in order to compare their concepts, but this would require significant efforts. 6.5 Future Trends Beyond assessing the concepts developed so far, we see further challenges. First of all, the requirement R5 (analysis & visualization of process performance, see page 7) is not satisfied. The problem is twofold: a) the user should be given an intuitive impression of how particular process support statements influence his work, and b) such insights should be obtained by some analysis before the support is installed in order to eliminate errors in advance. Currently ADDD keeps traces of event executions in log files for debugging purposes. Each notification displays the notification rule, which has triggered it, and the policy file in which the rule is contained. But this is only low level information which does not give any overview. The goal should be an intuitive picture of actions performed by several users and rules, and of their interplay. The picture should not only show historical information but also scenarios which are likely to occur. It has been mentioned several times, that erroneous process support should be detected as soon as possible because of its high impact on the work of many developers. Analysis and simulation of event-based process programs are difficult, because the information about under which conditions events are raised and how actions are performed is hidden in the pro- gram code. One approach could be the extraction of a simplified execution model with the help of the user. Such a model can be analyzed and can provide important insights, if the underlying assumptions were made carefully. Another challenge is the development of a methodology for process support implementa- tion and assessment. Such methodologies exist for developing and assessing software pro- cesses, but not for implementation of process support. In section 3.4, we have described our initial approach which can be further extended. We envision to obtain appropriate support for a particular process by (at least) two steps: first, a particular process is analyzed and a set of process patterns is identified (similar to those in [Copl95]). In the second step, the selected patterns are mapped to task-networks selected from the process library. These task networks have to be configured and then interconnected in order to support the process. The users need guidelines to perform these steps and to assess the results. But of course there will be differ- ent (sub)methodologies depending on the aspect (e.g. cooperation) to support and on the properties which are desired for the process support. Design of process support, analysis of process programs, and visualization of process per- formance are of great importance for commercial PSEEs, especially those following the event-trigger paradigm. For the future we expect that the providers of CM technology will also supply commercial software process support technology. This is because CM is of great 6.5 Future Trends 151 importance for software development (much more than in business applications) and existing CM systems can be used as the underlying infrastructure for process technology as discussed above. Existing CM providers are well established in the marketplace and offer their custom- ers a smooth transition to process technology, so it will be difficult for new providers to inter- fere. Literature [Ambr97] Vincenzo Ambriola, Reidar Conradi, and Alfonso Fuggetta. "Assessing pro- cess-centered software engineering environments." ACM Transactions on Software Engineering Methodology, 6(3), July 1997. [Balz94] Robert Balzer. "Process definition formalism maturity levels." In C. Ghezzi, editor, Proceedings of the 9th International Software Process Workshop, pages 132­133. IEEE Computer Society Press, October 1994. [Band93a] Sergio C. Bandinelli, Alfonso Fuggetta, and Carlo Ghezzi. "Software process model evolution in the SPADE environment." IEEE Transactions on Soft- ware Engineering, 19(12):1128­1144, December 1993. [Band93b] Sergio C. Bandinelli, Alfonso Fuggetta, and Sandro Grigolli. "Process Mod- eling in­the­large with SLANG." In Leon Osterweil, editor, Proceedings of the Second International Conference on the Software Process, pages 75­83. IEEE Computer Society Press, February 1993. [Band94] Sergio Bandinelli, Elisabetta Di Nitto, Alfonso Fuggetta, and Luigi Lavazza. "Coupled vs. decoupled user interaction environments in PSEEs." In C. Ghezzi, editor, Proceedings of the 9th International Software Process Workshop, pages 50­52. IEEE Computer Society Press, October 1994. [Band95] Sergio Bandinelli, Alfonso Fuggetta, Luigi Lavazza, Maurizio Loi, and Gian Pietro Picco. "Modeling and improving an industrial software process." IEEE Transactions on Software Engineering, 21(5):440­454, May 1995. 153 [Band96] Sergio Bandinelli, Elisabetta Di Nitto, and Alfonso Fuggetta. "Supporting cooperation in the SPADE-1 environment." IEEE Transactions on Software Engineering, 22(12):841­865, December 1996. [Barg96] Naser S. Bargouthi, Wolfgang Emmerich, Wilhelm Schäfer, and Andrea Skarra. "Information management in process-centered software engineering environments." In Alfonso Fuggetta and Alexander Wolf, editors, Software Process. John Wiley & Sons, 1996. [Basi94] Victor R. Basili, Gianluigi Caldiera, and H. Dieter Rombach. "Goal Question Metric Paradigm." In John J. Marciniak, editor, Encyclopedia of Software Engineering, volume 1, pages 528­532. John Wiley & Sons, 1994. [Basi96] Victor R. Basili, Lionel Briand, Steven Condon, Yong me Kim, Walcelio Melo, and Jon D. Valett. "Understanding and predicting the process of soft- ware maintenance releases." In Proceedings of the 18th International Confer- ence on Software Engineering, pages 464­474. IEEE Computer Society Press, March 1996. [Berl92] H. Ronald Berlack. Software Configuration Management. John Wiley and Sons, 1992. [Berz95] Valdis Berzins. Software Merging and Slicing. IEEE Computer Society Press, 1995. [Bolc96] Gregory Bolcer and Richard Taylor. "Endeavors: a process system integration infrastructure." In Proceedings of the 4th International Conference on the Software Process, pages 76 ­ 89. IEEE Computer Society Press, 1996. http:/ /www.ics.uci.edu/pub/endeavors/. [Bruc96] Tilman Bruckhaus, Nazim H. Madhavji, Ingrid Janssen, and John Henshaw. "The Impact of Tools on Software Productivity." IEEE Software, 13(5):29­ 38, September 1996. [BS95] Israel Ben-Shaul and Gail Kaiser. A Paradigm for Decentralized Process Modeling. Kluwer, 1995. [Buck92] Fletcher J. Buckley. Implementing Configuration Management: Hardware, Software and Firmware. IEEE Computer Society Press, 1992. [Buff95] Jim Buffenbarger. "Syntactic software merging." In Jacky Estublier, editor, Software Configuration Management: Selected Papers of the ICSE SCM-4 and SCM-5 Workshops, pages 153­172. Lecture Notes in Computer Science 1005, Springer, October 1995. [Caga90] Martin R. Cagan. "The HP softbench environment architecture for a new gen- eration of software tools." Hewlett-Packard Journal, 41(3):36­47, June 1990. 154 [Caga95] Martin Cagan and Alan Wright. "Untangling configuration management." In Jacky Estublier, editor, Software Configuration Management: Selected Papers of the ICSE SCM-4 and SCM-5 Workshops, pages 35­52. Lecture Notes in Computer Science 1005, Springer, October 1995. [Cain93] Brendan G. Cain and James O. Coplien. "A role-based empirical process modeling environment." In Proceedings of the Second International Confer- ence on the Software Process, pages 125­133. IEEE Computer Society Press, February 1993. [Chen76] Peter P. Chen. "The Entity-Relationship Model - toward a unified view of data." ACM Transactions on Database Systems, 1(1):9­36, 1976. [Chri95] Alan M. Christie. Software Process Automation, The Technology and Its Adoption. Springer­Verlag, 1995. [CL94] Kathleen Culver-Lozo. "The software process from the developer's perspec- tive: a case study on improving process usability." In C. Ghezzi, editor, Pro- ceedings of the 9th International Software Process Workshop, pages 67­69. IEEE Computer Society Press, October 1994. [Conr92] R. Conradi, M. L. Jaccheri, C. Mazzi, M. N. Nguyen, and A. Aarsten. "Design, use and implementation of SPELL, a language for software process modelling and evolution." In J. C. Derniame, editor, Proceedings of the 2nd European Workshop on Software Process Technology, pages 167­177. Lecture Notes in Computer Science 635, Springer, September 1992. [Conr94] R. Conradi, M. Hagaseth, J. O. Larsen, M. N. Nguyen, B. P. Munch, P. H. Westby, W. Zhu, M. L. Jaccheri, and C. Liu. "EPOS: Object-oriented coop- erative process modeling." In B. Nuseibeh, A. Finkelstein, and J. Kramer, editors, Software Process Modelling and Technology, pages 33­70. John Wiley and Sons, 1994. [Copl95] James O. Coplien. "A generative development - process pattern language." In J. Coplien and D. Schmidt, editors, Pattern Languages of Program Design, pages 183­237. Addison-Wesley, 1995. [Dami96] Samir Dami and Jacky Estublier. APEL v3 Specifications. LSR/IMAG, Grenoble, France, February 1996. [Dami98] Samir Dami, Jacky Estublier, and Mahfoud Amiour. "APEL: A graphical yet executable formalism for process modeling." Automated Software Engineer- ing, 5(1):61­96, January 1998. 155 [Daya90] Umeshwar Dayal, Meichun Hsu, and Rivka Ladin. "Organizing long-running activities with triggers and transactions." In Hector Garcia-Molina and H. V. Jagadish, editors, Proceedings of the 1990 ACM SIGMOD International Con- ference on Management of Data, pages 204­214, May 1990. [Daya91] Umeshwar Dayal, Meichun Hsu, and Rivka Ladin. "A transactional model for long-running activities." In Proceedings of the 17th Conference on Very Large Databases. Morgan Kaufmann, September 1991. [Deit90] Wolfgang Deiters and Volker Gruhn. "Managing software processes in the environment MELMAC." ACM SIGSOFT Software Engineering Notes, 15(6):193­205, December 1990. [Delm93] Sven Delmas. "XF - design and implementation of a programming environ- ment for interactive construction of graphical user interfaces." Master's the- sis, Technische Universität Berlin, Germany, March 1993. [Dows94] Mark Dowson and Christer Fernström. "Towards requirements for enactment mechanisms." In Brian C. Warboys, editor, Proceedings of the Third Euro- pean Workshop on Software Process Technology, pages 90­106. Lecture Notes in Computer Science Nr. 772, Springer­Verlag, February 1994. [Emme91] Wolfgang Emmerich and Volker Gruhn. "FUNSOFT nets: A petri-net based software process modeling language." In Proceedings of the 6th International Workshop on Software Specification and Design, Como, Italy, September 1991. [Estu94] Jacky Estublier and Rubby Casallas. "The Adele configuration manager." In Walter Tichy, editor, Configuration Management, pages 99­133. John Wiley and Sons, 1994. [Estu96] Jacky Estublier. "Work space management in software engineering environ- ments." In Ian Sommerville, editor, Software configuration management: ICSE 96 SCM-6 Workshop, pages 127­138. Lecture Notes in Computer Sci- ence 1167, Springer, 1996. [Estu97] Jacky Estublier, Samir Dami, and Mahfoud Amiour. "High level process modeling for SCM systems." In Software configuration management: ICSE 97 SCM-7 Workshop, pages 81­97. Lecture Notes in Computer Science 1235, Springer, May 1997. [Euro93] European Computer Manufacturers Association (ECMA). "Portable common tool environment: Abstract specification (standard ECMA-149)," June 1993. 156 [Feil93] Peter H. Feiler and Watts S. Humphrey. "Software process development and enactment: Concepts and definitions." In Proceedings of the Second Interna- tional Conference on the Software Process, pages 28­40. IEEE Computer Society Press, February 1993. [Feld79] Stuart I. Feldman. "Make ­ a program for maintaining computer programs." Software­Practice and Experience, 9:255­265, 1979. [Fern93] Christer Fernström. "Process WEAVER: Adding process support to UNIX." In Proceedings of the Second International Conference on the Software Pro- cess, pages 12­26. IEEE Computer Society Press, February 1993. [Fern97] Christer Fernström. "Private communication", July 1997. [Fugg97] Alfonso Fuggetta. "Private communication", April 1997. [Gamm95] Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides. Design Patterns. Addison Wesley, 1995. [Garg96] Pankaj K. Garg and Mehdi Jazayeri. "Process-centered software engineering environments: A grand tour." In Alfonso Fuggetta and Alexander Wolf, edi- tors, Software Process. John Wiley & Sons, 1996. [Geha91] N. H. Gehani and H. V. Jagadish. "Ode as an active database: Constraints and triggers." In Proceedings of the 17th Conference on Very Large Databases. Morgan Kaufmann, September 1991. [Gemi94] Cap Gemini. PROCESS WEAVER User's Manual, Version PW 2.0, chapter 8, The Activity Instance Manager. Cap Gemini Sogeti, 1994. http:// www1.cern.ch/PTTOOL/ProcessWeaver/. [Gemi95] Cap Gemini. PROCESS WEAVER General Information Manual, Version PW 2.1. Cap Gemini Sogeti, 1995. http://webflow.cginn.cgs.fr:4747/PW. [Graw95a] Günter Graw and Volker Gruhn. "Distributed modelling and distributed enac- tion of business processes." In W. Schäfer and P. Botella, editors, Proceed- ings of the 5th European Software Engineering Conference, pages 8­27. Lecture Notes in Computer Science 989, Springer, September 1995. [Graw95b] Günter Graw and Volker Gruhn. "Process management in-the-many." In W. Schäfer, editor, Proceedings of the 4th European Workshop on Software Process Technology, pages 163­178. Lecture Notes in Computer Science 772, Springer, April 1995. [Gruh95] Volker Gruhn and Stefan Wolf. "Software process improvement by business process orientation." Software Process­Improvement and Practice, Pilot Issue:49­56, August 1995. 157 [Gruh96] Volker Gruhn. "Configuration management support for software process models." In Carlo Montangero, editor, Proceedings of the 5th European Workshop on Software Process Technology, pages 132­136. Lecture Notes in Computer Science 1149, Springer, October 1996. [Hare88] David Harel. "On visual formalisms." Communications of the ACM, 31(5), May 1988. [Heim96] Peter Heimann, Gregor Joeris, Carl-Arndt Krapp, and Bernhard Westfechtel. "DYNAMITE: Dynamic task nets for software process management." In Pro- ceedings of the 18th International Conference on Software Engineering, pages 331­341. IEEE Computer Society Press, March 1996. [Heim97] Peter Heimann, Carl-Arndt Krapp, and Bernhard Westfechtel. "An environ- ment for managing software development processes." In Proceedings of the 8th Conference on Software Engineering Environments, pages 101­109. IEEE Computer Society Press, April 1997. [Hito97] Arthur S. Hitomi, Gregory Alan Bolcer, and Richard N. Taylor. "Endeavors: A process system infrastructure." In Proceedings of the 19th International Conference on Software Engineering, pages 598­599. ACM Press, May 1997. [Hunt96] James J. Hunt, Kiem-Phong Vo, and Walter F. Tichy. "An empirical study of delta algorithms." In Ian Sommerville, editor, Software configuration man- agement: ICSE 96 SCM-6 Workshop, pages 49­66. Lecture Notes in Com- puter Science 1167, Springer, 1996. [Inte87] International Organization for Standardization. ISO 9001: Quality systems ­ Model for quality assurance in design/development, production, installation and servicing. Geneva, Switzerland, 1987. [Joer97] Gregor Joeris. "Change management needs integrated process and configura- tion management." In M. Jazayeri and H. Schauer, editors, Proceedings of the 6th European Software Engineering Conference, pages 125­141. Lecture Notes in Computer Science 1013, Springer, September 1997. [Juli94] Astrid M Julienne and Brian Holtz. ToolTalk and open protocols, inter-appli- cation communication. Englewood Cliffs, 1994. [Junk95] Gerald Junkermann. "A dedicated process design language based on EER- models, Statecharts and tables." In Proceedings of the 7th International Con- ference on Software Engineering and Knowledge Engineering, pages 487­ 496, June 1995. 158 [Kais94] Gail E. Kaiser, Israel Z. Ben-Shaul, George T. Heineman, and W. Marrero. "Process evolution for constraint-enforcing environments." Technical Report Technical Report CUCS-047-92, Columbia University, 1994. [Kell90] Marc I. Kellner, Peter H. Feiler, Anthony Finkelstein, Takuya Katayama, Leon J. Osterweil, Maria H. Penedo, and H. Dieter Rombach. "Software pro- cess modeling example problem." In Takuya Katayama, editor, Proceedings of the Sixth International Software Process Workshop, pages 19­29. IEEE Computer Society Press, October 1990. [Kobi90] Hans-Ulrich Kobialka. "Configuration editing, generation and test within working contexts." Proceedings of ACM SIGSOFT '90: Fourth Symposium on Software Development Environments, ACM SIGSOFT Software Engineer- ing Notes, 15(6):183­172, December 1990. [Kobi93a] Hans-Ulrich Kobialka and Carsten Meyke. "Configurations are versions, too." In Proceedings of the 4th International Workshop on Software Config- uration Management (Preprint), pages 156­164, Baltimore, Maryland, May 1993. [Kobi93b] Hans-Ulrich Kobialka and Carsten Meyke. "Views on an object-oriented soft- ware engineering environment." In H-Y. Lee, T.F. Reid, and S. Jarzabek, edi- tors, Proceedings of the Sixth International Workshop on Computer-Aided Software Engineering, pages 338­347. IEEE Computer Society Press, July 1993. [Kobi95] Hans-Ulrich Kobialka and Alla Gnedina. "Customizing dynamics in configu- ration management systems." In 2nd International Conference on Concurrent Engineering, pages 557­564, August 1995. [Lebl94] David B. Leblang. "The CM challenge: Configuration management that works." In Walter Tichy, editor, Configuration Management, pages 1­38. John Wiley and Sons, 1994. [Lebl97] David B. Leblang. "Managing the software development process with Clear- Guide." In Software configuration management: ICSE 97 SCM-7 Workshop, pages 66­80. Lecture Notes in Computer Science 1235, Springer, May 1997. [Lehm87] M. M. Lehman. "Process models, process programs, programming support." In Proceedings of the 9th International Conference on Software Engineering, pages 14­16. IEEE Computer Society Press, March 1987. [Lonc94] Jacques Lonchamp. "An assessment exercise." In B. Nuseibeh, A. Finkelstein, and J. Kramer, editors, Software Process Modelling and Tech- nology, pages 335­356. John Wiley and Sons, 1994. 159 [Neum96] Olaf Neumann, Sabine Sachweh, and Wilhelm Schäfer. "A high-level object- oriented specification language for configuration management and tool inte- gration." In Carlo Montangero, editor, Proceedings of the 5th European Workshop on Software Process Technology, pages 137­143. Lecture Notes in Computer Science 1149, Springer, October 1996. [Oste87] Leon Osterweil. "Software processes are software too." In Proceedings of the Ninth International Conference on Software Engineering, pages 2­13. IEEE Computer Society Press, 1987. [Oste97] Leon J. Osterweil. "Software processes are software too, revisited." In Pro- ceedings of the 19th International Conference on Software Engineering, pages 540­548. ACM Press, May 1997. http://laser.cs.umass.edu/abstracts/ process.html. [Oust94] John K. Ousterhout. Tcl and the Tk Toolkit. Addison Wesley, 1994. [Paul95] Mark C. Paulk. "The evolution of the SEI's Capability Maturity Model for software." Software Process­Improvement and Practice, 1(1):3­15, August 1995. [Pene94a] Maria H. Penedo. "ISPW9 Process Demonstrations Summary." In C. Ghezzi, editor, Proceedings of the 9th International Software Process Workshop, pages 19­32. IEEE Computer Society Press, October 1994. [Pene94b] Maria H. Penedo. "Life-cycle (sub) process scenario." In C. Ghezzi, editor, Proceedings of the 9th International Software Process Workshop, pages 141­143. IEEE Computer Society Press, October 1994. [Perr94] Dewayne E. Perry and Alexander L. Wolf. "Summary of session 1: People, processes, and practice." In C. Ghezzi, editor, Proceedings of the 9th International Software Process Workshop, pages 2­4. IEEE Computer Society Press, October 1994. [Popo95] Steven S. Popovich and Gail E. Kaiser. "Integrating an existing environment with a rule-based process server." Technical Report CUCS-004-95, Columbia University Department of Computer Science, August 1995. ftp:// ftp.psl.cs.columbia.edu/pub/psl/INDEX.html. [Pure97] PureAtria. ClearGuide Process Designer's Manual Release 3.0.2, Unix edi- tion. PureAtria, Lexington, Massachusetts 02173, March 1997. [Reic91] Christoph Reichenberger. "Delta storage for arbitrary non-text files." In Peter H. Feiler, editor, Proceedings of the 3rd International Workshop on Software Configuration Management, pages 144­152. IEEE Computer Soci- ety Press, June 1991. 160 [Reis90] Steven P. Reiss. "Connecting tools using message passing in the field envi- ronment." IEEE Software, 7(4):57­66, July 1990. [Rigg95] William Rigg, Clive Burrows, and Pat Ingram. Ovum Evaluates: Configura- tion Management Tools. Ovum Ltd., 1 Mortimer Street, London W1N 7RH, England, 1995. [Roch75] Marc J. Rochkind. "The source code control system." ACM Transactions on Software Engineering and Methodology, SE-1(4):364­370, December 1975. [Romb95] H. Dieter Rombach and Martin Verlage. "Directions in software process research." In Marvin V. Zelkowitz, editor, Advances in Computers, vol. 41, pages 1­63. Academic Press, 1995. [Rumb91] James Rumbaugh, Michael Blaha, William Premerlani, Frederick Eddy, and William Lorensen. Object-Oriented Modeling and Design. Prentice Hall, 1991. [Schi93] Bernhard Schiefer. Eine Umgebung zur Unterstützung von Schemaänderun- gen und Sichten in objektorientierten Datenbanksystemen. PhD thesis, Uni- versität Karlsruhe, Fakultät für Informatik, FZI Forschungszentrum Informa- tik, Haid-und-Neu-Str. 10­14, D-76131 Karlsruhe, Germany, December 1993. [Simo95] Eric Simon and Angelika Kotz-Dittrich. "Promises and realities of active database systems." In U. Dayal, P. Gray, and S. Nishio, editors, VLDB '95: Proceedings of the 21st International Conference on Very Large Data Bases, pages 642­653. Morgan Kaufmann, 1995. [Soft97] Softlab. Enabler Overview, Release 1.0. Softlab GmbH, Zamdorfer Straße 120, 81677 München, Germany, February 1997. http://www.softlabna.com/. [Stro93] Bjarne Stroustrup. The C++ Programming Language. Addison Wesley, sec- ond edition, 1993. [Sutt97] Stanley M. Sutton and Leon J. Osterweil. "The design of a next-generation process language." Technical Report CMPSCI 96-30, revised version, Uni- versity of Massachusetts, Department of Computer Science, January 1997. http://laser.cs.umass.edu/abstracts/process.html. [Tarr93] Peri Tarr and Lori A. Clark. "PLEIADES: An object management system for software engineering environments." In David Notkin, editor, Proceedings of the First ACM SIGSOFT Symposium on the Foundations of Software Engi- neering, pages 56­70. ACM Press, December 1993. Appeared as ACM SIG- SOFT Software Engineering Notes 18(5), December 1993. 161 [Theo93] Dietmar Theobald. "Interfacing an object-oriented database system from Tcl." In Proceedings of the first international Tcl/Tk Workshop, pages 45­49, Berkeley, CA, June 1993. University of California, Berkeley. [Tich85] Walter Tichy. "RCS­a system for version control." Software­Practice and Experience, 15(7):637­654, July 1985. [Uhl93] Jürgen Uhl, Dietmar Theobald, Bernhard Schiefer, Michael Ranft, Walter Zimmer, and Jochen Alt. "OBST, the object management system of STONE." Technical Report FZI.027.2, Forschungszentrum Informatik, Karlsruhe, March 1993. http://www.fzi.de/divisions/dbs/projects/OBST.html. [Vale96] Giuseppe Valetto and Gail E. Kaiser. "Enveloping sophisticated tools into process-centered environments." Journal of Automated Software Engineer- ing, 3:309­345, 1996. [Wegn96] Peter Wegner. "Interactive foundations of computing." Technical report, Brown University, December 1996. http://www.cs.brown.edu/people/pw/. [Well97] Ursula Wellen. "Private communication", October 1997. [Wolf93] Alexander L. Wolf and David S. Rosenblum. "A study in software process data capture and analysis." In Proceedings of the Second International Con- ference on the Software Process, pages 115­124. IEEE Computer Society Press, February 1993. [Youn94a] Patrick. S. Young. Customizable Process Specification and Enactment for Technical and Non- Technical Users. PhD thesis, University of California Irvine, 1994. http://www.ics.uci.edu/Arcadia/Teamware/historical.html. [Youn94b] Patrick S. Young and Richard N. Taylor. "Human-executed operations in the teamware process programming system." In C. Ghezzi, editor, Proceedings of the 9th International Software Process Workshop, pages 78­81. IEEE Computer Society Press, October 1994. 162 Appendix A: The ISPW9 Example Taken from [Pene94b]: Base Scenario for Demonstration: Problem Reporting and Change Process * A software project is on-going, with "parts" of the system already designed, codified, tested and baselined (i.e., under configuration management control). * A problem is reported by a tester on the testing of a piece of the system under develop- ment. The project's problem reporting and analysis procedures are then followed and a person is assigned the task of the analysis of the problem. (Note: these procedures can be formal or informal, depending on the type of project. Notification can be effected by mail, by forms, by a tool. The procedures may include rules or guidelines telling who assigns people resources to study which problems and what kind of steps need to be followed.) * A developer/analyst analyzes the problem and proposes a solution. After the analysis (which can be illustrated via automated process support or assumed to have been done manually), the developer identifies that the problem affects one software module which has been coded, tested and baselined, and possibly also affects some documentation (e.g., design and/or testing documents). (Note: the related documentation can be identified explicitly with help from the system, or implicitly via existing pre-defined rules in the sys- tem). * After some analysis, it is noted that the module to be fixed is currently being (re)-used by two separate users or teams (again how this is accomplished may vary, i.e., the system may flag this issue or this fact may be found explicitly by inspection by a configuration manager or the developer). Those users are notified of the problem and that the module will be changed. 164 * The change process starts according to preestablished change procedures (which entail assignment of resources, code and/or documentation modification, analysis/testing/ review, approval/rejection and new baseline of the module and associated documenta- tion). * The module is checked out of the baseline according to the CM procedures for change but reuse of the old version continues. * The module is changed to fix the problem. (Optionally, the fix could be done by two or more separate developers and their cooperation may be illustrated via process support). * The module is tested (formally or informally). Once the problem is fixed, procedures for acceptance/rejection are followed. Once the module is accepted (i.e., the change does fix the problem and it does not violate any of the requirements), appropriate regression test- ing on the modules/systems which reuse a prior version of this module can be performed. * Once all is done, the change process is finalized. Sub-Scenarios Demonstrations should explicitly include as many of the following sub scenarios as possible: 1. Policy Extension. Specify and demonstrate one or more specific procedures/policies to complement the scenario (preferably performed with automated process support): * problem reporting and/or analysis * testing procedure/method * analysis of a problem using data in system * configuration control: retrieval, storage * code fix * problem approval/rejection * resource allocation 2. User Role Support. Demonstrate implicit/explicit support for project user roles (see def- inition in note), i.e., demonstrate: i) (multiple) user to (multiple) role assignment, either static or dynamic; ii) the impact of actions of one role upon another (i.e., automated coop- eration among roles based on process definition); and iii) how roles affect the interaction styles and other aspects of the process. Note: Definition of Life-Cycle User Role (adapted from Webster): An expected behavior pattern associated with one or more people when executing life-cycle activities (e.g., project manager, configuration manager, developer, system analyst). One person can play multiple roles in a project. For example, when someone is writing code, s/he is playing the role of developer; when s/he is doing configuration management, s/he is playing the role of config- uration manager. 165 3. Individual Support. Demonstrate how individuals are guided about what task to do next, how users are made aware of the state of the process, or how the system performs actions as a result of the users' actions. Demonstrations should clearly illustrate how users are aware of the process, how the environment and individuals interact, and what variables control the different modes of interaction. 4. People Coordination. Demonstrate coordination of multiple people, including any sup- port for resolution and tolerance of inconsistency. In particular, demonstrations can illus- trate which aspects of these policies, if any, are hard-wired into their systems, and which can be altered by the particular model, and when the policy selections are made. 5. Configuration Management. Demonstrate how software and/or documents are con- trolled for the purpose of change, and how individuals using a module in their development are made aware of problems and/or changes to that module. 6. Project/Central vs. Individual Coordination. Demonstrate how the executing process supports both individual and project activities, and how the interactions of those activities are supported/mediated by the system. 7. Process Changes while in execution. Dynamically demonstrate changing any of the process definitions supporting the scenario and points 1-5 above, and the effects of those changes. 166 Appendix B: Supporting the ISPW9 Example in ADDD a) ISPW9 Schema In the following, the terms explained in section 4.2 are defined in the data definition language of the OBST database system [Uhl93]. Redefined methods are marked with the name of the super class where the method was defined first. During enactment, these methods are called from methods of other classes in the ADDD framework. For instance, the method icon() below was first defined in super class add_Interactive_Object. This method is called each time an object should be displayed as an icon at the user interface. schema Change_Request { class add_Change_Request(sos_Cstring version_id, add_Document nsp, sos_Cstring c = EMPTY_CSTRING, sos_Int priority = -1, sos_Int clientData1 = 0, sos_Int clientData2 = 0, sos_Int size = 0, add_Container_Object neighbour = NO_OBJECT ) : add_Document_Version (version_id, nsp, c, clientData1, clientData2, size, neighbour) { public: void new_priority(sos_Int); // sets the priority, ONLY if the actual user manager privileges at // ALL tasks which related to this Change_Request. // ------- add_Interactive_Object 168 sos_Cstring icon(); public, private set: sos_Int priority = priority; protected: // ---- sos_Object ---- // static void local_initialize(add_Change_Request this_one); // raises CR_EV_NEW // ------- add_Related_Object void note_new_relship (add_Relship r, add_Related_Object related_obj); // raises CR_EV_REVIEWED. void note_lost_relship (add_Relship r, add_Related_Object related_obj); // raises CR_EV_DISCARD_FIX // ---- add_Message_Interpreter ---- // sos_Int execute_message (add_Message); // - IO_COM_ATTR_UPDATE ["priority"] <- attribute view } class add_observed_Relship(add_Document_Version change_request, add_Document_Version conf) : add_use_Relship(change_request, conf) { // relates a change_request to the configuration which has motivated // the request. public: add_Document_Version configuration(); add_Document_Version change_request(); }; class add_assigned_Relship(add_Document_Version change_request, add_Document_Version conf) : add_use_Relship(change_request, conf) { // assigns a change_request to a configuration. This indicates that the // configuration should be modified in order to fullfill the // change request. public: add_Document_Version configuration(); add_Document_Version change_request(); }; 169 class add_fixed_Relship(add_Document_Version change_request, add_Document_Version conf) : add_use_Relship(change_request, conf) { // relates a change_request with an object which accomplishes it. // conf can be a configuration or a text document. public: add_Document_Version fixed_by(); add_Document_Version change_request(); }; class add_integrated_Relship(add_Document_Version change_request, add_Document_Version conf) : add_use_Relship(change_request, conf) { // links a change_request to a version conf into which a solution // for this change_request has been integrated. } class add_passedTests(List role_set) : add_Relationship(role_set, NO_OBJECT, NO_OBJECT, NO_OBJECT, NO_OBJECT) { // Connects a configuration with a test case (which is a configuration // too) and a set of generated change requests. // Roles: conf, testcase, crequest public: static add_passedTests create2(sos_Container cnt, List role_set, sos_Cstring options, sos_Cstring messages = EMPTY_CSTRING); // create method to be used. sos_Cstring options(); sos_Cstring messages(); protected: sos_String options; sos_String messages; // ---- sos_Object ---- // static void local_initialize (add_passedTests); static void local_finalize (add_passedTests); 170 } class add_failedTests(List role_set) : add_Relationship(role_set, NO_OBJECT, NO_OBJECT, NO_OBJECT, NO_OBJECT) { // Connects a configuration with a test case (which is a configuration, // too) and a set of generated change requests. // Roles: conf, testcase, crequest public: static add_failedTests create2(sos_Container cnt, List role_set, sos_Cstring options, sos_Cstring messages = EMPTY_CSTRING); // create method to be used. sos_Cstring options(); sos_Cstring messages(); protected: sos_String options; sos_String messages; // ---- sos_Object ---- // static void local_initialize (add_failedTests); static void local_finalize (add_failedTests); } } // end schema b) ISPW9 Policies In the following the contents of several policy files are listed. First, there are some general policies which do not model any particular property of the ISPW9 scenario, but are used dur- ing the demo. Here the events which should be recorded in the log files are configured. Also in the other files general useful support is contained (marked by "--- misc"). The other state- ments and procedures provide specific support for the ISPW9 scenario described in chapter 4. Numbers (e.g. "#--- 1.") correspond to the ones in section "4.1.3 Automation and Consis- tency Checking" and indicate that the following lines implement the rule described in section 4.1.3. 171 The policy file integration_policy.tcl contains some procedures which perform some con- sistency checking, in particular the availability of testcases and reviewed change requests needed for the next test run. These procedures do not implement any flow of control or data (which is the main focus of many contributions in the software process community), but just query the database. They exploit the traceability (especially relationships) maintained by automation rules while process proceeds. #------------ general policies relevant for this example: # Only the new (disconnected) team member is notified # (this can not be specified with the `notify' command). trigger TASK_EV_NEW_TEAM_MEMBER ALL - notify_new_team_member trigger TASK_EV_LOST_TEAM_MEMBER ALL - notify_disconnected_team_member # Notify all team members in case a task is activated, suspended, # finished, or aborted. notify_on_task SO_EV_NEW_STATE ALL - # all events raised on a task should be recorded in its log file. log_on_task SO_EV_ALL ALL - *task* # The following events raised on a document or one of its versions # should be recorded in its log file. # events on versions: log SO_EV_RELATED_TO ALL - *doc* log SO_EV_DISCONNECT ALL - *doc* log DVERS_EV_CHANGE_INTENSION ALL - *doc* # events on configurations (insert, remove versions) # and documents (create, destroy versions): log SO_EV_NEW_COMPONENT ALL - *doc* log SO_EV_REMOVED_COMPONENT ALL - *doc* #--------------------------- ISPW9 setup: ----------------------------- #-- SHOULD BE CONTAINED (or sourced) IN A POLICY OF SOME PARENT TASK -- # Names (e.g. of tasks) are defined by variables in order to redefine # them easily: set CCB_task_name CCB set integration_task_name Integration set test_task_name Test set analysis_prefix analysis_ set coding_prefix coding_ set review_prefix review_ 172 set update_doc_prefix ${coding_prefix}_doc_ set test_case_prefix ${coding_prefix}_test_case_ set merge_prefix integrate_ set test_prefix test_ set rejected_subtask_name rejected set simple_task_policy ispw9/simple_task_policy.tcl # Needed if somewhere a new subtask is created dynamically. # file should exist in directory $ADDD_POLICIES set GUI_scripts $env(ADDD_DIR)/ispw9 proc gui_script { icon_name icon } { global CCB_task_name integration_task_name test_task_name \ analysis_prefix coding_prefix review_prefix GUI_scripts set cmd "switch -glob $icon_name { $CCB_task_name {set proc_name CCB_GUI.tcl } $integration_task_name {set proc_name Integration_GUI.tcl} $test_task_name {set proc_name Testing_GUI.tcl } ${review_prefix}* {set proc_name reviewGUI.tcl } *${coding_prefix}* {set proc_name Coding_GUI.tcl } ${analysis_prefix}* {set proc_name Analysis_GUI.tcl } default {set proc_name Simple_task_GUI.tcl} }" eval $cmd return $GUI_scripts/$proc_name } proc checklist_file { task_pathname } { # called by a GUI which displays checklist entries. # Such a GUI also reads the attributes of a task and for each checklist # entry displays the value if contained in the attributes. global CCB_task_name integration_task_name test_task_name \ analysis_prefix coding_prefix review_prefix # A .checklist file contains a list of checklist texts # separated by newline. set cmd "switch -glob $task_pathname { */${CCB_task_name}/${analysis_prefix}* { set checklist_file Analyse.checklist } */${CCB_task_name}/*${coding_prefix}* { set checklist_file Coding.checklist } */${CCB_task_name}/${review_prefix}* \ {set checklist_file Review.checklist} */${integration_task_name}/* \ {set checklist_file Integration.checklist} */${test_task_name}/* {set checklist_file Testing.checklist} default {set checklist_file EMPTY.checklist} }" 173 eval $cmd return $checklist_file } proc establish_ispw9_structure { parent_task } { # instantiates the ISPW9 process below an existing parent task: # Three subtasks (CCB_task, Integration_task, and Test_task) are # created and the corresponding policy files are associated with them. global CCB_task_name integration_task_name test_task_name set cnt [mcall $parent_task container] set CCB_task [mcall add_Task::create $cnt \ $CCB_task_name $parent_task ispw9/CCB_policy.tcl] set Integration_task [mcall add_Task::create $cnt \ $integration_task_name $parent_task ispw9/integration_policy.tcl] set Test_task [mcall add_Task::create $cnt \ $test_task_name $parent_task ispw9/testing_policy.tcl] mcall $CCB_task new_state ACTIVE mcall $Integration_task new_state ACTIVE mcall $Test_task new_state ACTIVE } #------- messages for ISPW9 specific events: proc notify_$CR_EV_NEW \ { event rule_ta obj causing_ta param_list data {confs ""} } { return "new change request: $obj" } proc notify_$CR_EV_SCHEDULED \ { event rule_ta obj causing_ta param_list data {confs ""} } { set priority [lindex $param_list 0] return "new priority $priority: $obj" } proc notify_$CR_EV_REVIEWED \ { event rule_ta obj causing_ta param_list data {confs ""} } { set new_result [lindex $param_list 2] return "$obj is reviewed by $new_result" } proc notify_$CR_EV_DISCARD_FIX \ { event rule_ta obj causing_ta param_list data {confs ""} } { set result [lindex $param_list 2] return "$result is discarded to be a fix of $obj" } 174 #-------- 9. # During integration, a integrator can exclude a particular change # request from being integrated into the next system configuration, # e.g., because of technical problems. The integration manager has to be # notified who may decide to pass it back to the CCB for some # rework. During these operations, there should be always a task # responsible for the change request, i.e., if a change request is # disconnected from a task, it has to be connected to another instantly. constraint TASK_EV_LOST_INPUT SELF* - keep_CRs_connected - its_a_CR proc its_a_CR \ {event rule_ta obj causing_ta param_list data {confs ""}} { # If lost input was a change request, return 1 set lost_input [lindex $param_list 2] if {[OBST isa $lost_input add_Change_Request]} { return TRUE } return FALSE } proc keep_CRs_connected \ {event rule_ta obj causing_ta param_list data {confs ""}} { # If CR no longer exists, issue a warning. # If CR (or any sibling version) does not participate in any input # relationship, abort. global add_input_Relship_type add_derivedFrom_type set lost_input [lindex $param_list 2] if {![addd_exists $lost_input]} { warning_message \ "keep_CRs_connected: change request doesn't exist any more."; return TRUE } if {[mcall $lost_input relships_exist $add_input_Relship_type]} { return TRUE } set document [mcall $lost_input get_name_space] set successors [mcall related_objects $add_derivedFrom_type source] agg loop $successors { set successor [agg current] if {[mcall $successor relships_exist $add_input_Relship_type] && \ [mcall $successor get_name_space] == $document} { return TRUE } } set version_list [mcall $document ls] agg loop $version_list { 175 set version [agg current] set tasks [mcall $version related_objects $add_input_Relship_type] agg loop $tasks { set task [agg current] set task_state [mcall $task get_task_state] switch $task_state { ADD_TASK_ACTIVE - ADD_TASK_URGENT - ADD_TASK_SUSPENDED { return TRUE } } } } message "change request is no longer connected to a living task." return FALSE } # CCB_policy.tcl: #-------- misc # A manager should be notified in case of results of subtasks notify TASK_EV_NEW_RESULT SELF/* - MANAGER - *tasklog* #-------- 1. # All new change requests have to be routed to the CCB for scheduling # and assignment # ALL CR should be sent to task CCB: trigger CR_EV_NEW PARENT* - route_CR_to_CCB proc route_CR_to_CCB \ {event rule_ta obj causing_ta param_list client_data {confs ""}} { global CCB_task_name set CCB_task [get_task $CCB_task_name] create_relship add_input_Relship $obj $CCB_task } # and the manager(s) should be notified: notify_on_task TASK_EV_NEW_INPUT SELF - MANAGER #-------- 2. # A CCB member has to decide whether an analysis task is finished or 176 # not. Acceptance is performed implicitly by assigning the analyzed # change request for coding. A trigger ensures that such an assignment # finishes the corresponding analysis task automatically. trigger_on_task TASK_EV_NEW_INPUT SELF/*${coding_prefix}* - \ finish_previous_authors proc finish_previous_authors \ {event rule_ta obj causing_ta param_list client_data {confs ""}} { # If input is a change request, finish all tasks # - which are related via input relationships to OR are authors of # the request or any predecessor in history, AND # - which are subtasks of the CCB task. set new_input [lindex $param_list 2] if {[OBST isa $new_input add_Change_Request]} { set living_previous_tasks [living_previous_tasks $new_input] foreach task $living_previous_tasks { mcall $task new_state FINISHED } } } proc living_previous_tasks {cr} { global CCB_task_name add_result_Relship_type set result "" set CCB_task [get_task $CCB_task_name] set version_list [mcall [mcall $cr get_name_space] ls] agg loop $version_list { set vers [agg current] set tasks [mcall $vers related_objects $add_result_Relship_type] set author_task [mcall $vers get_task] agg loop $tasks { set task [agg current] set task_state [mcall $task get_task_state] switch $task_state { ACTIVE - URGENT - SUSPENDED { if {[lsearch -exact $result $task] == -1 && \ [mcall $task get_name_space] == $CCB_task} { lappend result $task } } } } } return $result } 177 #-------- 3. # A coded change request should be routed to a review task # automatically. This can be done by a trigger assigns results of coding # tasks to review tasks. If there is a review task which has reviewed # the same change request, then results are assigned to this # task. Otherwise, a new review task is created. trigger_on_task TASK_EV_NEW_RESULT SELF/*${coding_prefix}* - \ route_result_to_review if_no_consumer_is_selected_yet - FALSE # In order to apply the trigger on TASK_EV_NEW_RESULT_OF_PRED # (see --- 6. below) to results published within the same command, # the trigger action has to be executed immediately (Last parameter # FALSE means "non-deferred"). proc if_no_consumer_is_selected_yet \ {event rule_ta obj causing_ta param_list client_data {confs ""}} { # returns TRUE if no consumer can be retrieved, i.e. # no producerConsumer relationships exist. global add_producerConsumer_type set coding_task $obj if {[mcall $coding_task relships_exist $add_producerConsumer_type] \ == "FALSE"} { return TRUE } return FALSE } proc route_result_to_review \ {event rule_ta obj causing_ta param_list client_data {confs ""}} { # If there is a review task to which the change request or previous # versions are related via input relationships, then results are # assigned (as input) to this task. Otherwise, a new review task is # created. Additionally, a producerConsumer relationship between the # coding and the review task is created. global review_prefix CCB_task_name simple_task_policy \ add_input_Relship_type set coding_task $obj set new_result [lindex $param_list 2] set review_task - set version_list [mcall [mcall $new_result get_name_space] ls] agg loop $version_list { set version [agg current] set consumer_tasks [mcall $version related_objects \ $add_input_Relship_type] agg loop $consumer_tasks { set task [agg current] if { [string first $review_prefix [mcall $task name]] == 0 } { set review_task $task 178 break } } if {$review_task != "-"} { break; } } if {$review_task == "-"} { if {[OBST isa $new_result add_Change_Request]} { set name_of_cr [mcall $new_result icon_name] } else { set name_of_cr - set inputs [mcall $coding_task related_objects \ $add_input_Relship_type] agg loop $inputs { if {[OBST isa [agg current] add_Change_Request]} { set name_of_cr [mcall [agg current] icon_name] break; } } if {$name_of_cr == "-"} { set name_of_cr [mcall $new_result icon_name] warning "[mcall $coding_task name] has produced a result $name_of_cr but there is no relation to any change request." } } set cr_doc_name [string range $name_of_cr 0 \ [expr [string first # $name_of_cr]-1]] set CCB_task [get_task $CCB_task_name] set cnt [mcall $CCB_task container] set tname "${review_prefix}${cr_doc_name}" set review_task [mcall add_Task::create $cnt $tname $CCB_task \ $simple_task_policy] mcall $CCB_task message_to_team_members "Task $tname created." \ FALSE MANAGER } create_relship add_input_Relship $new_result $review_task ;# needed # because the trigger on TASK_EV_NEW_RESULT_OF_PRED (see --- 6. below) # is not applied in this case. In order to apply this trigger to # subsequent results published within the same command, the trigger # action should be executed immediately. create_relship add_producerConsumer $coding_task $review_task } #-------- 4. # A coding task should remain alert in order to react on critique from # the review task. Triggers can assure that a coding task is finished # when its review task is finished, and not earlier. 179 # If a review task is finished, its predecessor tasks (coding, testcase, # documentation) should be finished too. trigger_on_task TASK_EV_FINISHED SELF/${review_prefix}* - \ finish_coding_tasks proc finish_coding_tasks \ {event rule_ta obj causing_ta param_list client_data {confs ""}} { # finishes the reviewed coding tasks, too. [i.e. producer tasks # retrieved via producerConsumer relationships] global add_producerConsumer_type # Traverse add_producerConsumer relationships where $obj # participates as a consumer: set coding_tasks \ [mcall $obj related_objects $add_producerConsumer_type \ consumer producer TRUE] ;# TRUE means that the method # should return a copy which has to be destroyed below. agg loop $coding_tasks { set coding_task [agg current] mcall $coding_task new_state FINISHED } mcall $coding_tasks destroy } constraint_on_task TASK_EV_FINISHED SELF/* - if_consumers_are_finished # also applied to analysis and review tasks, but this should have no effect. # Alternative: define several triggers, each with a special name prefix. proc if_consumers_are_finished \ {event rule_ta obj causing_ta param_list client_data {confs ""}} { # abort if consumers (retrieved via producerConsumer relationships), # i.e. the review task, are not finished. global add_producerConsumer_type set consumers \ [mcall $obj related_objects $add_producerConsumer_type producer] agg loop $consumers { set task [agg current] set task_state [mcall $task get_task_state] switch $task_state { ACTIVE - URGENT - SUSPENDED {error "Task [mcall $task name] is not finished";} } } return TRUE } 180 # simple_task_policy.tcl: # Misc.: Notify all team members in case a task is activated, # suspended, finished, or aborted. notify_on_task SO_EV_NEW_STATE SELF - #-------- 5. # A coding task should be notified in case a review task appends some # comments (critique) to the change request. Note, that we use the # change request as medium for documented (and therefore official) # communication. Beside this, reviewer and coder may communicate in # various ways not visible from the process' point-of-view. notify_on_task TASK_EV_NEW_RESULT_SUCCESSOR SELF - MANAGER #-------- 6. # A review task should be notified if one of the results of the coding # task has been changed, for instance, in case the coding task has # reacted on some critique of the review. # The following trigger ensures that each result of an associated change task # is automatically assigned as input to the review task: trigger_on_task TASK_EV_NEW_RESULT_OF_PRED SELF - create_input_relship # The next triggers care for notification: notify_on_task TASK_EV_NEW_INPUT SELF - MANAGER notify_on_task TASK_EV_NEW_INPUT_SUCCESSOR SELF - MANAGER # TASK_EV_NEW_INPUT_SUCCESSOR is raised in case a successor version # of an input is created. proc create_input_relship \ {event rule_ta obj causing_ta param_list client_data {confs ""}} { set new_result [lindex $param_list 2] set review_task $rule_ta create_relship add_input_Relship $new_result $review_task } #-------- some definition of permissions of user roles: # the managers of simple tasks (non-permanent tasks) # must not change their policy, nor finish/abort this task. constraint TASK_EV_NEW_POLICY_FILE SELF* - constraint TASK_EV_ABORTED SELF* - #-------- some cooperation support (notification): set EV_CHANGE_plus_NEW_VERSION \ [expr $DVERS_EV_CHANGE_INTENSION * $SO_EV_NEW_COMPONENT] 181 notify_on_elements_of_locked_confs EV_CHANGE_plus_NEW_VERSION \ "*.\[Chc\]#*" CAUSED_BY_OTHERS "~/..intension_log" notify_on_elements_of_locked_confs EV_CHANGE_plus_NEW_VERSION \ "*.tcl#*" CAUSED_BY_OTHERS "~/..intension_log" notify_on_elements_of_locked_confs EV_CHANGE_plus_NEW_VERSION \ "*Makefile#*" CAUSED_BY_OTHERS "~/..intension_log" # integration_policy.tcl #------- misc: # ALL team members are notified if any result is published by # the Integration task : notify TASK_EV_NEW_RESULT SELF - #-------- 7. # All reviewed change requests are automatically routed to the current # integration task (e.g. integrate_5.2.97). The second trigger notifies the # manager of the Integration task about this event. trigger CR_EV_REVIEWED PARENT* - route_CR_to_integration notify CR_EV_REVIEWED PARENT* - MANAGER notify CR_EV_DISCARD_FIX PARENT* - MANAGER proc route_CR_to_integration \ {event rule_ta obj causing_ta param_list client_data {confs ""}} { global merge_prefix simple_task_policy add_fixed_Relship_type NO_OBJECT set integration_task $rule_ta ;# [get_task $integration_task_name] set date [clock format [clock seconds] -format %d.%m.%y] set confs [mcall $obj related_objects $add_fixed_Relship_type] if {[mcall $confs card] == 0} { message "route_CR_to_integration: no fixed relship found for [mcall $obj icon_name]" return } set todays_integration \ [mcall $integration_task element ${merge_prefix}$date] if {$todays_integration == $NO_OBJECT} { set cnt [mcall $integration_task container] set todays_integration \ [mcall add_Task::create $cnt ${merge_prefix}$date \ $integration_task $simple_task_policy] } create_relship add_input_Relship $obj $todays_integration agg loop $confs { create_relship add_input_Relship \ 182 [agg current] $todays_integration } } #-------- 8. # The integration manager can also select changes not reviewed so far # (Note that such changes still have to be reviewed and that changes # demanded by this review have to be integrated later). Therefore, the # integration manager should be notified in case a coding task produces # a result. notify TASK_EV_NEW_RESULT \ PARENT/${CCB_task_name}/*${coding_prefix}* - MANAGER notify TASK_EV_LOST_RESULT \ PARENT/${CCB_task_name}/*${coding_prefix}* - MANAGER # testing_policy.tcl: #------- 10. # When a new integrated system configuration is created, a new test task # (e.g. test_conf#1.21) should be created automatically in order to test # this configuration. trigger TASK_EV_NEW_RESULT \ PARENT/${integration_task_name}/${merge_prefix}* - \ notify_manager_and_create_test_task proc notify_manager_and_create_test_task \ {event rule_ta obj causing_ta param_list client_data {confs ""}} { global simple_task_policy test_prefix set date [clock format [clock seconds] -format "%H:%M %d.%m.%y"] set new_result [lindex $param_list 2] set new_result_name [mcall $new_result pathname] set new_subtask_name $test_prefix[file tail $new_result_name] set cnt [mcall $rule_ta container] set new_subtask [mcall add_Task::create $cnt \ $new_subtask_name $rule_ta $simple_task_policy] mcall add_input_Relship::create $cnt $new_result $new_subtask set creating_user [mcall $causing_ta pathname] set message "$new_result_name is published by $creating_user at ${date}.\nIt is assigned to the new task [mcall $new_subtask name]." mcall $rule_ta message_to_team_members $message FALSE MANAGER } Appendix C: Syntax of Policy Triggers Cooperation support: trigger_on_elements_of_locked_confs event-name action-name pattern [condition-name] ::= CAUSED_BY_ME|CAUSED_BY_OTHERS|CAUSED_BY_ANY If such a rule is declared in the policy of a task, then for each session S of this task or of one of its subtasks the following is defined: In case the specified event is raised on a version belonging to a configuration which is cur- rently locked by the session S, and the name of the version matches the pattern1, and the event was caused by , then the action procedure is executed. If is CAUSED_BY_ME then only events caused by S are considered. In case of CAUSED_BY_ OTHERS, events not caused by S are relevant. CAUSED_BY_ANY denotes that it is not relevant who caused the event. Process enforcement: trigger event-name action-name pattern [condition-name] 1. With "pattern" we mean pattern as used, for instance, in UNIX shells. A pattern can be any string and may contain the following special characters (as described in [Oust94]) * matches any sequence of zero or more characters. ? matches any single character. [chars] matches any single character in chars. If chars contains a sequence of the form a-b, any character between a and b, inclusive, will match. \x matches the single character x. This provides a way to avoid special interpretation for any of the characters *?[]\ in the pattern. 184 ::= ( taskpathname-pattern | ALL | [/subtaskname-pattern] ) subtask-level-number ::= SELF | PARENT | PROJECT If such a rule is defined in the policy of a task T, then the action is executed if the event occurs, and it is caused by a task matching the , and the name of the object matches the pattern, and the condition is fulfilled. The can be either * any pattern on the entire pathname of the causing task (e.g., */Development/*), * ALL, which is equivalent with the taskpathname-pattern *, or * a pattern relative to the task T. T is denoted by SELF, its parent task by PARENT, and PROJECT stands for the top-level task which contains T. The subtask-level denotes the hierarchy level below T to be considered. For instance, 1 means that only direct subtasks should match. If the subtask-level is 0, only events raised by T should match. If the sub- task-level is less than 0 (e.g., -2) this is equivalent to its positive value (e.g., 2), except that events by T should not be considered. Furthermore, a pattern for the pathname of subtasks relative to task T can be specified. If the subtask level is set as `-' any matching task is considered, regardless of its level in the task hierarchy. For the sake of readability textual representations can be used [no_subtasks stands for 0, with_subtasks for 1, and subtasks_only for -1]. In case of ALL or a simple taskpathname-pattern (i.e., SELF, PARENT, or PROJECT are not used), the subtask-level is ignored. Trigger on objects In some cases (for instance, in order to react on new input), it is neces- sary to define triggers for events occurring on specific tasks. This triggers fire regardless of who caused the event. trigger_on_task event-name action-name [condition-name] For the sake of completeness, trigger on objects as described in section 3.1.4 can be specified as follows: trigger_on event-name action-name [condition-name] must be an object id which can be retrieved via Tcl commands as described in [Theo93]. _________________________ The triggers above are special event-condition-action rules. The syntax provides built-ins for some conditions often used. Further simplifications are offered for the action part: constraint event-name action-name pattern [condition-name] 185 constraint_on_task event-name action-name [condition-name] constraint_on_elements_of_locked_confs event-name action-name pattern [condition-name] The declarations above have same syntax and semantics as the corresponding trigger decla- rations, except: If the action returns FALSE, the database transaction which caused the event is aborted, i.e., the state of the database is the same as before the execution of the transaction. Process Monitoring and Notification log event-name logfile-name [pattern] log_on_task event-name logfile-name log_on_elements_of_locked_confs event-name logfile-name [pattern] The logfile is a pathname in the UNIX file system. It denotes the log-file, where occurrences of the event should be recorded. This way, various logs can be maintained observing any numbers of events and/or tasks. notify event-name [ [pattern [logfile-name]]] ::= MANAGER | DEVELOPER | ALL notify_on_task event-name [ [logfile-name]] notify_on_elements_of_locked_confs event-name [pattern [logfile-name]] If such a trigger is given in the policy associated with task T, and the event is caused by the one of the specified tasks, and the pattern matches, then a notification is sent to all members of task T playing the given (or to all team members if is omitted), or to the owner of the session, in case of notify_on_elements_of_locked_confs. If a logfile is given, the event is recorded in this file too, as described above. Execution Scopes and Commit Dependencies In the syntax description above, execution scopes and commit dependencies were omitted for the sake of clarity. trigger and trigger_on_elements_of_locked_confs can be executed immediate or deferred (default), as described in section 3.1.4. The triggering action may depend on the commit of the triggered actions, or not (default). Furthermore 186 some client data can be passed to be used during execution of both condition and action. For the use of these advanced features refer to the Tcl syntax1. The triggering action always depends on the commit of constraints, because if a constraint is violated the triggering action should be aborted. [In the Tcl syntax the last parameter ({coupled "TRUE"}) omitted, because it is always TRUE.] Notify and log actions are always performed deferred and not commit dependent. 1. proc trigger {event taskpathname level action {pattern "-"} {condition "-"} \ {client_data "-"} {deferred "TRUE"} {coupled "TRUE"} } { } proc trigger_on_elements_of_locked_confs {event action {pattern "-"} {user_scope "CAUSED_BY_ANY"} \ {condition "-"} {client_data "-"} {deferred "TRUE"} {coupled "TRUE"} } { } proc trigger_on_task {event taskpathname level action {condition "-"} \ {client_data "-"} {deferred "TRUE"} {coupled "TRUE"} } { } proc trigger_on {object event action {condition "-"} {client_data "-"} {deferred "TRUE"} {coupled "TRUE"} } { } Appendix D: Checkin/ Checkout in File Workspaces Checkout to workspace In general, users should checkout configurations, not single versions. This is done from the session shell by typing shell> addd_conf --extract -f runtime#1.12 The command addd_conf above says that the configuration runtime#1.12 should be extracted, i.e., all versions contained should be checked out into the workspace of the current session. These files are checked out in read-only mode (unless the -W option is used). If these files should be modified, they can be made writable, any time. shell> addd_make_writable */*.C This command provides writable copies of the denoted files and issues change intension ($DVER_EV_CHANGE_INTENSION) events for them. Checkin from workspace Saving some results can be done in several ways. First a configuration can be checked in explicitly: shell> addd_conf --update --savepoint -f runtime#1.12 *.[ch] This command looks if any source file has been changed, checks it in, and inserts the con- cerned versions into configuration runtime#1.12. If runtime#1.12 can not be modified, a suc- cessor version of runtime#1.12 is created automatically (runtime#1.13). runtime#1.13 con- tains all modified versions and all versions of runtime#1.12 which were not modified. The - 188 -savepoint option says that the actual configuration (runtime#1.12 or runtime#1.13, respec- tively) is put into state save. shell> addd_conf --update --savepoint The command above checks in all modified files in the workspace and, if necessary, creates new versions of their configurations as described above. shell> addd_conf --update */*.[ch] The command above checks in multiple files, e.g., all modified source files contained in any subdirectory. In order to import files stored outside of any workspace, the --create command option has to be used. The difference to the --update option is, that a) a new configuration is created any- way, and b) the checked-in files need not to be contained in any workspace: shell> cd /vol/gnu/share/src/ shell> addd_conf --create -f tcl743 tcl-7.4.3 The command above checks in some 3rd party software contained in directory tcl-7.4.3, and inserts all created versions into a new configuration tcl743#0.0. The cd command is quite important, because the current directory determines the relative pathname under which the versions are stored in ADDD (see figure 6.1). For example, below the directory of the current task, the directory tcl-7.4.3 and its underlying directory tree is created in ADDD. During checkin of a new1 file several steps are performed. * First, it is checked whether the file should be checked in or not. This filters, for example, temporary files which need not be under version control. * Second, the type of the version to be created has to be determined. For instance, should it be a change request, a report, or a simple version. * Third, if no configuration is given in the command line, it has to be determined in which configuration the new version should be inserted automatically for later retrieval. These three steps are performed by calling policy procedures which can be adapted for the needs of each task (see 3.2.3 a)). Workspace update The workspace can be configured from scratch or updated in an incremental way in order to incorporate changes performed by other designers in the meantime. First of all, it is possible to checkout a new version of a file. Furthermore it is possible to replace a configuration by a successor version of it. 1. I.e., the pathname of the file is not known in the database. 189 shell> addd_conf --remove_files -k -f runtime#1.12 shell> addd_conf --extract -k --lockconf -f runtime#1.13 The first command removes all files belonging to configuration runtime#1.12. The second command checks out all files of runtime#1.13 and locks this configuration. The -k option in Mapping of files to versions in the database If a file created in the workspace is imported into the database (checkin), a new version is created. The pathname of the file relative to the home directory of the workspace ($HOME) can be used to access the document (version history) in the database. The document contains versions of all files which have been checked in under the same rel- ative pathname before. On a more detailed level: In ADDD, documents are leafs in a directory hierarchy, similar to files in the file system. A document and each of its versions are identified by an absolute pathname. Each task points to a directory which is used during checkin as follows. The path- name of a file relative to the $HOME directory of the workspace is used to store it in a document with the same pathname relative to the directory of the task to which the actual session belongs. bugfix21 /addd/projectdata $HOME foo.c foo.c 1.3 ADDD Database Workspace of session john@bugfix21 Figure 6.1: Mapping of pathnames in the workspace to pathnames in ADDD. If the new created foo.c is checked in, first its path relative to the $HOME directory is determined. This pathname is used to retrieve a document foo.c relative to the directory of the actual task (bugfix21). If document foo.c does not exist already, it is created together with the directories required. A new version of foo.c is created which contains the contents of file foo.c. 190 both commands prevents modified versions to be deleted or overwritten. During checkout, the -k causes the modified file to stay in place while the file to be checked out is placed in the same directory with its full version extension [for example, there may be a (modified) foo.c and a (checked out) foo.c#2.23]. The same commands are used for merging of configurations. Two configurations describ- ing variants of the same (sub)system (e.g., runtime#1.13 and runtime#1.12.patch1) can be checked out using the -k option. Files which have been changed in one of these configura- tions can be detected by searching for files matching *#* (e.g., foo.c#2.23). These files can be merged with their siblings (e.g., foo.c) one by one. In order to perform a 3-way merge [Buff95, Berz95], the common ancestor of both configurations (runtime#1.12 in this exam- ple) has to be checked out first. Some CM systems provide automatic update of the workspace, for instance, ClearCase [Lebl94], Adele [Estu96], and EPOS [Conr94]. The version selection visible in the works- pace is defined by a predicate. Due to the changes performed by others it is possible that the version selection changes dynamically. For instance, the predicate may say: "Select all ver- sions currently changed by me, all versions in state `published', and all versions of release 2.3" where the sequence of sub-predicates define the priority, i.e., a particular version con- tained in release 2.3 is not visible if there is a newer version in state "published". There is a debate about whether automatic update is needed or interfering. Some people think that it is better to reconcile the state of a workspace explicitly. Up to now, automatic update of work- spaces is not available in ADDD, but there are mechanisms for change notification (see page 77) and workspace update as described above.