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.
| Group | Elements | What they mean |
|---|---|---|
| Flow objects | events, activities (task, sub-process), gateways | what happens: triggers and results, work, decisions |
| Connecting objects | sequence flows, message flows, associations | how the flow objects are linked |
| Swim lanes | pools, lanes | who does it |
| Artifacts | data objects, groups, annotations | extra information that does not change the flow |
Events, activities and flowsImportant
| Element | Drawn as | Meaning |
|---|---|---|
| Start event | thin circle | the trigger of the process |
| End event | thick circle | the result of the process |
| Task | rounded rectangle | an activity that is not broken down further |
| Sub-process | rounded rectangle with a plus sign | an activity described in more detail in a separate diagram |
| Sequence flow | solid arrow | the order in which activities are performed, inside one pool |
| Message flow | dashed arrow with an open circle at the start | a message between two pools |
| Message events | circle with an envelope | start message event: a message is received; end message event: a message is sent |
| Time events | circle with a clock | start time event: a moment that starts the process; intermediate time event: time that must pass before the process continues |
| Link event | circle with an arrow | jump from one part of the diagram to another |
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.
Start event
Tasks in sequence
End event
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.
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.
Pools
Inside the company
Between pools
Four pools and message flows between them: the typical structure of an inter-company process.
GatewaysImportant
| Gateway | Symbol | Outgoing paths taken | Closing |
|---|---|---|---|
| Exclusive (gateway) | empty diamond or diamond with X | exactly one | an exclusive gateway merges the paths again |
| Parallel (fork) | diamond with + | all, at the same time | a join waits for all paths |
| Inclusive | diamond with a circle | one or more (and/or) | an inclusive gateway waits for the paths that were taken |
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.
After the booking
Lanes
After the meeting
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.
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).
| Element | Drawn as | Meaning | Example |
|---|---|---|---|
| Actor | stick figure | a role a user plays; usually a person, sometimes another system or a timer | Student, Teacher, Timer |
| Use case | ellipse | a functionality of the system | Upload course material |
| Generalisation | arrow with a hollow triangle | an "is a" relationship between actors (or use cases) | a logged in user is a surfer |
| Include | dashed arrow <<include>> | a use case always uses another use case | Deposit money and Withdraw money include Adjust balance |
| Extend | dashed arrow <<extend>> | a use case can optionally be extended by another one | Buy 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.
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.
All cards known
Reset the progress or pick another unit to keep practising.
Multiple choice (9)
Which BPMN element shows a message between a customer and a company?
A process goes on with any combination of "send brochure" and "call customer", possibly both. Which gateway?
Every Sunday evening the system sends recommendation emails. How does the process start?
The finance department inside the company pool is best drawn as:
Which of these is an artifact in BPMN?
"Withdraw money" always adjusts the balance. Relationship between Withdraw money and Adjust balance?
"Buy car" can optionally be followed by "Add comfort pack". Relationship?
In UML use case diagrams, which can be an actor?
A parallel gateway with three outgoing flows. How many are taken?
Exam-style open questions (2)
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.
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.