scieee AI-readable full text Open interactive document viewer

Mining the Organisational Perspective in Agile Business Processes

Schönig, Stefan; Cabanillas Macías, Cristina; Jablonski, Stefan; Mendling, Jan

Abstract

Agile processes depend on human resources, decisions and expert knowledge, and they are especially versatile and comprise rather complex scenarios. Declarative, i.e., rule-based, process models are wellsuited for modelling these processes. Although there are several mining techniques to discover such declarative process models from event logs, they put less emphasis on the organisational perspective, which speci es how resources are involved in the activities. As a consequence, the resulting models do not specify who should execute which task and with which constraint (like separation of duties) in mind. In this paper, we propose a process mining approach to discover resource-aware, declarative process models. Our speci c contribution is the extraction of complex rules for resource assignment that integrate the control- ow and organisational perspectives. Our experiments demonstrate the expressiveness of the mined rules with a reference to the Work ow Resource Patterns and a real-world use case.

Full text

Mining the Organisational Perspective in Agile Business Processes? Stefan Sch¨onig1, Cristina Cabanillas2, Stefan Jablonski1, and Jan Mendling2 1University of Bayreuth, Germany {stefan.schoenig,stefan.jablonski}@uni-bayreuth.de 2Vienna University of Economics and Business, Austria {cristina.cabanillas,jan.mendling}@wu.ac.at Abstract. Agile processes depend on human resources, decisions and expert knowledge, and they are especially versatile and comprise rather complex scenarios. Declarative, i.e., rule-based, process models are wellsuited for modelling these processes. Although there are several mining techniques to discover such declarative process models from event logs, they put less emphasis on the organisational perspective, which specifies how resources are involved in the activities. As a consequence, the resulting models do not specify who should execute which task and with which constraint (like separation of duties) in mind. In this paper, we propose a process mining approach to discover resource-aware, declarative process models. Our specific contribution is the extraction of complex rules for resource assignment that integrate the control-flow and organisational perspectives. Our experiments demonstrate the expressiveness of the mined rules with a reference to the Workflow Resource Patterns and a real-world use case. Keywords: declarative process mining, organisational perspective, resource perspective, event log analysis 1 Introduction The success of an organisation primarily depends upon its ability to accomplish its tasks in a structured and reliable manner. A well accepted method for structuring the activities carried out in an organisation is business process management (BPM). BPM usually involves modelling, executing and analysing processes [1]. In this context, two different types of processes can be distinguished [2]: well-structured routine processes with exactly predescribed control flow and agile processes with control flow that evolves at run time without being fully predefined a priori. Agile processes are common in healthcare where, e.g., patient diagnosis and treatment processes require flexibility to cope with unanticipated circumstances. ?This work is funded by the “Europ¨aischer Fonds f¨ur regionale Entwicklung” (EFRE) and the Austrian Research Promotion Agency (FFG) under grant 845638 (SHAPE). 2 Sch¨onig et al. In a similar way, two different representational paradigms can be distinguished: procedural models describe which activities can be executed next and declarative models define execution constraints that the process has to satisfy. The more constraints are added to the model, the less possible execution alternatives remain. As agile processes may not be completely known a priori, they can often be captured more easily using a declarative rather than a procedural modelling approach [3–5]. For purposes of compliance and process improvement, organisations are interested in the way their processes are actually executed [1]. Process mining aims at discovering processes by extracting knowledge from event logs, e.g., by generating a process model reflecting the behaviour recorded in the logs [6]. Declarative languages like Declare [3] or DPIL [7] can be used to represent these models, and tools like DeclareMiner [8] or MINERful [9] to generate them, often with a focus on control flow and data [10, 11]. Agile processes, however, need to explicitly integrate the organisational perspective due to the importance of human decision-making and expert knowledge [12]. Recent research has identified the potential of role mining [13, 14] and process mining of the organisational perspective [15]. However, these results have not yet been integrated with declarative process models. In this paper, we fill this research gap by proposing a process mining approach to discover resource-aware, declarative process models. In particular, we are able to extract complex allocation rules, such as binding of duties between activities, as well as cross-perspective rules involving the control-flow and the organisational perspectives together. The latter consider the influence of resource allocation on the control flow of the process, e.g., an activity can only be executed by a specific role if a specific activity was performed previously. The expressiveness of the extracted rules has been evaluated using the Workflow Resource Patterns [16]. The applicability of the approach has been validated with a real-world event log from the university domain. The remainder of this paper is structured as follows: In Section 2 we explain background upon which our approach is built. In Section 3 we describe our approach to extract resource-aware, declarative process models. In Section 4 we provide details about the implementation as well as experimental results. In Section 5 we present the results of the evaluations performed. In Section 6 we describe the related work and Section 7 concludes this paper. 2 Background This section describes the language that we will use as a basis for mining models. We choose Declarative Process Intermediate Language (DPIL) [7] for this purpose due to several reasons. First, it is multi-perspective, i.e., it allows representing several business process perspectives, namely, control flow, data and resources. Since we want to extract resource-aware process models, the modelling language needs to support the modelling of rules related to the organisational perspective. The expressiveness of DPIL and its suitability for business pro- Mining the Organisational Perspective in Agile Business Processes 3 predicate object subject hasRole hasRole supervisor supervisor Relation RelationType IdentityGroup Entity Professor BV Student SS BRSJ (a) Organisational meta model predicate object subject hasRole hasRole supervisor supervisor Relation RelationType IdentityGroup Entity Professor Student SS BRSJ (b) Organisational model Fig. 1: Organisational meta model and example organisational model cess modelling have been evaluated [7] with respect to the well-known Workflow Patterns [16]. Second, it is multi-modal, meaning that it allows defining two different types of rules: rules representing mandatory relations (called ensure in DPIL) and rules representing recommended relations (called advice in DPIL). The latter are useful, e.g., to reflect good practices. In order to express organisational relations, DPIL builds upon a generic organisational meta model that has been described in [17] and is depicted in Fig. 1a. It comprises the following elements: Identity represents agents that can be directly assigned to activities, i.e., both human and non-human resources. Group represents abstract agents that may describe several identities as a whole, e.g., roles or groups. Relation represents the different relations (RelationT ype) that may exist between these elements. It is suitable to define, e.g., that an identity has a specific role, that a person is the boss of another person, or that a person belongs to a certain department. Fig. 1b illustrates an exemplary organisational model of a university research group. It is composed of two roles (Professor, Student) assigned to three people (SJ, SS, BR) and several relations between them indicating who is supervised by whom. DPIL provides a textual notation based on the use of macros to define reusable rules. For instance, the sequence macro (sequence(a,b)) states that the existence of a start event of task bimplies the previous occurrence of a complete event of task a; and the role macro (role(a,r)) states that an activity ais assigned to a role r. Fig. 2 shows an example of a process for trip management modelled with DPIL that uses the organisational model defined in Fig. 1b. It states that it is mandatory to approve a business trip before a flight can be booked. Moreover, it is recommended but not necessary that the approval be carried out by a resource with the role Professor. In the work at hand, we use DPIL and build upon the described organisational meta model. However, please note that any other declarative process modelling language like Declare [3] or Dynamic Condition Response graphs [18] in combination with a suitable organisational meta model that fulfils the identified requirements can be used. 4 Sch¨onig et al. use group Professor process BusinessTrip { task Book flight task Approve Application advice role(Approve Application, Professor) ensure sequence(Approve Application, Book flight) } Fig. 2: Process for trip management modelled with DPIL Applying process mining techniques it is possible to generate process models like the one depicted in Fig. 2, as long as the event logs contain the required information. Each event in a log refers to an activity, i.e., a well-defined step in the process, and is related to a particular process instance. We refer to the ordered set of events of a particular process instance as a trace. Event logs usually contain information about the resource performing an activity [6], as well as additional information that may be useful for subsequent analysis purposes. For instance, the following excerpt of a business trip process event log encoded in the XES logging format [19] shows the recorded information of the start event of an activity Apply for trip performed by a resource SS. <string key="concept:name" value="SS_Riga2013"/> <event> <string key="org:resource" value="SS"/> <date key="time:timestamp" value="2013-08-06T14:58:00.000+01:00"/> <string key="concept:name" value="Apply for trip"/> <string key="lifecycle:transition" value="start"/> </event> 3 Mining Resource-Aware Declarative Process Models In this section, we describe our approach to automatically discover resourceaware, multi-modal, declarative process models from event logs. First, we describe rule candidates and a support and confidence framework. Finally, we cover rule templates along with an improvement based on pre- and post-processing. 3.1 Generation and Checking of Rule Candidates Declarative process modelling languages like DPIL are based on so-called rule templates. A rule template captures frequently needed relations and defines a particular type of rules. Templates have formal semantics specified through logical formulae and are equipped either with user-friendly graphical representations (e.g., in Declare) or with macros in textual languages (e.g., in DPIL) that make Mining the Organisational Perspective in Agile Business Processes 5 the model easier to understand. In contrast to concrete rules, a rule template consists of placeholders, i.e., typed variables. It is instantiated by providing concrete values for these placeholders. For instance, the model described in Section 2 makes use of two rule templates represented by the macros sequence(T1,T2) and role(T,G). These templates comprise placeholders of type Task Tas well as Group G. In all well-known declarative process mining approaches, rule templates are used for querying the provided event log and to find solutions to the placeholders. A solution to the query is any combination of concrete values for the placeholders that yields a concrete rule that is satisfied in the event log. First, all possible rules need to be constructed by instantiating the given set of rule templates with all possible combinations of occurring process elements provided in the event log. The sequence template, e.g., consists of 2 placeholders of type T ask. Assuming that |T|different tasks occur in the event log, |T|2 rule candidates are generated. All the resulting rule candidates are subsequently checked w.r.t. the event log. In many cases, a rule candidate can be trivially valid. Consider, e.g., the rule candidate direct(t1,i1), i.e., start(of t1) implies start(of t1by i1), which holds when task t1is performed by an identity i1, and the example event log of Table 1. The provided event log notation (first column) encodes the recorded start and complete events of a specific task tperformed by an identity iwith s(t,i) and c(t,i), respectively. The given events are ordered temporally so that timestamps are not encoded explicitly. In the first trace the rule holds trivially because t1 never happens. Using the terminology of [20], we say that the rule is vacuously satisfied. It is necessary to discriminate between traces where a rule is trivially true and traces in which the rule is non-vacuously satisfied. Only traces in which a rule candidate non-trivially holds are considered interesting [8]. For first order logic rules that depict implications of the form A→Blike in DPIL, trivially and non-vacuously valid rules can be discriminated by additionally checking the condition Aof the rule separately. Table 1 also shows the results of checking the non-vacuous satisfaction of the direct(t1,i1) rule (third column) as well as its condition (second column) for each trace of the example event log. In the first trace the rule is not (non-vacuously) satisfied because t1is never started, i.e., the condition is false. The rule holds non-vacously in the traces two to four while it is violated in trace five. Trace start(of t1) direct(t1,i1) {s(t2,i1), c(t2,i2), s(t3,i1), c(t3,i1)}false false {s(t1,i1), c(t1,i1), s(t2,i2), c(t2,i2), s(t3,i1), c(t3,i1)}true true {s(t1,i1), c(t1,i1), s(t3,i3), c(t3,i3), s(t2,i2), c(t2,i2)}true true {s(t1,i1), c(t1,i1), s(t3,i3), c(t3,i3), s(t2,i2), c(t2,i2)}true true {s(t1,i4), c(t1,i4), s(t3,i1), c(t3,i1)}true false Table 1: Event log and satisfaction of exemplary rule and its condition 6 Sch¨onig et al. THRESHOLD (minConfS) RECOMMENDED RULE THRESHOLD (minConfH) MANDATORY RULE ADVICE ENSURENOT VALID (NOT PART OF THE RESULTING MODEL) Fig. 3: Classification of rule candidates based on the confidence value 3.2 Support and Confidence Framework to Classify Rules Checking rule candidates as described above provides for every candidate the number of instances, i.e., traces in the event log where it non-vacously holds. Based on these values it is possible to classify rules and to separate non-valid from valid ones. Therefore, [20] adopted a support and confidence framework proposed by association rule mining methods to evaluate the relevance of rule candidates. Definition 1 (Support and Confidence). Let |Φ|be the number of traces in an event log Φ. Let |σnv (r)|be the number of traces in which a rule r:A→Bis non-vacously satisfied. The support supp(r)and confidence conf(r)1values of a rule rare defined as: supp(r) := |σnv(r)| |Φ|, conf(r) := supp(r) supp(A)(1) Considering the event log of Table 1 and the direct(t1,i1) rule, its support evaluates to supp(r)=0.6 and its confidence to conf(r)=0.75. The support value is used for pre-processing, as described in Section 3.4. We make use of the confidence value in order to classify a rule candidate ras (i) a mandatory rule, i.e., satisfied in almost all traces; (ii) a recommended rule, i.e., not always satisfied but with a tendency to be satisfied; or (iii) a non-valid rule, i.e., violated in most of the recorded traces. As visualized in Fig. 3, two thresholds minConfS and minConfHare introduced to classify rule candidates. Candidates rwith conf(r)> minConfHare classified as mandatory (ensure) and minConfS< conf(r)< minConfHas recommended (advice). All rule candidates rwith conf(r)< minConfSare non-valid rules and are not part of the resulting process model. Using the confidence values of rule candidates it is directly possible to generate a DPIL process model reflecting the recorded behaviour. 3.3 Rule Templates for Analysing the Organisational Perspective The previous section showed how it is possible to automatically generate a multi modal, declarative process model by checking a set of rule candidates whose structure is defined by rule templates w.r.t. a given event log. Since DPIL builds upon a flexible organisational meta model, it is possible to define rule 1In case of rules that do not depict implications, the condition is satisfied in every trace. Here supp(A) = 1 and conf(r) = supp(r). Mining the Organisational Perspective in Agile Business Processes 7 templates that define the structure of organisational relations. By instantiating these resource-aware rule templates with all possible parameter combinations of defined resources, groups and relation types, it is possible to generate rule candidates that focus on the organisational perspective of the process to be analysed. These candidates can then be checked under consideration of the corresponding organisational model. Based on the resulting confidence values, a resource-aware process model can be generated automatically. We now define rule templates and their macros that can be used to mine the organisational perspective and to generate a resource-aware, declarative process model. We identified three different groups of organisational rule templates: resource allocation templates related to a single task, resource allocation templates related to more than one task, and cross-perspective rule templates, i.e., templates that express the influence of resources on the execution order of tasks. For every group we provide at least two representative examples that cover frequently needed organisational relations, according to the Workflow Resource Patterns [16]. Nonetheless, further rule templates can be defined individually according to the analyst’s needs. We first focus on rule templates that define resource allocation patterns, i.e., rules that specify the resources which are allowed to perform a certain task. The direct allocation of resources to a task can be extracted by analysing the direct(T,I)template. Given the free variables Tand Iand an event log with |T|distinct tasks and |I|distinct resources, there are |T| · |I|candidates to be checked. direct(T,I) iff start(of T) implies start(of T by I) Role-based allocation of resources can be identified with the role(T,G)template. Here, rule candidates for every task and group combination are generated, i.e., |T|·|G|rule candidates need to be checked. role(T,G) iff start(of T by :p) implies relation(subject p predicate hasRole object G) Organisational patterns can also relate to more than one task at the same time. The binding(T1,T2)template, e.g., can be used to discover if a task is always (mandatory) or should (recommended) be performed by the same resource as another task. With the separate(T1,T2)template, on the contrary, it is possible to discover task combinations that need to be or should be performed by different resources. For both templates, |T|2candidates need to be checked. binding(T1,T2) iff start(of T1 by :p) and start(of T2) implies start(of T2 by p) separate(T1,T2) iff start(of T1 by :p) and start(of T2) implies start(of T2 by not p) The orgDist(T1,T2,RT )template is used to discover relations that are defined in the organisational model between the resources that performed two different tasks. This template incorporates a variable RT for the different relation types in the considered organisational model. Like this, |T|2· |RT |rule candidates exist. 8 Sch¨onig et al. orgDist(T1,T2,RT) iff start(of T1 by :p1) and start(of T2 by :p2) implies relation(subject p1 predicate RT object p2) Moreover, the organisational perspective can affect the execution order of tasks, i.e., the control flow of the process. There may be processes in which a sequence between tasks only holds for specific resources or for resources with a specific role. These patterns can be discovered by the roleSequence(T1,T2,G) and the resourceSequence(T1,T2,I)templates, respectively. For these templates, |T|2· |G|and |T|2· |I|candidates need to be checked. roleSequence(T1,T2,G) iff start(of T2 by :p at :t) and relation(subject p predicate hasRole object G) implies complete(of T1 at < t) resourceSequence(T1,T2,I) iff start(of T2 by I at :t) implies complete(of T1 at < t) 3.4 Pre- and Post-processing Real-life event logs and organisational models potentially contain a big set of distinct tasks, resources and groups. For instance, the BPI challenge 2011 event log [21] of a hospital information system contains 623 different tasks and 42 organisational groups. By only considering the role template, this already leads to 623 ·42 = 26166 candidates to be checked. Although many of these parameter combinations never occur together in the same trace, the corresponding rules need to be checked. This problem also becomes obvious when considering task/resource combinations of the event log in Table 1. The resource i4only occurs together with task t1. Hence, candidates of the direct template where I=i4 and T6=t1are trivially true in all traces and can be neglected without checking. The method proposed by Maggi et al. [20] uses the well-known Apriori algorithm to pre-process the log and to extract task combinations that frequently occur together. A task combination is considered to be relevant if it occurs in a sufficient number of traces, i.e., above a given threshold minSupp. A minSupp of 5%, e.g., claims that only rule candidates are considered whose parameter combinations occur in at least 5% of the recorded traces. We extended this method in [22] to also extract task/resource and task/group combinations that frequently occur together. This way, it is also possible to dramatically reduce the number of organisational rule candidates by abstracting from infrequent parameter combinations. Hence, for the example log, only 1 out of 3 direct(T,i4)candidates are generated and checked. Furthermore, when automatically generating a declarative process model, there are potentially extracted rules that are redundant. Consider, e.g., that a specific task t1has always been performed by a resource i1who has a role g1according to the organisational model. Then, the proposed method will (inevitably) discover a role(t1,g1)rule. This rule is redundant, since a direct allocation rule direct(t1,i1)will also be discovered. In case of i1hasRole g1the role rule is already implied in the direct rule. Redundant rules complicate the Mining the Organisational Perspective in Agile Business Processes 9 Fig. 4: User-interface of the DpilMiner during the analysis of an event log understandability of discovered models. Maggi et al. [23] proposed a technique to post-process a discovered model and to remove redundant, weaker rules if they are already implied in stronger rules only focusing on the hierarchy of control flow perspective templates. We extended this method to also consider the rule hierarchies of organisational rules. Redundancy may also be caused by the interplay of three or more organisational rules. Consider, e.g., a set of discovered binding rules, such as binding(t1,t2),binding(t2,t3)and binding(t1,t3). Here, the rule between t1and t3is redundant because it belongs to the transitive closure of the other rules. In other words, if task t1has always been performed by the same resource as t2, and t3has always been performed by the same resource as t2, then also t1and t3have been performed by the same resource. Not all rule types can be reduced using transitive reduction. Separate rules, e.g., are not transitive, i.e., if t1is not performed by the same resource as t2, and t2is not executed by the same resource as t3, then we cannot conclude automatically that t1is also not performed by the same resource as t3. 4 Implementation and Experiments The problem of checking a large set of rule candidates can be solved by efficient pattern matching methods like the rete algorithm [24]. Instead of checking each rule separately, the rete algorithm first identifies common parts of the provided set of rules and constructs a rete network. Based on this decision network, common rule parts just need to be checked once. The JBoss Drools platform [25] provides a current implementation of this method. In order to check rule candidates with Drools, they are translated to the Drools Rule Language (DRL). The described approach has been implemented in the DpilMiner application. Fig. 4 shows the DpilMiner user-interface and some discovered rules when analysing the application to an event log. To analyse performance and applicability, we applied the DpilMiner with different configurations using an event log