hanegreefs.com/Business Information SystemsBIS
Lecture 5 · unit 9 of 16

Functionalities: BPMN and use cases

Modelling what a system must do: business processes in BPMN 2.0 (events, tasks, gateways, pools and lanes, message flows, artifacts) and functionalities in UML use case diagrams (actors, generalisation, include and extend).

Based on: lecture 5 (functionalities) and the BPMN exercises · About 55 minutes

Why model processes firstImportant

To understand an IT system you first have to understand the processes in which it is used. Process modelling analyses, documents and designs processes, and a graphical notation makes them easy to understand for everyone involved. The lecture presents two notations: BPMN for the process, and the use case diagram for the functionalities of the system itself.

The lecture calls this a short introduction; students who continue in Business and Technology see the topic in much more depth in a third-year course.

BPMN: the four groups of elementsImportant

BPMN stands for Business Process Model and Notation (earlier: Business Process Modeling Notation); the current version is BPMN 2.0. It is richer than a flow chart and designed to be understood by all business stakeholders.

GroupElementsWhat they mean
Flow objectsevents, activities (task, sub-process), gatewayswhat happens: triggers and results, work, decisions
Connecting objectssequence flows, message flows, associationshow the flow objects are linked
Swim lanespools, laneswho does it
Artifactsdata objects, groups, annotationsextra information that does not change the flow

Events, activities and flowsImportant

ElementDrawn asMeaning
Start eventthin circlethe trigger of the process
End eventthick circlethe result of the process
Taskrounded rectanglean activity that is not broken down further
Sub-processrounded rectangle with a plus signan activity described in more detail in a separate diagram
Sequence flowsolid arrowthe order in which activities are performed, inside one pool
Message flowdashed arrow with an open circle at the starta message between two pools
Message eventscircle with an envelopestart message event: a message is received; end message event: a message is sent
Time eventscircle with a clockstart time event: a moment that starts the process; intermediate time event: time that must pass before the process continues
Link eventcircle with an arrowjump from one part of the diagram to another
Worked scenario

Fitness workout

Model a visit to a fitness centre: change clothes, load the schedule on a data key, exercise, check out with the key, shower and change back.

1

Start event

arrival at the fitness centre
2

Tasks in sequence

change clothes, load schedule, do exercises, check out, shower and change
3

End event

workout done
Answer

One start event, five tasks joined by sequence flows, one end event: no gateway is needed because there is no choice.

Pools and lanesImportant

A pool represents the central entity or an external participant (the company, a customer, a bank). A lane is a sub-partition of a pool or of another lane: a department or a role. Sequence flows stay inside one pool; communication between pools is drawn with message flows.

Worked scenario

Paying an invoice

Operations tells finance that a service was delivered; finance sends an invoice; the customer pays through its bank, which transfers the money to the company's bank, which informs the company.

1

Pools

company (lanes operations and finance), customer, customer's bank, company's bank
2

Inside the company

sequence flow from operations to finance: notify, then send invoice
3

Between pools

message flows: invoice to customer, payment order to the customer's bank, transfer between banks, notification to the company
Answer

Four pools and message flows between them: the typical structure of an inter-company process.

GatewaysImportant

GatewaySymbolOutgoing paths takenClosing
Exclusive (gateway)empty diamond or diamond with Xexactly onean exclusive gateway merges the paths again
Parallel (fork)diamond with +all, at the same timea join waits for all paths
Inclusivediamond with a circleone or more (and/or)an inclusive gateway waits for the paths that were taken
Worked scenario

Meeting room with beverages and/or a beamer

An employee books a room and says whether beverages and/or a beamer are needed. Catering brings beverages if needed and always cleans up afterwards; the material department installs the beamer if needed and picks it up after the meeting.

1

After the booking

an inclusive gateway: beverages, beamer, both or neither
2

Lanes

employee, catering, material department
3

After the meeting

cleaning always happens; picking up the beamer only if it was installed
Answer

The inclusive gateway is the right choice because more than one path can be taken. With only "beamer yes or no", an exclusive gateway would do.

Common trapDo not mix up the parallel and the inclusive gateway. Parallel means every path always runs; inclusive means each path runs only if its condition holds, so one, several or all of them.

ArtifactsNeutral

Data objects show data that an activity reads or changes (an invoice, an order). A group draws a dashed box around elements without affecting the flow. An annotation adds explanatory text. Artifacts are connected with an association (dotted line).

Use case diagramsImportant

A process model shows how a system is used but does not hold enough detail to build it. A use case diagram shows the interaction between a system and its users and the hierarchy of the system's functionalities. It is part of UML, the Unified Modeling Language for object-oriented software (version 2.4.1 in the lecture).

ElementDrawn asMeaningExample
Actorstick figurea role a user plays; usually a person, sometimes another system or a timerStudent, Teacher, Timer
Use caseellipsea functionality of the systemUpload course material
Generalisationarrow with a hollow trianglean "is a" relationship between actors (or use cases)a logged in user is a surfer
Includedashed arrow <<include>>a use case always uses another use caseDeposit money and Withdraw money include Adjust balance
Extenddashed arrow <<extend>>a use case can optionally be extended by another oneBuy car extended by Add option

The sub-actor inherits everything the super-actor can do. In the time registration exercise, a Manager is an Employee: managers can enter their own vacations and can also approve the vacations of the people they manage.

Common trapInclude is always part of the base use case; extend is optional. In the email exercise, sending requires entering a body and recipients (include), while adding attachments is optional (extend).

Key takeaways

  • BPMN 2.0: flow objects, connecting objects, swim lanes and artifacts.
  • Sequence flows inside a pool, message flows between pools; lanes are departments or roles.
  • Exclusive gateway: one path; parallel: all paths; inclusive: one or more.
  • Use case diagram (UML): actors, use cases, generalisation, include (always), extend (optional).
  • Model the process first, then the functionalities, then build the system.

Loading cards
Question
Click, tap or press space to flip
Answer

Multiple choice (9)

Question 1 · Lecture 5

Which BPMN element shows a message between a customer and a company?

Why: Communication between pools is a message flow.
Question 2 · Lecture 5

A process goes on with any combination of "send brochure" and "call customer", possibly both. Which gateway?

Why: One or more paths: inclusive.
Question 3 · Lecture 5

Every Sunday evening the system sends recommendation emails. How does the process start?

Why: A moment in time triggers the process.
Question 4 · Lecture 5

The finance department inside the company pool is best drawn as:

Why: Departments and roles are lanes.
Question 5 · Lecture 5

Which of these is an artifact in BPMN?

Why: Artifacts are data objects, groups and annotations.
Question 6 · Lecture 5

"Withdraw money" always adjusts the balance. Relationship between Withdraw money and Adjust balance?

Why: Always used: include.
Question 7 · Lecture 5

"Buy car" can optionally be followed by "Add comfort pack". Relationship?

Why: Optional extra: extend.
Question 8 · Lecture 5

In UML use case diagrams, which can be an actor?

Why: An actor is a role; a timer can trigger a use case.
Question 9 · Lecture 5

A parallel gateway with three outgoing flows. How many are taken?

Why: A fork takes every path.

Exam-style open questions (2)

Open question · Lecture 5

Model a library process

A member asks for a book. If it is available, the librarian lends it; otherwise the member can reserve it and is notified when it comes back. Describe the BPMN diagram: events, tasks, gateways and lanes or pools.

Show a model answer outline
  • Pools or lanes: member, library (librarian).
  • Start event: request; task check availability.
  • Exclusive gateway: available or not.
  • Lend book, or reserve then intermediate (message) event when returned, then notify.
  • End events for both paths or merge with an exclusive gateway.
Open question · Lecture 5

Use case diagram for email

An account owner can send and read messages. Sending requires a body and recipients (To, Cc, Bcc); attachments are optional; an HTML message can embed an image. Describe actors, use cases and relationships.

Show a model answer outline
  • Actor: account owner.
  • Use cases: send message, read message.
  • Send includes enter body and enter recipients.
  • Add attachment extends send; embed image extends the HTML message (and needs an attachment).

LabSort the BPMN elements

Every element belongs to one of the four groups. The feedback explains what each element is for.

LabGateway simulator

Tick which conditions are true for this booking. The verdict shows the paths taken and whether the gateway type fits the process.

LabInclude, extend or generalisation?

Always part of it: include. Optional: extend. Is a: generalisation.