MSIS Advanced BPM - Slide111to187
MSIS Advanced BPM - Slide111to187
111
BPMN Main Elements - Recap
Spring 2024
Activity
Message Association
Gateway
Data Data
Object Store
112
Lane
BPMN Gateways – Recap
• Exclusive (XOR)
Spring 2024
• Exclusive decision take one branch
• Inclusive (OR)
• Inclusive decision take one or several branches depending on conditions
113
• Inclusive merge proceed when all active incoming branches have completed
Spring 2024
ISD MS Prg @CSF-KU
114
Anything wrong with this model?
Spring 2024
ISD MS Prg @CSF-KU
115
Is this better?
Spring 2024
ISD MS Prg @CSF-KU
117
Spring 2024
sub-process
• Level 1:
Spring 2024
• Value Chain
• No gateways
120
• Each activity chain may be a sub-process
©2011 IS Department, CSF, KU
Guideline: Multi-level Modeling
• Level 2+:
Spring 2024
• Expand each activity in the value chain
Spring 2024
• Logical milestones towards achieving the outcome of a
process
Spring 2024
ISD MS Prg @CSF-KU
Consider re-
submission
Check purchase
request for 1st
approval
approved rejected
Purchase Request
Check purchase
request for 2nd
approval
approved
Send approved
request to requestor
123
Approved Purchase Request
Fragment of SCOR’s Process Hierarchy
Spring 2024
Quote Order
Receive
Credit
Available? Clear Order
Access Credit
Level 5 Record
Contact
customer
account rep. ...
124
APICS SCOR framework: http://www.apics.org/
Side Note: Bizagi Milestones (Non-standard BPMN)
Spring 2024
ISD MS Prg @CSF-KU
125
Collapsed
process model
Spring 2024
ISD MS Prg @CSF-KU
126
Sub-processes … 2
Spring 2024
process
Spring 2024
• Use this feature to:
1. Decompose large models into smaller ones, making
Spring 2024
ISD MS Prg @CSF-KU
130
131
Block-structured repetition:
Activity loop
Spring 2024
that a task or a sub-process may be
Task Sub-process
Loop Loop
132
Spring 2024
XOR-join: entry point XOR-split: exit point
Spring 2024
Finalise
Assign Investigate
Ministerial
Ministerial Ministerial
Response
Enquiry Enquiry
Ministerial Ministerial
Enquiry Enquiry
Prepare Review
Ministerial Ministerial
Response Response
Enquiry Response
investigated reviewed
Spring 2024
• The claims officer writes a “settlement recommendation”
• If the claim is marked as “Not OK”, it is sent back to the claims officer and
the examination is repeated
• If the claim is marked as “OK”, the claims officer notifies the settlement to
the customer 135
Spring 2024
is executed multiple times concurrently Multi-Instance Multi-Instance
Task Sub-process
• Send and gather questionnaires from multiple witnesses in the context of an insurance
136
claim
Spring 2024
from all preferred suppliers
Spring 2024
Obtain Quote
from Supplier B
Obtain Quote
from Supplier D
138
Obtain Quote
from Supplier E
Solution: with multi-instance activity
Procurement
cardinality
Spring 2024
For each supplier
139
ICE: Motor insurance claim
lodgment
Spring 2024
the witnesses that were present, in order to lodge
the insurance claim
Spring 2024
ISD MS Prg @CSF-KU
141
Spring 2024
03 Advanced Process Modeling:
142
Events
Spring 2024
happening during the execution of a process
• Intermediate
143
• End
©2011 IS Department, CSF, KU
BPMN event types
Start Intermediate End
Spring 2024
process is created (start) or completed (end),
without specifying the cause for creation/completion Catching
= Receive
invoice
Invoice
received
Spring 2024
= Send invoice
= Send invoice
Invoice
sent
Receive
Invoice
≠ invoice
145
received
So, when to use what?
• Use message events only when the corresponding activity would
simply send or receive a message and do nothing else
Spring 2024
ISD MS Prg @CSF-KU
146
Temporal events
Spring 2024
Start Timer Event – Indicates that an instance of the
process is created at certain date(s)/time(s), e.g. start
147
Example: PO Handling
• A Purchase Order (PO) handling process starts when a PO is
received
Spring 2024
• The PO is first registered:
Spring 2024
set down the matter for the upcoming trials
Spring 2024
contacted to determine if they are all ready to go to trial
Spring 2024
ISD MS Prg @CSF-KU
151
Spring 2024
on the first working day of each month (Day 1)
Spring 2024
Day 7 is re-attempted
Spring 2024
suspended until payment is received
Spring 2024
process message message process
starts upon received sent during ends upon
Spring 2024
• The choice can be made immediately after the token arrives
from the incoming flow
data-driven event-driven
XOR-split XOR split 157
Data-based vs. event-based Choices
Spring 2024
based on expressions evaluated over available data
something happens
158
• Choice is based on a “race between events”
Spring 2024
• Exclusive decision gateway (XOR-split)
Spring 2024
to replenish its warehouses every Thursday
Spring 2024
at all due to system errors or due to delays in handling the
PO on the supplier’s side
Spring 2024
ISD MS Prg @CSF-KU
162
ICE
Spring 2024
to send a questionnaire to the claimant to gather additional
information
164
Let’s extend our PO handling
process (PO Handling)
Spring 2024
• The PO is first registered
• If the current date is not a working day, the process waits until
Spring 2024
• A PO change request may be received anytime after the PO is
registered
Spring 2024
its “normal” course
Spring 2024
ISD MS Prg @CSF-KU
168
Example 2: terminate event
Abort the process by removing all tokens…
Spring 2024
ISD MS Prg @CSF-KU
169
Exception handling
Handling exceptions often involves stopping a sub-process and performing a special
activity
Spring 2024
External: something goes wrong outside the process, and the
execution of the current activity must be interrupted (Handled with
Spring 2024
• A PO change request may be received anytime after the PO is
registered
Spring 2024
Handle PO
Next workingNext
day working day
weekend/ weekend/
holiday holiday
PO Change PO Cancel
received received
Handle PO
Cancelation
Register PO
PO
Change
canceled
172
Internal exception: error event
Start Intermediate End Error Event – Indicates an error: the “end”
version generates an error event while the
“catching intermediate” version consumes it
Spring 2024
when attached to the boundary of an activity
Must be attached to the
activity’s boundary
Compensate Event – Indicates that the enclosing
173
Example: internal exception
PO handling
• Consider again our “PO Handling process” example with the following
extension: if an item is not available
Spring 2024
• Any processing related to the PO must be stopped
PO Change PO Cancel
received received 174
Handle PO
Cancelation
Register PO
PO
Change
canceled
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
Spring 2024
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
Registered
Registered fulfilled
fulfilled
Spring 2024
supplier transmits this order to the carrier for
the preparation of the transportation quote
Spring 2024
dispatched within four days from the receipt
Spring 2024
ISD MS Prg @CSF-KU
178
More on the PO handling example…
PO handling
Handle PO
Spring 2024
weekday Check Send PO
Register PO Availability Response
Items
PO PO available PO
Response
Received Registered fulfilled
sent
• The customer may send a request for address change after the PO
registration
• When such a request is received, it is just registered, without further 179
action
Non-interrupting boundary events
• Sometimes we may need to trigger an activity
Spring 2024
in parallel to the normal flow, (i.e. without
interrupting the normal flow)
Handle PO
Spring 2024
Next working day Items not
weekend/ available
holiday
Customer
address
181
updated
Summary
In this lecture we have learned about:
Spring 2024
• Repetition markers • Boundary events
• Loop marker and parallel • Interrupting and non-
events 182
Spring 2024
Complex Exceptions” section
• Do Exercise 4.13
183
• Later on present your findings in the class
©2011 IS Department, CSF, KU
Reading Homework Group2
Spring 2024
Processes” section
• Do Exercise 4.14
184
• Later on present your findings in the class
©2011 IS Department, CSF, KU
Reading Homework Group3
Spring 2024
section
• Do Exercise 4.15
185
• Later on present your findings in the class
©2011 IS Department, CSF, KU
Reading Homework Group4
Spring 2024
section
• Do Exercise 4.16
186
• Later on present your findings in the class
©2011 IS Department, CSF, KU
Reading Homework Group5
Spring 2024
• Pages 125 to 127