flexible behaviour of human actors in distributed workflowsvsis- · microsoft powerpoint -...

52
Flexible Behaviour of Human Actors in Distributed Workflows Adwoa Donyina & Reiko Heckel ([email protected] ) ([email protected] ) Department of Computer Science University of Leicester United Kingdom

Upload: others

Post on 12-Oct-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Flexible Behaviour of Human Actors in Distributed

Workflows

Adwoa Donyina & Reiko Heckel([email protected]) ([email protected])

Department of Computer Science University of Leicester

United Kingdom

Page 2: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Outline

OverviewCase StudyDomain Specific Language (DSL)Application ScenarioRule-based Approach

Stochastic Graph Transformation SimulationRelated WorksCurrent WorkFuture Work

Page 3: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Motivation

Requirement: Test: scheduling protocols, polices and regulationGoal: business productivity

Possible Solution:Model and simulate business processes to gather data

Page 4: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Problem

Human behaviour is only predictable to a degree of probability

� It is difficult to accurately model and simulate the dynamic behaviour of humans in business processes, while clearly defining participants, roles and responsibilities.

Page 5: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Key Modelling Language Requirements

1. Dynamic (re)-allocation of roles

2. Temporal Escalation Handling

3. Scheduling and Load Balancing

4. Human Error and Recovery (Backtracking)

Predetermined polices

Human unpredictability

Page 6: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Feature Diagram: BP for Flexible Human Actors (BPFHA)

Role promotion and demotion

BPFHA

Dynamic (re)-assignment

Access Control

Human Error &Recovery

Scheduling Assignment Policy

Load Balancing

Escalation

PriorityDeadline

Page 7: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Basic Methodology Steps1. Describe: Business requirements

Formulate: Performance questions

2. Model: Business process

3. Define: Tests to answer performance questions

4. Assign: Probability distribution to actions in the business process

5. Perform: Simulation

6. Analyze: Simulation results

Page 8: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Outline

OverviewCase StudyDomain Specific Language (DSL)Application ScenarioRule-based Approach

Stochastic Graph Transformation SimulationRelated WorksCurrent WorkFuture Work

Page 9: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Case Study: Performance Question

Does escalation and/or load balancing: increase the percentage of prescriptions that are completed within a given deadline,

or Reduce the time that prescription cases run past their deadline?

Page 10: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Pharmacy Case Study:Actors, Roles, Responsibilities

Actors (Job Position) RolesDispensing Pharmacist

Entry Technician

Filling Technician

Pharmacy Cashier

Customer

Page 11: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Determine the effectiveness of Escalation Handling & Load Balancing

Escalation Handling:Level 1 pharmacy cashiers - entry technicianLevel 2 pharmacy cashiers - filling techniciansLevel 3 untrained pharmacy students - filling technicians and/or entry technicians

Load Balancing:The option to transfer prescriptions

Page 12: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Typical:Scenario

Typing Prescription Printing Prescription Label Filling Prescription

Checking Filled Prescription

Receive PaymentCounsel Customer

Occasional:Scenario

Page 13: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Finite State Machine

Page 14: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Outline

OverviewCase StudyDomain Specific Language (DSL)Application ScenarioRule-based Approach

Stochastic Graph Transformation SimulationRelated WorksCurrent WorkFuture Work

Page 15: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

MetamodelLinguistic: ontological instance-of relationships

Elements: Actor (Person)Role (RoleInstance)Process(Case)EscalationCapabilityArtifactType (Artifact)

AttributeDeclaration (AttributeValue)

Evolved from analysis of other approaches:Role Based Access Control (RBAC)Organisational Metamodel

Page 16: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM
Page 17: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

M1-O1 Concrete Syntax(Part 1 of 2)

Page 18: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

M1-O1 Concrete Syntax (Part 2 of 2)

Page 19: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

DSL Syntax (M1-O0)

1)

2)

3)

4)

8)

6)

7)

5)

9)

10)

Page 20: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Outline

OverviewCase StudyDomain Specific Language (DSL)Application ScenarioRule-based Approach

Stochastic Graph Transformation SimulationRelated WorksCurrent WorkFuture Work

Page 21: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Initial State: 1 Case

Escalation level 1

“check”state

1 min to deadline

Requires a Pharmacist

Page 22: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Minute Later: Arrival of new high priority case

Priority level 3

pharmacistassigned

Missing filled prescription∴ backtrack

to “fill” state

Escalation level raised

At “type”state

Page 23: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

2 minutes later: priority vs. escalation

Pharmacist assigned to entry technician roleCashier temp

capability Request filling technician

Page 24: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Minute Later: temp assignment and accomplished action

Prescription is typed

Temp assignment

ready to print

Page 25: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Outline

OverviewCase StudyDomain Specific Language (DSL)Application ScenarioRule-based Approach

Stochastic Graph Transformation SimulationRelated WorksCurrent WorkFuture Work

Page 26: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Graph Transformation System Background Information

Type GraphModels the conceptual structure and provides types for the instance graphs

Page 27: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

GT Background Continued

Graph Transformation (GT) Rules

Composed of pair of instance graphsLeft-hand side (L): precondition of the ruleRight-hand side (R): postcondition of the rule

Used for rule-based modification on instance graphs

Page 28: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Graph Transformation Rules

Domain SpecificType PrescriptionPrint LabelReceive PaymentFill PrescriptionCheck PrescriptionCounselDistributeSkip actionBacktrack actionEscalation Trigger

ManagerialRole requestRole AssignmentRole UnassignmentClock tick

Page 29: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Examples of GT Rules applied in scenario

Escalation TriggerAssignment Backtrack New case Request roleDomain specific action

Page 30: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

GT Rule: Escalation Trigger

Page 31: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

GT Rule: Assign Pharmacist

Page 32: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

GT Rule: Backtrack check state

Page 33: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

New Case:Delivery type and high priority

Page 34: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Request FillingTechnician

Page 35: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Outline

OverviewCase StudyDomain Specific Language (DSL)Application ScenarioRule-based Approach

Stochastic Graph Transformation SimulationRelated WorksCurrent WorkFuture Work

Page 36: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Stochastic Graph Transformation

Normal Distribution Exponential Distribution

Page 37: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Graph-based Stochastic Simulation (GraSS)

An extension of the Viatra Eclipse-based model transformation tool

Define metamodel, and models in Viatra model space

Translate GT Rules in Viatra textual syntax

Page 38: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Metamodel in Viatra

Page 39: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Translate GT rules in DSL into Viatra textual syntax

Page 40: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Example GT rule in Viatra textual syntax (VTCL)

gtrule BacktrackRule_checkState()= {precondition pattern lhs(Case_,State_) = {

Case(Case_);AttributeValue(AttributeValue_);find RequiresChecked(Case_,AttributeValue_);find DPassigned (Case_,RoleInstance_,Role_,Person_); neg find FilledPrescriptionExist(Case_,Artifact_,ArtifactType_);Case.state(State_);Case.attr4(R1,Case_,State_);check (value(State_)== "check");

}action {

setValue(State_,"fill");println("error (backtrack to fill state)");

}}

Page 41: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Simulation

2500 Simulation Steps

Batch size 3

Represents 2.77 hours

Page 42: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Start Graph in DSL

Page 43: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Start Graph in Viatra

Page 44: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Simulation Results

Page 45: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Simulation Results

Page 46: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Outline

OverviewCase StudyDomain Specific Language (DSL)Application ScenarioRule-based Approach

Stochastic Graph Transformation SimulationRelated WorksCurrent WorkFuture Work

Page 47: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Related Work vs. RequirementsR1: Dynamic (re)-allocation of roles

R2:Temporal Escalation Handling

R3: Scheduling & Load Balancing

R4:Human Error & Recovery

a) BPMNb) WS-Humantask

c) MILANOd) FlowMark

e) InConcert

f) Little-Jilg) ADONIS

Page 48: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Outline

OverviewCase StudyDomain Specific Language (DSL)Application ScenarioRule-based Approach

Stochastic Graph Transformation SimulationRelated WorksCurrent WorkFuture Work

Page 49: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Current Work

Page 50: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Outline

OverviewCase StudyDomain Specific Language (DSL)Application ScenarioRule-based Approach

Stochastic Graph Transformation SimulationRelated WorksCurrent WorkFuture Work

Page 51: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM

Future Work: Evaluate the method

Usability: usability testing: ease-of-use

Expressiveness:Check completeness with respect to requirements

Scalability: larger models and longer periods of simulation

Page 52: Flexible Behaviour of Human Actors in Distributed Workflowsvsis- · Microsoft PowerPoint - Ppt0000004.ppt [Schreibgeschützt] Author: Alex Created Date: 3/11/2011 2:07:12 PM