ITPEC FE Morning April 2019 Question 62
When an UML is used for business modeling, which of the following is the diagram that can represent a workflow such as the execution sequence of the business processes and branching based on conditions?
Explanation
Activity diagram — the UML diagram for a workflow: the order in which activities run and where the flow branches on a condition.
An activity diagram is UML's flowchart. Rounded boxes are actions, arrows give the execution sequence, a diamond is a decision node whose outgoing flows carry guard conditions, and fork and join bars show work done in parallel. Partitions (swimlanes) assign each action to a department or role, which is why it is the diagram used to model business processes.
Answer (a)
Why not others:
- •(b) Class diagram — the static structure: classes with their attributes and operations, and the associations and generalisations between them; no order of execution
- •(c) Component diagram — how the software is divided into components and which interfaces connect them, an implementation view
- •(d) Object diagram — a snapshot of instances and their links at one moment, static like the class diagram
Key rule: UML diagrams split into structure (class, object, component, deployment) and behaviour (activity, sequence, state machine, use case); a flow with branching is an activity diagram, messages exchanged over time are a sequence diagram.
System Strategy · AI-written, may contain errors
This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official FE past-paper collection or Report an issue.