Sei sulla pagina 1di 26

1 The Ultimate Guide to BPMN 2

Contents
Why BPMN Matters 3 The 3 levels of BPMN complexity 13
BPMN at 3 levels of complexity 14
What is BPMN? 4
Basic BPMN 15
The ABCs of BPMN 5
An example with basic BPMN 16
A means for business & technical collaboration 6
Intermediate BPMN 17
The 4 categories of BPMN 7 Intermediate BPMN: activities 18
BPMN in 4 categories 8 Intermediate BPMN: sequence flows 19
Workflow 9 Intermediate BPMN: gateways 20
Organizing 10 Intermediate BPMN: events 21
Readability 11 Intermediate BPMN: messages and signals 22
Special behavior 12 Intermediate BPMN: timers and errors 23
An example with intermediate BPMN 24

Summary 25

Sources and further reading 26

2 The Ultimate Guide to BPMN 2


Why BPMN Matters
Business Process Model and power and potential of shared standards. In fact, the nice thing about BPMN is that it is
BPMN 2.0 is a natural fit with what we do. so structurally sound that once you master
Notation 2.0 (BPMN 2) is one of the Basic BPMN level elements, your
the best things to happen in knowledge and capability will improve
Business Process Management quickly; youll learn what you need from the
intermediate BPMN level elements for
(BPM) in a long time. extending the model, and the technical team
will pick up the advanced BPMN level to
Finally, both the business and complete the execution capability.
technical sides of the We realize that many people and
organization can share a organizations who could benefit from BPMN We offer this Ultimate Guide to help you to
common language have yet to give it a try. get familiar with the basics and give BPMN a
something that they can both try.
It may be that youve been putting it off
understand and that meets We are convinced you will find it powerful,
under the mistaken assumption that you
their respective needs for adaptable and remarkably easy. Whether
need to be an expert to use BPMN. Or it may
precision and flexibility. you are a business professional or a
be because the standard itself, and many of
This shared language is the things written about BPMN, are a bit developer, BPMN2 is your path to better
empowering new ways of unwieldy and hard to dissect. processes, improved management, and
working together and it results in the more efficiency.
In fact, BPMN is much simpler than you might
deployment of new and more flexible
think; expertise comes over time but Miguel Valdes Faura,
applications.
starting is actually pretty easy. And we Bonitasoft CEO and founder
At Bonitasoft, the leading provider of open believe the benefits can become quickly
source BPM solutions, we are mindful of the apparent.

3 The Ultimate Guide to BPMN 2


What is BPMN?

4 The Ultimate Guide to BPMN 2


The ABCs of BPMN
If youve heard of BPMN but BPMN = BPM + N
Definitions
arent really sure what it is or A business process model is a representation
BPM Business Process Management
what it does, you are not alone. of an organizations processes. A model can
The discipline of managing processes as
be analyzed and improved.
the means for improving business
But, before we talk about what BPMN performance outcomes1. Notation consists of graphic symbols to
is, lets talk about what it is not... represent action, flow, or behavior of a
BPMN Business Process Model and
It is not a system. Notation process.
A graphical representation for specifying In a BPMS, BPMN notation represents coding
You cant buy a BPMN it is a standard for
business processes in a business process
business process collaboration and for IT instructions that are executable.
model2.
development.
BPMN provides a notation that can be readily
It is not just for business or just for IT it is a BPMS Business Process Management
Suite understandable by all users:
shared, common language.
Application infrastructure to support from the business analyst who models
It is not only for experts. BPM projects and programs from the process conceptually,
process discovery, definition and design to the technical developers responsible
to implementation, monitoring and for implementing the technology for
If you are at all familiar with analysis, and through ongoing
the process,
optimization .
1
flow charting, you can dive in to the people who will manage and
immediately. 1 Gartner Research monitor the process.
2 Object Management Group

5 The Ultimate Guide to BPMN 2


A means for business & technical collaboration
BPMN provides a way to quickly BPMN works for any kind of management, BPMN may look familiar
operation and support process. By
diagram business functions. developing a model with BPMN, you can BPMN has been around for almost a decade
collaboratively improve communications and much in BPMN2 remains from the 1.0
Use it to draw a process graphically with decision makers about the nature and version, especially the shapes and symbols.
health of a process; you can collaboratively One thing that has changed behind the
The visual model will be translated quickly
initiate improvements and you can scenes is the adoption of XML interchange
and easily into software that will run the
collaboratively move toward automating format and the support BPMN 2.0 provides
process.
those improvements. for turning a model and its notation into an
With BPMN, business people can define what executable process.
they want, simply but with a high degree of
precision; and IT professionals can Open source and proprietary BPM vendors
communicate with each other and with now have the capacity to take BPMN 2.0
business people about the model in a clear, input and turn it into process automation.
common framework.
BPMN is not an execution
language
Source: Business Process Model and Notation, Version 2,
January 2011 by OMG It is designed to be consumed by
process engines and made into
executable processes.

6 The Ultimate Guide to BPMN 2


The 4 categories of BPMN

7 The Ultimate Guide to BPMN 2


BPMN in 4 categories BPMN 2.0 spec in numbers
The BPMN2 spec is long, dense With just a few elements from first three 98 visual elements
categories you can draw a business process 508 pages
and relatively complex. diagram and begin to build and understand a 300 figures
process. 313 tables
We can approach it by organizing BPMN 3 annexes
elements into a few general categories. Lets look more closely at what they 13 collaborating groups
represent.

Workflow Organizing Readability Special behavior


Activities Pools Annotations Messages
Start & end events Swimlanes or lanes Links Signals
Sequence flow Timers
Gateways Errors
Loop
Multi-instance

BPMN fact: Graphical representation for BPMN elements is monochrome. We use the following colors to improve diagram readability:
Activities &
Start events Gateways End events
intermediate events

8 The Ultimate Guide to BPMN 2


Workflow
Workflow includes activities, Events Gateways
gateways, events, and the Used to start or end a process, and to Used to separate or join process flow
sequence flow that connects manage specific actions during a
them. workflow; it triggers or is the result of
something external of the process flow
Gateway
Each of these elements have several types,
and all of these types can be connected in a
sequence.
Event

Activities
Tasks that are performed in the process Sequence flows
by humans, by automation, or that
Used to show how the workflow moves
activate subprocesses

Activity Activity
Activity

9 The Ultimate Guide to BPMN 2


Organizing
Organizing uses pools and Pools Swimlanes
swimlanes. Think of these as the Contains a single, complete process. Used to help organize the process based
container for the process flow. Workflow cannot leave a pool - we need on who does what (actors). In a lap pool,
to transfer action or data from one swimlanes keep the swimmers from
pool/process to another using other crashing into one another.
means. Workflow crosses swimlane boundaries
as if they did not exist they are purely
for organizational clarity.

10 The Ultimate Guide to BPMN 2


Readability
Readability includes annotations Text annotations Links
and links. Allow you to paste notes all over a model Allow you to cut a process that has
with explanations for clarity (a great tool become too long to read easily, and
These elements help make a model readable. for beginning modelers!) simply continue the process on another
They have no effect at all on the actual line in the same pool.
process flow.

Throw link Catch link

11 The Ultimate Guide to BPMN 2


Special behavior
Special behavior includes a Signals Errors
specific set of events and task Used to broadcast information to other Used to define behavior when the system
markers. processes encounters error

These elements allow us to design


executable workflow that can behave in
complex ways. Throw signal Catch signal Error

Messages and message flow


Timers Loop and multi-instance
Used to transfer data from one
Used to launch periodic activities, or to Used to repeat tasks, such as multiple
pool/process to another and to correlate
ensure that an activity happens within a launches of the same task (multi-
related processes
specified deadline instance) or repeating the same task
Correlation is used to coordinate (loop)
progress between two running process
instances and match message events

Timer

12 The Ultimate Guide to BPMN 2


The 3 levels of BPMN complexity

13 The Ultimate Guide to BPMN 2


BPMN at 3 levels of complexity
BPMN symbols serve a dual Lets look at these BPMN elements at the three levels of complexity:
Basic, Intermediate and Advanced.
purpose.
Basic Intermediate Advanced
They visually represent a process flow.
Human
They translate to executable code that allows
Activities Abstract Service
a visual process model to be executed as an Call
application.
Message
Recall that we can organize BPMN modeling Start Timer
elements into a few general categories: Events Event subprocess
End Error
Signal
Workflow
Parallel
Organizing Gateways Inclusive
Exclusive

Readability Conditional
Sequence flow Sequence
Default
Special behavior
Pools
Lanes
Loop
Other
Note that Basic BPMN is predominately Multi-instance
visual. Intermediate and Advanced Annotation
BPMN becomes executable. Links

14 The Ultimate Guide to BPMN 2


Basic BPMN
Basic BPMN is useful for modeling Start event
Begins a process flow. Exclusive gateway
when details have not been
worked out. End event
Only one input is needed for the process to
continue.
Ends a process flow.
Activities, events, gateways, and sequence Only one output is activated a condition is
flow all have Basic BPMN level versions. needed to determine which one.
Parallel gateway
All inputs must be received (in any order) Sequence flow
Abstract activity
before the process can continue. Directs process flow from activity to activity.
No specific execution, acts as a placeholder
All outputs are activated process continues
for documentation purposes.
in parallel.

15 The Ultimate Guide to BPMN 2


An example with basic BPMN
Start with the basics: abstract
activity, start and stop events,
gateways, and sequence flow.

For example, a generic new employee


orientation and training process modeled in
basic BPMN elements looks like this.

Imagine a token being moved through


the diagram like a traditional board
game.
This can help clarify how the features of
the model control the movement of the
token as you add complexity.
When a start event is triggered, a new
instance of a process begins. Think
through what happens to a single token
traversing a single pathway at a time.

BPMN 2.0, Thomas Allweyer

New employee orientation and training process

16 The Ultimate Guide to BPMN 2


Intermediate BPMN
To make a visual model
executable, begin to apply
intermediate BPMN.

In an executable process, the flow model


becomes an actual process application!
As you advance with BPMN, begin making
your BPMN executable to ultimately turn
it into an automated process.
BPMN 2.0 is not just a notation.
Implemented through a BPMN modeling
tool, it provides programming instruction
that a process engine uses to execute the
process.
The previous example is a simple model that
clearly shows visually what happens in the
process.
The example on this page and the next shows
how the model is extended as you begin to
New employee orientation and training process
apply intermediate BPMN.
Note that activities have been defined, and default flow has been added

17 The Ultimate Guide to BPMN 2


Intermediate BPMN: activities
Intermediate-level activities
include human, service, and call
activity.

Activities need to be differentiated is each


task performed by a person, is it automated
or, is it a subprocess in its own right?

Human activity is a step that


must be done by a person
Service activity is an
automated step
Call activity represents a
subprocess

Prepare training schedule is a call activity.


It is linked to a subprocess (a child of the
original parent process).
At this point in the process, the token is
passed to the subprocess, and when it has Using this notation, you can model a top- This means they can be modeled
completed its passage, it is passed back to level parent process that can be quite simple. independently and modified as needed
the parent process. It can call a series of subprocesses that are without necessarily changing the parent
entirely independent workflows. process.
This is a super-useful aspect of BPMN.

18 The Ultimate Guide to BPMN 2


Intermediate BPMN: sequence flows
Intermediate-level sequence flow
includes conditional and default
flows.

Basic sequence flow is simply automatic (as


soon as an activity is completed, the process
moves to the next task in the sequence).
When connected to Exclusive or Inclusive
gateways, sequence flows need to be defined
as conditional or default, so the flow token
knows which path to follow.

Conditional sequence flow


Some specified condition(s) must be met so
the process can choose the next task from
among two or more options.
Conditional flow is what it sounds like: an IF-
THEN condition is defined. In this (Boolean)
example: Default sequence flow Sequence flow cant cross a pool
If the schedule is ok with the trainer, Default flow allows you to direct flow if, for boundary. To communicate between
this condition = true. some reason, no conditions are met. The pools (processes), use messages or
If the schedule is NOT ok with the flow token always has a direction to take. signals.
trainer, this condition = false.
Default flow is marked with a \

19 The Ultimate Guide to BPMN 2


Intermediate BPMN: gateways
The intermediate-level gateway
inclusive offers finer control of
process flow.

Inclusive gateway

Outputs from inclusive gateway


The inclusive gateway can fire multiple
outputs simultaneously.
It supports conditions on the outgoing
sequence flows.
Example:

Variable Value
amount 5000
color red
Inputs to inclusive gateway
In this example, flows 2 and 4 meet the flow All valid inputs (i.e., flows 2 and 4) must be
The inclusive gateway waits for all incoming
condition. Flows 1 and 3 do not so no token received before the process flow can
inputs (tokens).
passes. continue.

20 The Ultimate Guide to BPMN 2


Intermediate BPMN: events
Events are either throw or catch End event (throw), ends a process Message, signal and error start events allow
flow. It must have at least one you to trigger processes without direct
events. incoming sequence flow. human interaction, as they are set to catch
information sent from elsewhere.
Mastery of the different start, end, and in-
Elsewhere can mean from a throw event
flow intermediate events is key to mastery
Start End somewhere in another process, and this can
of intermediate BPMN.
be an end event.
BPMN events are either throw (think of
these as senders) or catch (think of these Start Catch Throw End In this case, the end of one process can
as receivers). message message message message trigger the start of another process.
Timers too can start processes automatically,
Solid throws or sends events
Start Catch by triggering at pre-set intervals.
timer timer
Empty catches or receives events

The following colors are used as a Start Catch Throw End


convenience (non-normative): signal signal signal signal
Start event (catch), starts a
process. It must have at least one Catch Throw
outgoing sequence flow. link link
Intermediate event (catch or
throw), takes place within the flow
of a process. It must have at least Start Catch End
an incoming and an outgoing error error error
sequence flow.
Terminate

21 The Ultimate Guide to BPMN 2


Intermediate BPMN: messages and signals
Messages and signals carry
information across pool
boundaries.

Messages send to single receivers, while


signals broadcast widely to many receivers.

Message Signal
You can start a process with a message. In Like messages and errors, signals can be
BPMN, message is specifically defined as the caught from elsewhere and can start a
means by which data can be transferred process.
between processes.
A single throw signal is broadcast widely
With BPMN you can start a process with data and can be received by multiple catch signals.
received from a different process. This is useful when you want multiple actions
to be triggered.
And conversely, if you want to send data to
another process, use an intermediate send
message (anywhere in the process flow) or
an end message.

22 The Ultimate Guide to BPMN 2


Intermediate BPMN: timers and errors
Timers can delay or pause a
process, while errors send it on an
exception path.

Like other intermediate events, timers and


errors can start a process or impose an
action within the process flow.
Errors can also end a process.

Timer Error
Timers can be set to go off at specific Like messages, errors can be caught - and can
intervals, or specific calendar-linked dates start a process, or a special error path within
and times. For example, a start timer can go a sub-process.
off every 24 hours, or on the first Tuesday of
each month.
If the timer is a start event, the process starts
when the timer goes off. If the timer is
located in the process flow, the process waits
until the timer goes off and then it
continues.

23 The Ultimate Guide to BPMN 2


An example with intermediate BPMN
Messages, signals, timers, and
errors specify workflow behavior.

24 The Ultimate Guide to BPMN 2


Summary
With just 4 categories of basic and BPMN elements can be categorized
intermediate BPMN you can If youre designing a BPM
Workflow software suite, read the
begin to build a deployable,
executable process application. Organizing BPMN2 spec...
Readability If youre designing process
BPMN is a standard that allows business and applications, this Ultimate
IT to share a common language, which makes Special behavior
development of BPM applications for
Guide is what you really need!
business by IT easier and more efficient. There are Basic, Intermediate, and
BPMN is both a set of visual modeling Advanced elements in each of these
elements, and a set of semantics for categories.
executable code represented by those Basic BPMN is useful for modeling.
elements.
Intermediate BPMN begins to make a
Many of the visual elements in BPMN are model executable.
similar to standard flow chart elements.
Advanced BPMN fully defines process
Modeling with and interpreting models with
behavior.
BPMN is relatively straightforward.

25 The Ultimate Guide to BPMN 2


Sources and further reading
BPMN Method and Style, 2nd ed., Bruce Silver, October 2011
OMG Business Process Model and Notation (BPMN) Version 2.0, January 2011
BPMN 2.0: Introduction to the Standard for Business Process Modeling, Thomas Allweyer, February 2010

Learn more about BPM and BPMN

26 The Ultimate Guide to BPMN 2

Potrebbero piacerti anche