Unit 2
Unit 2
2
Purposes of Process Modeling
Organizational
Analysis
“AS IS”
Process
Models
Communication,
simulation,
activity-based
Process “TO BE” costing…
Analysis & Design Process Models
Improvement
Measures for
Target Values
handling…
Integration, testing,
Process
Process deployment…
Metrics Enactment &
Monitoring
3
Business Process Modeling Notation
(BPMN)
• OMG (Object Management Group®)Standard,
supported by many tools:
– Bizagi Process Modeller
– Signavio (http://www.signavio.com/)
– TIBCO Business Studio (free download, quite large)
– IBM Websphere Business Modeler
– ARIS
– Oracle BPA
– Business Process Visual Architect (Visual Paradigm)
– Progress Savvion Business Modeller
4
BPMN from 10 000 miles…
5
Order Management Process in BPMN
First Try
Reject order
Check stock
Send invoice
availability
Confirm order
Ship goods
6
A little bit more on Gateways …
• Exclusive Decision / Merge
– Indicates locations within a business process where the
sequence flow can take two or more alternative paths.
– Only one of the paths can be taken.
– Depicted by a diamond shape that may contain a marker
that is shaped like an “X”.
• Parallel Fork / Join
– Provide a mechanism to synchronize parallel flow and to
create parallel flow.
– Depicted by a diamond shape that must contain a
marker that is shaped like a plus sign.
7
Revised Order Management Process
Reject order
Check stock
Send invoice
availability
Confirm order
Ship goods
8
BPMN Exercise:
Simplified Insurance Claim Registration
9
10
Process Modelling Viewpoints
Organization
Who?
What?
Function When?
Process
Which?
13
Lanes and Pools – Notation
14
Order Management Process with Pools
Customer
Place
Make
purchase
payment
order
Invoice
Confirm order
Supplier
Check stock
Ship goods
availability
Reject order
15
Order Management Process with Lanes
16
Fragment of Equipment Rental Process
• The process starts when a site engineer fills in an equipment rental
request
• The clerk at the depot receives the request and, after consulting the
catalogues of the equipment suppliers, selects the most cost-effective
equipment that complies with the request.
• Next, the clerk checks the availability of the selected equipment with the
supplier via phone or e-mail. Sometimes the selected option is not
available and the clerk has to select an alternative piece of equipment
and check its availability with the corresponding supplier.
• Once the clerk has found a suitable piece of equipment available for
rental, they add the details of the selected equipment to the rental
request.
• The request is then passed on to the works engineer for approval. If the
works engineer approves it, the clerk sends a purchase order to the
supplier. If the works engineer rejects the request, the process ends.
17
1
Solution
18
1
Service tasks
A service task represents a work item in
the process with a specific type
19
User task
A user task is used to model work that needs to be done by a human
actor. When the process instance arrives at such a user task, a new user
task instance is created. The process instance stops at this point and
waits until the user task instance is completed. When the user task
instance is completed, the process instance continues.
20
Receive tasks
Receive tasks reference a message; these are
used to wait until a proper message is received.
21
Business rule tasks
22
Send Task
23
Exclusive gateway
24
Parallel gateway
A parallel gateway (or AND-gateway) allows you to split the flow into
concurrent paths.
25
Event-based gateway
An event-based gateway allows you to make a decision based on events
26
Inclusive gateway
The inclusive gateway (or OR-gateway) allows for making multiple
decisions based on data (i.e. on process instance variables).
27
28
29
If no condition is fulfilled, it takes the default flow of the gateway. Note that the
default flow is not expected to have a condition, and is therefore not
evaluated. If no condition is fulfilled and the gateway has no default flow, an
incident is created.
30
Exercise
After the Expense Report is received, a new account must be created if the
employee does not already have one. The report is then reviewed for
automatic approval. Amounts under $200 are automatically approved,
whereas amounts equal to or over $200 require approval of the Supervisor.
In case of rejection, the employee must receive a rejection notice by email.
The reimbursement goes to the employee’s direct deposit bank account. If
the request is not completed in 7 days, then the employee must receive an
“approval in progress” email.
If the request is not finished within 30 days, then the process is stopped and
the employee receives an email cancellation notice and must re‐submit the
expense report.
31
Expense
Report
32
Exercise
Every weekday morning, the database is backed up and then it is checked to see
whether the “Account Defaulter” table has new records. If no new records are
found, then the process should check the CRM system to see whether new
returns have been filed. If new returns exist, then register all defaulting accounts
and customers. If the defaulting client codes have not been previously advised,
produce another table of defaulting accounts and send to account management.
All of this must be completed by 2:30 pm, if it is not, then an alert should be sent
to the supervisor. Once the new defaulting account report has been
completed, check the CRM system to see whether new returns have been filed. If
new returns have been filed, reconcile with the existing account defaulter's table.
This must be completed by 4:00 pm otherwise a supervisor should be sent a
message.
33
34
BPMN Exercise:
• Claims Handling process at a car insurer
A customer submits a claim by sending in relevant
documentation. The Customer Service department
checks the documents for completeness and registers
the claim. The Claims Handling department picks up
the claim and first checks the insurance policy. Then,
an assessment is performed. If the assessment is
positive, a garage is phoned to authorise the repairs
and the payment is scheduled (in this order). In any
case (whether the outcome is positive or negative), an
e-mail is sent to the customer to notify the outcome.
35
BPMN Information Artifacts
Directed association
• Associations are used to link artifacts
such as data objects and data stores
Undirected association with flow objects (e.g. activities).
36
Order Processing Model with Artifacts
Send invoice
Purchase
Order
Confirm order
Reject order
37
BPMN Exercise 3: Artifacts
38
BPMN Main Elements - Recap
Connections Swimlanes
Pool
Message Association
Lane
Flow
Gateway
Event
Data
Object
Data
Store
39
BMPN Gateway
• Gateways determine what path is taken through a process that
controls the flow of both diverging and converging Sequence Flows.
That is, a single Gateway could have multiple inputs and multiple
output flows.
• The term “gateway” implies that there is a gating mechanism that
either allows or disallows passage through the Gateway–that is, as
tokens arrive at a Gateway, they can be merged on input and/or
split apart on output as the Gateway mechanisms are invoked.
• If the flow does not need to be controlled, then a Gateway is not
needed.
• Gateways, like Activities, are capable of consuming or generating
additional control tokens, effectively controlling the execution
semantics of a given Process.
• The main difference is that Gateways do not represent ‘work’ being
done and they are considered to have zero effect on the operational
measures of the Process being executed (cost, time, etc.).
40
BPMN Gateway types
41
Exclusive Gateway
42
Exclusive Gateway
43
Exclusive Gateway
44
Event-Based Gateway
45
Parallel Gateway
46
Parallel Gateway
• Fork – all outgoing sequence flows are followed in parallel, creating
one concurrent execution for each sequence flow.
• Join – all concurrent executions arriving at the parallel gateway wait
at the gateway until execution has completed for each of the
incoming sequence flows. The process then continues.
47
Inclusive Gateway
• An inclusive (OR)
Gateway specifies that
one or more of the
available paths will be
taken.
• They could all be taken,
or only one of them
48
Inclusive Gateway
49
Inclusive Gateway
50
Exclusive Event-based Gateway
51
Example
53
Complex Gateway Example
• A student takes an SAT examination. If the student scores under an 800 (the
possible scores range from 200 to 1600), the student will enroll in an
expensive class to improve his test score – and then retake the exam. If the
student performs moderately, he will read a low-cost book designed to help
him improve his score – and then retake the exam. If the student scores
above 1000, he will immediately attend university
54
Parallel Event-Based Gateway
55
Parallel Event-based Gateway Example
56
What’s wrong with this model?
57
BPMN Gateways
58
Example: OR gateways
59
How can we fix this model?
60
Exercise
61
Summary
62
Anything wrong with this model?
63
Is this better?
64
Expanded…
65
Sub-processes
66
Process hierarchies
Receive
Order
Level 4 Enter Order Check Credit ...
Credit
Available? Clear Order
Access Credit
Level 5 Record
Contact
customer
account rep. ...
Fragment of
the SCOR 67
model
Modeling Guideline
Start with a value chain
• Good practice is that the top-level process
should be simple (no gateways) and should
show the main phases of the process
– Each phase then becomes a sub-process
– This is sometimes called a “value chain”
68
Showing the value chain with sub-
processes
Purchase Purchase Goods Invoice
Approval
Request Order Receipt Verification
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
69
Shared sub-process
70
Sub-processes and loop marker
equivalent to:
71
Exercise
72