Lecture 3 Business Process Modelling
Lecture 3 Business Process Modelling
Contents
1. First Steps with BPMN
2. Branching and Merging
3. Business Objects
4. Resources
5. Process Decomposition
6. Process Model Reuse
7. Recap
Process Modeling in the BPM Lifecycle
Management Processes
Examples for BPM lifecycle and process mining identification Core Processes
A E
D
5m 3m 5m 10m 30m 2h 10m
15m
C
1.5h 10min
Conformance and Process As-is process
performance discovery model
insights
A B C D E
Process Process
monitoring analysis
Executable Insights on
process weaknesses and
model their impact
Process Process
implementation To-be process redesign
model
Chapter 3: Essential Process Modeling
Contents
1. First Steps with BPMN
2. Branching and Merging
3. Business Objects
4. Resources
5. Process Decomposition
6. Process Model Reuse
7. Recap
Business Process Model and Notation (BPMN)
start end
activity event gateway sequence
flow
Let’s start modelling
Order-to-cash
A typical order-to-cash process is triggered by the receipt of a purchase order from a
customer. The purchase order has to be checked against the stock regarding the
availability of the item(s) requested. Depending on stock availability the purchase order
may be confirmed or rejected.
If the purchase order is confirmed, an invoice is emitted and the goods requested are
shipped. The process completes by archiving the order or if the order is rejected.
Solution in BPMN: Order-to-cash
end
Reject order
activity Items not in
event
Order
stock
rejected
Check stock split gateway
availability
end
Purchase
order Items in
event
received stock Confirm Emit Archive
Ship goods
start order invoice order
Order
event fulfilled
Naming conventions
• Event: noun + past-participle verb (e.g. insurance claim lodged)
• Activity: imperative verb + noun (e.g. assess credit risk)
10
activity
gateway
Sequence flows represent the order in which activities and events
will be performed.
They can be assigned a condition to distinguish between alternative
branches.
sequence
flow ▪ Different types of flows
12
Order #1
Order #2
Order #3
Reject order
Items not in
Order
stock
rejected
Check stock
availability
Purchase
order Items in
received stock Confirm Emit Archive
Ship goods
order invoice order
Order
fulfilled
13
Reject order
Items not in
Order
stock
rejected
Check stock
availability
Purchase
order Items in
received stock Confirm Emit Archive
Ship goods
order invoice order
Order
fulfilled
15
Solution: Order-to-cash
Reject order
Items not in
Order
stock
rejected
Check stock
availability split Emit invoice
Purchase
order Items in
received stock Confirm Emit Archive
Ship goods
order invoice order
Order
fulfilled
split join
Ship goods
Mapping, Abstraction, and Purpose of a Model
?
Chapter 3: Essential Process Modeling
Contents
1. First Steps with BPMN
2. Branching and Merging
3. Business Objects
4. Resources
5. Process Decomposition
6. Process Model Reuse
7. Recap
19
Once a loan application has been approved by the loan provider, an acceptance
pack is prepared and sent to the customer. The acceptance pack includes a
repayment schedule which the customer needs to agree upon by sending the signed
documents back to the loan provider. The latter then verifies the repayment
agreement: if the applicant disagreed with the repayment schedule, the loan provider
cancels the application; if the applicant agreed, the loan provider approves the
application. In either case, the process completes with the loan provider notifying the
applicant of the application status.
A little more on gateways: AND Gateway
Order-to-cash
Reject order
Items not in
stock Order
rejected
Check stock
availability XOR-split Send invoice
Purchase
order Items in
received stock
Archive
Confirm order
order
Order
AND-split AND-join fulfilled
Ship goods
Exercise 3.2
A loan application is approved if it passes two checks: i) the applicant’s loan risk
assessment, done automatically by a system, and ii) the appraisal of the property for
which the loan has been asked, carried out by a property appraiser. The risk
assessment requires a credit history check on the applicant, which is performed by a
financial officer. Once both the loan risk assessment and the property appraisal have
been performed, a loan officer can assess the applicant’s eligibility. If the applicant is
not eligible, the application is rejected, otherwise the acceptance pack is prepared
and sent to the applicant.
26
Haptic
Standalone
▪ E.g. Visio, Camunda Modeler
Repository-based
▪ E.g. ARIS, Signavio, Apromore
XOR / AND are not always what we need...
XOR-split XOR-join
AND-split AND-join
Solution 2
AND-split AND-join
XOR-split XOR-join
OR Gateway
Once a loan application is received by the loan provider, and before proceeding with
its assessment, the application itself needs to be checked for completeness. If the
application is incomplete, it is returned to the applicant, so that they can fill out the
missing information and send it back to the loan provider. This process is repeated
until the application is found complete.
38
Modelling Language
Vocabulary
Modelling Language
Syntax: set of rules to govern how these
elements can be combined (BPMN: start
Vocabulary events only have outgoing sequence flows
whereas end events only have incoming
sequence flows).
Syntax Semantics Notation
41
Modelling Language
Semantics: bind these elements, including
their textual descriptions, to a precise
Vocabulary meaning (in BPMN: activities model
something actively performed during the
Syntax Notation
business process, while XOR gateways
Semantics
model exclusive decisions and simple
merging points).
42
Contents
1. First Steps with BPMN
2. Branching and Merging
3. Business Objects
4. Resources
5. Process Decomposition
6. Process Model Reuse
7. Recap
Business Objects (aka artifacts)
Can be:
▪ Physical or digital information artifacts (e.g. an order on paper, an invoice on PDF)
▪ Physical material (e.g. a box containing the ordered goods)
44
Our Order-to-cash process, again
Send
invoice
Confirm Archive
Items in order order
stock Order
fulfilled
Check stock
Ship goods
availability
Purchase
order Items not in
received stock
Reject order
Order
rejected
46
Solution
Invoice
Purchase
Purchase
Order
Order
[approved]
Purchase Purchase Send [approved]
Order Order invoice
[checked]
Confirm Archive
Items in order order
stock Order
fulfilled
Check stock
Ship goods
availability
Purchase
order Items not in
received stock
Reject order
Order Orders DB
rejected Shipment
notice
Warehouse DB
Purchase
Order
[rejected]
The purchase order document serves as an input to the stock availability check against the Warehouse
DB. Based on the outcome of this check, the status of the document is updated, either to “approved” or
“rejected”. If the order is approved, an invoice and a shipment notice are produced. The order is then
archived on the Orders DB.
47
Do data objects affect the token flow?
Exercise 3.5
Is there any missing data
object or data store in the
example below?
Do we always need to model data objects?
BPMN Text Annotations
A Text Annotation is a mechanism to provide additional text information to the model reader
▪ Doesn’t affect the flow of tokens through the process
Clear vendor
Ship goods
line items
51
Exercise 3.6
Put together the four fragments of the loan assessment process that
you created in Exercises 3.1–3.4.
Hint. Look at the labels of the start and end events to understand the order
dependencies among the various fragments. Then extend the resulting
model by adding all the required business objects. Moreover, attach
annotations to specify the business rules behind i) checking an application
completeness, ii) assessing an application eligibility, and iii) verifying a
repayment agreement.
Chapter 3: Essential Process Modeling
Contents
1. First Steps with BPMN
2. Branching and Merging
3. Business Objects
4. Resources
5. Process Decomposition
6. Process Model Reuse
7. Recap
Resources
54
Resources
Active resources:
▪ Process participant
▪ Software system
▪ Equipment
Resource class:
A group of (active) resources that are interchangeable, e.g. a role, an
organizational unit or the whole organization.
55
Resources in the order-to-cash example
56
BPMN Elements – Pools & Lanes
Pool
Captures a resource class. Generally used to model a business party (e.g. a
whole company)
Pool
Lane
Captures a resource sub-class within a resource class by partitioning a pool.
Generally used to model departments (e.g. shipping, finance), internal roles (e.g.
Manager, Associate), software systems (e.g. DBMS, CRM) or equipment (e.g.
Manufacturing plant)
Lane
Pool
Lane
Lane
Lane
57
Solution: Order-to-cash
14
Exercise 3.7
Extend the business process for assessing loan applications that you
created in Exercise 3.6 by considering the following resource
aspects.
The process for assessing loan applications is executed by four roles within
the loan provider: a financial officer takes care of checking the applicant’s
credit history; a property appraiser is responsible for appraising the property;
an insurance sales representative sends the home insurance quote to the
applicant if this is required. All other activities are performed by the loan
officer who is the main point of contact with the applicant.
Exchanging information between business parties
Order-to-cash
The purchase order sent by the Customer is received by the Seller and
checked against the stock. This is done via an ERP module within the
Warehouse & Distribution department. If the purchase order is not
confirmed, the Sales department sends an order rejection to the
Customer, otherwise it sends an order confirmation.
Next, the Warehouse & Distribution department ships the goods and sends
a shipment notification to the Customer. Meantime, the Sales department
emits the invoice and sends it to the Customer. The process concludes
with the order being archived by the Sales department.
60
BPMN Elements – Message Flow
Pool 2
Pool 2
Receive
Pool 1
Pool 1
Send Receive
Send
61
BPMN Elements – Start Message Event
Message
Message
received
62
Solution: Order-to-cash
63
Pools, Lanes and Message Flows: syntax
19
Black box or white box?
When are messages sent or received?
Pool 2
Pool 2
Receive
Pool 1
Pool 1
Send Receive
Send
Note: the order of the message flows w.r.t. an activity is irrelevant, the
above rules always hold
66
When are messages sent or received?
• Message B is first received
before Activity can start.
• Message A is sent after,
upon Activity’s completion
• First, message B is
received, before Activity can
start.
• Then, message A is sent,
upon Activity’s completion
67
Process (or Orchestration) Diagram
Auctioning Service
Private view (white box)
Auctioning Service Conduct auction
68
Collaboration Diagram
Models a global business process between at least two business parties (each
modelled by a Pool)
Send delivery
Seller notification
Auction
Bid Bid
completion
acknowledgement
notification
Bidder
Public
process
69
Exercise 3.8
Contents
1. First Steps with BPMN
2. Branching and Merging
3. Business Objects
4. Resources
5. Process Decomposition
6. Process Model Reuse
7. Recap
Process decomposition
73
Process decomposition
Expanded Sub-process
Collapsed
Task
Sub-process
Activities
Use this feature to:
1. Improve understanding by breaking down large models
2. Identify parts that should be:
▪ repeated
▪ executed multiple times in parallel
▪ interrupted, or
▪ compensated
74
Example: Sub-Process
Process Invoice
no
mismatches
Enter Invoice /
Check Invoice
Credit Note
Mismatches
Details
mismatch
exists
Block Invoice
75
Solution
77
Hint. Use the building blocks that you created throughout Exercises
3.1–3.4.
79
Clear Order
Credit
Level 5 Check Credit
Record
available
...
Contact
customer
Credit not
available
account rep.
Business
process
“is predecessor
of”
82
Decomposition drivers:
▪ Logical: group elements meaningfully (e.g. common business object)
▪ Structural: up to 30 nodes (activities, events, gateways)
Chapter 3: Essential Process Modeling
Contents
1. First Steps with BPMN
2. Branching and Merging
3. Business Objects
4. Resources
5. Process Decomposition
6. Process Model Reuse
7. Recap
Embedded or global sub-processes?
Process Reuse
Such a sub-process is called “global” model, and is invoked via a “call” activity
(normal) Call
activity activity
88
Hint. Use the building blocks that you created throughout Exercises
3.1–3.4.
90
Sub-processes: syntax
Quote-to-order
Exercise 3.10
Contents
1. First Steps with BPMN
2. Branching and Merging
3. Business Objects
4. Resources
5. Process Decomposition
6. Process Model Reuse
7. Recap
Recap