Session 4 Lecture
Session 4 Lecture
AND
PROCESS DISCOVERY
Session 4
Week 2
2
EVENTS
Events
Types of event:
• Start
• Intermediate
• End
4
BPMN event types
5
So, when to use what?
Use message events only when the corresponding activity would simply send or receive a message and
do nothing else
6
Temporal events
7
Example
PO handling
A Purchase Order (PO) handling process starts when a PO is received. The PO is first registered. If
the current date is not a working day, the process waits until the following working day before
proceeding.
Otherwise, an availability check is performed and a PO response is sent back to the customer.
8
Recap: Message and Timer events
9
Data-based vs. event-based choices
10
Choices outside our control…
Stock replenishment
A restaurant chain submits a purchase order (PO) to replenish its warehouses every
Thursday.
The restaurant chain’s procurement system expects to receive either a “PO Response”
or an error message.
However, it may also happen that no response is received at all due to system errors
or due to delays in handling the PO on the supplier’s side.
data-driven event-driven
XOR-split XOR split
12
Solution: event-driven XOR split
Stock replenishment
13
Exercise
If after another five days there is still no response, another reminder is sent and
so on until the completed questionnaire is received.
14
EXCEPTION HANDLING
Example 1: terminate event
Signal the negative outcome…
16
Example 2: terminate event
Abort the process by removing all tokens…
17
Exception handling
External: something goes wrong outside the process, and the execution of the
current activity must be interrupted. Handled with the Message event
Internal: something goes wrong inside an activity, whose execution must thus be
interrupted. Handled with the Error event
Timeout: an activity takes too long and must be interrupted. Handled with the
Timer event
All these events are catching intermediate events. They stop the enclosing activity and
start an exception handling routine.
18
Internal exception: error event
19
Solution: internal exception Throwing and catching
error events must have
the same label
PO handling
Handle PO
Handle PO
Nextworking
Next working day
day Items not
weekend/
weekend/ available
holiday
holiday
weekday
weekday Check
Check Send POSend PO
Register PO
Register PO Availability
Availability ResponseResponse
Items
PO
PO
PO available Response PO PO
Response
Received
Received Registered
Registered fulfilled
fulfilled
sentsent
20
Example: Activity Timeout
Order-to-transportation quote
Once a wholesale order has been confirmed, the supplier transmits this order to
the carrier for the preparation of the transportation quote.
In order to prepare the quote, the carrier needs to compute the route plan
(including all track points that need to be traversed during the travel) and
estimate the trailer usage.
By contract, wholesale orders have to be dispatched within four days from the
receipt of the order.
This implies that transportation quotes have to be prepared within 48 hours from
the receipt of the order to remain within the terms of the contract.
21
Solution: Activity Timeout
Order-to-transportation quote
22
Non-interrupting boundary events
Must be attached to
the activity’s boundary
23
Solution: non-interrupting boundary events
PO handling
Handle PO
Customer
address
updated
24
Summary
25
And once I’ve got a model, what’s next?
26
DISCOVERY PROCESS
BPM Lifecycle
28
Process Discovery
1. Defining the setting: This phase is dedicated to assembling a team in a company that will be
responsible for working on the process.
3. Conducting the modeling task: This phase deals with organizing the creation of the process
model. The modeling method gives guidance for mapping out the process in a systematic
way.
4. Assuring process model quality: This phase aims to guarantee that the resulting process
models meet different quality criteria. This phase is important for establishing trust in the
process model.
29
Who is involved?
30
Stakeholders in Detail
31
Challenge 1:
Fragmented Process Knowledge
32
Challenge 2:
Domain Experts think on Instance Level
33
Expertise of Process Analysts
Problem understanding
• Episodic knowledge available to get to root of problem
• Knowledge organisation helps to structure problem
Problem solving
• Trigger identification (problem-related cues)
• Hypothesis management (formulation and testing of hypotheses)
• Goal setting (what needs to be achieved next)
• Top-down strategy driven by analysis goals
Modelling skills
• Well-structured and laid out
• Systematically labelled
• Explicit start and end points of a process
• Appropriate granularity and decomposition
34
Process Discovery Techniques
Evidence-based
• Document analysis
• Observation
• Process mining
Interview-based
Workshop-based
35
Document Analysis
Documents point to existing roles, activities and business objects
Forms
Work instructions
36
Observation
37
Process Mining
38
Interviews
Interview
Validation Modeling
• Correct
• Complete
Verification
• Sound
39
Workshops
• Gather all key stakeholders together
• Often: software-supported, a model is directly created during the workshop (separate role)
40
Strengths and Weaknesses
Technique Strength Weakness
Document Analysis • Structured information • Outdated material
• Independent from availability of • Wrong level of abstraction
stakeholders
Consider that the order process of your favorite online book retailer has
ten major activities that are conducted by different persons.
How much time do you need approximately for creating a process model
that is validated and approved by the process owner?
42
Process Discovery Effort
This process contains ten major activities that are executed by different persons.
We can assume that there will be a kickoff meeting with the process owner and some important domain experts
on day one. One day might be required to study available documentation.
An interview with one domain expert can take from two to three hours, such that we would be able to meet two
persons per day, and document the interview results at after hours/overtime.
Let us assume that we meet some persons only once while we seek feedback from important domain experts in two
additional interviews. Then, there would be a final approval from the process owner.
This adds up to one day for the kickoff, one for document study, five days for the first iteration interviews, and
further five days if we assume that we meet five experts three times.
Then, we need one day for preparing the meeting for final approval with the process owner, which would be on the
following day. If there are no delays and scheduling problems, this yields 2 + 5 + 5 + 2 = 14 work days as a minimum.
43
Any Difference in Discovery?
44
Discovery and Culture
Before starting with process discovery, it is important to understand the culture and the sentiment of an
organization.
There are companies that preach and practice an open culture in which all employee are encouraged to utter
their ideas and their criticism.
Such organizations can benefit a lot from workshops as participants are likely to present their ideas freely.
In strictly hierarchical organizations, it is necessary to take special care that every participant gets an equal
share of parole in a workshop and that ideas and critique are not hold back.
It might be the case that the young dynamic company has a more open culture than the company with
extensive health and security regulations.
45
Organizing the Gathered Material
1. Identify the process boundaries
46
Process Boundaries
•Under which condition does the process start?
47
Identify Activities and Events
48
Identify Resources and Handovers
49
Identify Control Flow
50
Your modelling project
• Control flow
• Activities
• Gateways
• Conditions
• Events
• Resources
•Describe the process in such a way that it can be used to trace in which state the
admission/doctor-studies is and who is conducting which steps of processing.
51
Assessment 2 (Part A): 1000-words Literature Review
• This is an individual assessment.
• Choose and study a small/medium organisation and create an AS-IS model with a Business Process
Modelling tool (LucidChart or Signavio).
• Must use AND, XOR gateways, lanes and pools, and correct connections with relevant icons to build
AS-IS model (organization’s current business model).
53
Recap
Repetition markers:
Events: timer,
BPMN sub- loop marker and Event-based choice
message and error
processes parallel multi- gateway
events
instance marker
Boundary events:
Error events (throw BPM Lifecycle Process Discovery
interrupting and
and catch)
non-interrupting
54
END OF CHAPTER