Problem Statement
When do you prefer an Activity diagram over a Sequence diagram?
Explanation
Activity diagrams focus on workflow: steps, forks, joins, and guards. They shine for business processes and batch pipelines.
Sequence diagrams focus on message ordering between participants.
Code Solution
SolutionRead Only
Start -> Validate -> [ok] Pay || [fail] Notify -> End
