0% found this document useful (0 votes)
5 views77 pages

MSIS Advanced BPM - Slide111to187

The document provides an overview of Advanced Process Modeling using BPMN, covering key elements such as flow objects, gateways, and events. It emphasizes the importance of sub-processes for decomposing complex models and introduces multi-level modeling guidelines. Additionally, it discusses event types, including start, intermediate, and end events, along with practical exercises for modeling processes like billing and insurance claims.

Uploaded by

shahhin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views77 pages

MSIS Advanced BPM - Slide111to187

The document provides an overview of Advanced Process Modeling using BPMN, covering key elements such as flow objects, gateways, and events. It emphasizes the importance of sub-processes for decomposing complex models and introduces multi-level modeling guidelines. Additionally, it discusses event types, including start, intermediate, and end events, along with practical exercises for modeling processes like billing and insurance claims.

Uploaded by

shahhin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 77

Spring 2024

ISD MS Prg @CSF-KU


03 Advanced Process Modeling

111
BPMN Main Elements - Recap

Flow Objects Connections

Spring 2024
Activity
Message Association
Gateway

ISD MS Prg @CSF-KU


Event
Flow

Pools & lanes Artifacts


Pool

Data Data
Object Store
112
Lane
BPMN Gateways – Recap

• Exclusive (XOR)

Spring 2024
• Exclusive decision take one branch

• Exclusive merge proceed when one branch has completed

ISD MS Prg @CSF-KU


• Parallel (AND)
• Parallel split take all branches

• Parallel join proceed when all incoming branches have completed

• Inclusive (OR)
• Inclusive decision take one or several branches depending on conditions
113
• Inclusive merge proceed when all active incoming branches have completed

©2011 IS Department, CSF, KU


Exercise: critique the following model

Spring 2024
ISD MS Prg @CSF-KU
114
Anything wrong with this model?

Spring 2024
ISD MS Prg @CSF-KU
115
Is this better?

ISD MS Prg @CSF-KU Spring 2024


116
Identifying sub-processes
Acquire raw materials

Spring 2024
ISD MS Prg @CSF-KU
117

Ship and invoice


Expanded…

ISD MS Prg @CSF-KU Spring 2024


118
Sub-processes … 1

• An activity in a process can invoke a separate

Spring 2024
sub-process

ISD MS Prg @CSF-KU


• Use this feature to:
1. Decompose large models into smaller ones,
making them easier to understand and maintain
119

©2011 IS Department, CSF, KU


Guideline: Multi-level Modeling

• Level 1:

Spring 2024
• Value Chain

ISD MS Prg @CSF-KU


• Simple linear description of phases of a process

• 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

ISD MS Prg @CSF-KU


• Add incrementally the following:
• Decisions, handoffs (lanes, pools)

• Parallel gateways, different types of events


121
• Data objects and data stores
©2011 IS Department, CSF, KU
Guideline: Multi-level Modeling

• At each level, decompose according to:

Spring 2024
• Logical milestones towards achieving the outcome of a
process

ISD MS Prg @CSF-KU


• Major objects used in the process

• Decompose until processes are of “reasonable” size


• e.q. Up to 20 nodes (tasks + events + gateways) per model 122

©2011 IS Department, CSF, KU


Value Chain with Sub-processes
Purchase Purchase Goods Invoice
Approval
Request Order Receipt Verification

Spring 2024
ISD MS Prg @CSF-KU
Consider re-
submission

Purchase Request process


rejected

Check purchase
request for 1st
approval

approved rejected
Purchase Request

Check purchase
request for 2nd
approval

approved

Send approved
request to requestor

Purchase Order process

Make copy of Forward to purchase


purchase request department

123
Approved Purchase Request
Fragment of SCOR’s Process Hierarchy

Process Receive and


Level 3 Inquity and Validate ...

Spring 2024
Quote Order

Receive

ISD MS Prg @CSF-KU


Order
Level 4 Enter Order Check Credit ...

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

For details see: http://tinyurl.com/pp5reuo


Side Note: Non-BPMN Value Chain Notation
(e.g. Signavio, ARIS)

Collapsed
process model

Spring 2024
ISD MS Prg @CSF-KU
126
Sub-processes … 2

• An activity in a process can invoke a separate sub-

Spring 2024
process

ISD MS Prg @CSF-KU


• Use this feature to:
1. Decompose large models into smaller ones, making
them easier to understand and maintain
2. Share common fragments across multiple processes 127

©2011 IS Department, CSF, KU


Shared Sub-process

ISD MS Prg @CSF-KU Spring 2024


128
Sub-processes … 3

• An activity in a process can invoke a separate sub-process

Spring 2024
• Use this feature to:
1. Decompose large models into smaller ones, making

ISD MS Prg @CSF-KU


them easier to understand and maintain
2. Share common fragments across multiple processes
3. Delimit parts of a process that can be
repeated/interrupted 129

©2011 IS Department, CSF, KU


Repeated Process

Spring 2024
ISD MS Prg @CSF-KU
130

©2011 IS Department, CSF, KU


Spring 2024
03 Advanced Process Modeling:

ISD MS Prg @CSF-KU


Structured Repetition

131
Block-structured repetition:
Activity loop

• Activity loop markers allow us to state

Spring 2024
that a task or a sub-process may be

ISD MS Prg @CSF-KU


repeated multiple times

Task Sub-process
Loop Loop
132

©2011 IS Department, CSF, KU


More on rework and repetition

Spring 2024
XOR-join: entry point XOR-split: exit point

ISD MS Prg @CSF-KU


Structured
cycle
133
Example: block-structured repetition
Completion
condition

Until Response is approved

Spring 2024
Finalise
Assign Investigate
Ministerial
Ministerial Ministerial
Response
Enquiry Enquiry
Ministerial Ministerial
Enquiry Enquiry

ISD MS Prg @CSF-KU


received finilized

Prepare Review
Ministerial Ministerial
Response Response
Enquiry Response
investigated reviewed

Must have a 134


decision activity
Exercise

• After a claim is registered, it is examined by a claims officer

Spring 2024
• The claims officer writes a “settlement recommendation”

• This recommendation is checked by a senior claims officer who may mark

ISD MS Prg @CSF-KU


the claim as “OK” or “Not OK”

• 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

©2011 IS Department, CSF, KU


Parallel Repetition: Multi-instance
Activity

• The multi-instance activity provides a mechanism to indicate that an activity

Spring 2024
is executed multiple times concurrently Multi-Instance Multi-Instance
Task Sub-process

ISD MS Prg @CSF-KU


• Useful when the same activity needs to be executed for multiple entities or
data items, such as:
• Request quotes from multiple suppliers

• Check the availability for each line item in an order separately

• Send and gather questionnaires from multiple witnesses in the context of an insurance
136
claim

©2011 IS Department, CSF, KU


Example: Multi-instance Activity -
Procurement

• In procurement, typically a quote is to be obtained

Spring 2024
from all preferred suppliers

ISD MS Prg @CSF-KU


• After all quotes are received, they are evaluated
and the best quote is selected

• A corresponding purchase order is then placed 137

©2011 IS Department, CSF, KU


Solution: without multi-instance activity
Procurement
Obtain Quote
from Supplier A

Spring 2024
Obtain Quote
from Supplier B

ISD MS Prg @CSF-KU


Obtain Quote Select best ...
... Place PO
from Supplier C quote

Obtain Quote
from Supplier D

138
Obtain Quote
from Supplier E
Solution: with multi-instance activity
Procurement

cardinality

Spring 2024
For each supplier

ISD MS Prg @CSF-KU


... Select best ...
Obtain Quote Place PO
quote

139
ICE: Motor insurance claim
lodgment

• After a car accident, a statement is sought from

Spring 2024
the witnesses that were present, in order to lodge
the insurance claim

ISD MS Prg @CSF-KU


• As soon as the first two statements are received,
the claim can be lodged to the insurance company
without waiting for the other statements 140

©2011 IS Department, CSF, KU


ICE: Motor insurance claim lodgment (Solution)

Spring 2024
ISD MS Prg @CSF-KU
141
Spring 2024
03 Advanced Process Modeling:

ISD MS Prg @CSF-KU


Events

142
Events

• In BPMN, events model something instantaneous

Spring 2024
happening during the execution of a process

ISD MS Prg @CSF-KU


• Types of event:
• Start

• Intermediate
143
• End
©2011 IS Department, CSF, KU
BPMN event types
Start Intermediate End

Untyped Event – Indicates that an instance of the

Spring 2024
process is created (start) or completed (end),
without specifying the cause for creation/completion Catching

Start Message Event – Indicates that an instance

ISD MS Prg @CSF-KU


of the process is created when a message is
received

End Message Event – Indicates that an instance of


the process is completed when a message is sent

Intermediate Message Event – Indicates that an


event is expected to occur during the process. The
event is triggered when a message is received or
sent 144
Comparison with sending/receiving tasks

= Receive
invoice
Invoice
received

Spring 2024
= Send invoice

ISD MS Prg @CSF-KU


Invoice
sent

= 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

Start Intermediate End

Spring 2024
Start Timer Event – Indicates that an instance of the
process is created at certain date(s)/time(s), e.g. start

ISD MS Prg @CSF-KU


process at 6pm every Friday

Intermediate Timer Event – Triggered at certain date(s)/


time(s), or after a time interval has elapsed since the
moment the event is enabled (delay)

147
Example: PO Handling
• A Purchase Order (PO) handling process starts when a PO is
received

Spring 2024
• The PO is first registered:

ISD MS Prg @CSF-KU


• 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
Next working day
weekend/
holiday

weekday Check Send PO


Register PO 148
Availability Response
PO PO
Received fulfilled
ICE

• In a small claims tribunal, call-overs occur once a month, to

Spring 2024
set down the matter for the upcoming trials

• The process for setting up a call-over starts three weeks prior

ISD MS Prg @CSF-KU


to the call-over day, with the preparation of the call-over list
containing information such as contact details of the involved
parties and estimated hearing date
149

©2011 IS Department, CSF, KU


ICE: Continued …

• One week prior to the call-over, the involved parties are

Spring 2024
contacted to determine if they are all ready to go to trial

• If this is the case, the call-over is set, otherwise it is deferred

ISD MS Prg @CSF-KU


to the next available slot

• Finally, on the call-over day, the call-over material is prepared


and the call-over is held
150

©2011 IS Department, CSF, KU


ICE: Solution

Spring 2024
ISD MS Prg @CSF-KU
151

©2011 IS Department, CSF, KU


Exercise 8: Model the billing process of an
Internet Service Provider (ISP)
• The ISP sends an invoice by email to the customer

Spring 2024
on the first working day of each month (Day 1)

• On Day 7, the customer has the full outstanding

ISD MS Prg @CSF-KU


amount automatically debited from their bank
account

• If an automatic transaction fails for any reason, the


152
customer is notified on Day 8
Exercise 8: Model the billing process of an
Internet Service Provider (ISP) …
• On Day 9, the transaction that failed on

Spring 2024
Day 7 is re-attempted

ISD MS Prg @CSF-KU


• If it fails again, on Day 10 a late fee is
charged to the customer’s bank account
• At this stage, the automatic payment is no
longer attempted 153
Exercise 8: Model the billing process of an
Internet Service Provider (ISP) …
• On Day 14, the Internet service is

Spring 2024
suspended until payment is received

ISD MS Prg @CSF-KU


• If on Day 30 the payment is still
outstanding, the account is closed and a
disconnection fee is applied
154
• A debt-recovery procedure is then started
Exercise 8: Solution

ISD MS Prg @CSF-KU Spring 2024


155
Recap: Message and Timer events
Start Intermediate End
Catching Catching Throwing Throwing

Spring 2024
process message message process
starts upon received sent during ends upon

ISD MS Prg @CSF-KU


message during the the process message
received process sent

process time event


starts when occurred
time event 156
(to model delay)
occurs
Event-based decision
• With the XOR-split gateway, a branch is chosen based on
conditions that evaluate over available data

Spring 2024
• The choice can be made immediately after the token arrives
from the incoming flow

ISD MS Prg @CSF-KU


• Sometimes, the choice must be delayed until an event happens
• The choice is based on a “race” among events

• Two types of XOR split:

data-driven event-driven
XOR-split XOR split 157
Data-based vs. event-based Choices

• In an XOR-split gateway, one branch is chosen

Spring 2024
based on expressions evaluated over available data

ISD MS Prg @CSF-KU


• Choice is made immediately when the gateway is reached

• Sometimes, the choice must be delayed until

something happens
158
• Choice is based on a “race between events”

©2011 IS Department, CSF, KU


Data-based vs. event-based Choices …

• BPMN distinguishes between:

Spring 2024
• Exclusive decision gateway (XOR-split)

ISD MS Prg @CSF-KU


• http://www.workflowpatterns.com/patterns/control/basic/wc
p4_animation.php

• & Event-based decision gateway


• http://www.workflowpatterns.com/patterns/control/state/wc
159
p16.php
©2011 IS Department, CSF, KU
Choices outside our control…
Stock Replenishment

• A restaurant chain submits a purchase order (PO)

Spring 2024
to replenish its warehouses every Thursday

ISD MS Prg @CSF-KU


• The restaurant chain’s procurement system
expects to receive either a “PO Response” or
an error message 160

©2011 IS Department, CSF, KU


Choices outside our control…
Stock Replenishment

• However, it may also happen that no response is received

Spring 2024
at all due to system errors or due to delays in handling the
PO on the supplier’s side

ISD MS Prg @CSF-KU


• If no response is received by Friday afternoon or if an error
message is received, a purchasing officer at the restaurant
chain’s headquarters should be notified

• Otherwise, the PO Response is processed normally 161

©2011 IS Department, CSF, KU


Solution: event-driven XOR split
Stock replenishment

Spring 2024
ISD MS Prg @CSF-KU
162
ICE

• In the context of a claim handling process, it is sometimes necessary

Spring 2024
to send a questionnaire to the claimant to gather additional
information

ISD MS Prg @CSF-KU


• The claimant is expected to return the questionnaire within five days

• If no response is received after five days, a reminder is sent to the


claimant

• If after another five days there is still no response, another reminder


163
is sent and so on until the completed questionnaire is received
©2011 IS Department, CSF, KU
Spring 2024
03 Advanced Process Modeling:

ISD MS Prg @CSF-KU


Expected handling

164
Let’s extend our PO handling
process (PO Handling)

• A PO handling process starts when a PO is received

Spring 2024
• The PO is first registered
• If the current date is not a working day, the process waits until

ISD MS Prg @CSF-KU


the following working day before proceeding
• Otherwise, an availability check is performed and a PO response
is sent back to the customer
Next working day
weekend/
holiday

Register PO weekday Check Send PO 165


Availability Response
PO PO
Received fulfilled
©2011 IS Department, CSF, KU
Let’s extend our PO handling process Next working day
weekend/
holiday

weekday Check Send PO


Register PO
Availability Response
PO PO
Received fulfilled

Spring 2024
• A PO change request may be received anytime after the PO is
registered

ISD MS Prg @CSF-KU


• This request includes a change in quantity or line items
• When such a request is received, any processing related to
the PO must be stopped
• The PO change request is then registered
• Thereafter, the process proceeds as it would do after a normal
PO is registered
• Further, if the customer sends a PO cancelation request after 166
the PO registration, the PO processing must be stopped and
the cancelation request must be handled
Abortion (Terminate Event)

• Exceptions are events that deviate a process from

Spring 2024
its “normal” course

ISD MS Prg @CSF-KU


• The simplest form of exception is to notify that
there is an exception (negative outcome)
• This can be done via the Terminate end event:
• It forces the whole process to abort 167

©2011 IS Department, CSF, KU


Example 1: terminate event
Signal the negative outcome…

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

Types of exceptions for an activity (task/sub-process) in BPMN:

Spring 2024
External: something goes wrong outside the process, and the
execution of the current activity must be interrupted (Handled with

ISD MS Prg @CSF-KU


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 170
• They stop the enclosing activity and start an exception handling routine
Let’s extend our PO handling process Next working day
weekend/
holiday

weekday Check Send PO


Register PO
Availability Response
PO PO
Received fulfilled

Spring 2024
• A PO change request may be received anytime after the PO is
registered

ISD MS Prg @CSF-KU


• This request includes a change in quantity or line items
• When such a request is received, any processing related to
the PO must be stopped
• The PO change request is then registered
• Thereafter, the process proceeds as it would do after a normal
PO is registered
• Further, if the customer sends a PO cancelation request after 171
the PO registration, the PO processing must be stopped and
the cancelation request must be handled
Solution: exception handling (External)
PO handling

Spring 2024
Handle PO
Next workingNext
day working day
weekend/ weekend/
holiday holiday

weekday weekday Check Check Send PO Send PO

ISD MS Prg @CSF-KU


Register PO Availability Response Response
Availability
PO PO PO PO
Response
Received Registered fulfilled fulfilled
sent

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

ISD MS Prg @CSF-KU


process must be compensated: the “throwing
intermediate” and the “end” version generate the
compensation event while the “intermediate
catching” version consumes it when attached to
the boundary of an activity

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

• Thereafter, the client needs to be notified that the PO cannot be further

ISD MS Prg @CSF-KU


processed Handle PO
Next workingNext
day working day
weekend/ weekend/
holiday holiday

weekday weekday Check Check Send PO Send PO


Register PO Availability Response Response
Availability
PO PO PO
PO Response
Received Registered fulfilled
fulfilled sent

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

ISD MS Prg @CSF-KU


Received
Received sentsent

PO Change PO Cancel Items not


received received available
Handle PO
Cancelation
Register PO
PO Notification
Change
canceled sent

Must catch an error


event thrown from
within the same activity
175
Example: activity timeout
Order-to-transportation quote

• Once a wholesale order has been confirmed, the

Spring 2024
supplier transmits this order to the carrier for
the preparation of the transportation quote

ISD MS Prg @CSF-KU


• 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
176
travel) and estimate the trailer usage
Example: activity timeout
Order-to-transportation quote

• By contract, wholesale orders have to be

Spring 2024
dispatched within four days from the receipt

ISD MS Prg @CSF-KU


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
177
Solution: activity timeout
Order-to-transportation quote

Spring 2024
ISD MS Prg @CSF-KU
178
More on the PO handling example…
PO handling
Handle PO

Next working day Items not


weekend/ available
holiday

Spring 2024
weekday Check Send PO
Register PO Availability Response
Items
PO PO available PO
Response
Received Registered fulfilled
sent

ISD MS Prg @CSF-KU


Items not
PO Change PO Cancel
received available
received Handle PO
Cancelation
Register PO PO Notification
Change canceled 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)

ISD MS Prg @CSF-KU


• This can be achieved by using non-interrupting
boundary events

Must be attached to 180


the activity’s boundary
Solution: non-interrupting boundary events
PO handling

Handle PO

Spring 2024
Next working day Items not
weekend/ available
holiday

weekday Check Send PO


Register PO Availability Response

ISD MS Prg @CSF-KU


Items
PO PO available PO
Response
Received Registered fulfilled
sent

PO Change PO Cancel Items not Address


received received available change
Handle PO received
Cancelation
Register PO Update
PO Notification
Change customer
canceled sent address

Customer
address
181
updated
Summary
In this lecture we have learned about:

• BPMN sub-processes • Event-based choice gateway

Spring 2024
• Repetition markers • Boundary events
• Loop marker and parallel • Interrupting and non-

ISD MS Prg @CSF-KU


multi-instance marker interrupting

• Events • Error events (throw and

• Timer, message and error catch)

events 182

©2011 IS Department, CSF, KU


Reading Homework Group1

• Read “4.5.5 Non-Interrupting Events and

Spring 2024
Complex Exceptions” section

ISD MS Prg @CSF-KU


• Pages 119 to 121

• Do Exercise 4.13
183
• Later on present your findings in the class
©2011 IS Department, CSF, KU
Reading Homework Group2

• Read “4.5.6 Interlude: Event Sub-

Spring 2024
Processes” section

ISD MS Prg @CSF-KU


• Pages 121 to 122

• Do Exercise 4.14
184
• Later on present your findings in the class
©2011 IS Department, CSF, KU
Reading Homework Group3

• Read “4.5.7 Activity Compensation”

Spring 2024
section

ISD MS Prg @CSF-KU


• Pages 122 to 124

• Do Exercise 4.15
185
• Later on present your findings in the class
©2011 IS Department, CSF, KU
Reading Homework Group4

• Read “4.6 Process & Business Rules”

Spring 2024
section

ISD MS Prg @CSF-KU


• Pages 124 to 125

• Do Exercise 4.16
186
• Later on present your findings in the class
©2011 IS Department, CSF, KU
Reading Homework Group5

• Read “4.7 Process Choreographies” section

Spring 2024
• Pages 125 to 127

ISD MS Prg @CSF-KU


• Do Exercises 4.17 & 4.18

• Later on present your findings in the class


187

©2011 IS Department, CSF, KU

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy