Counting scenarios in a checkout activity

An online shop's checkout activity runs as follows. After Validate cart, a decision has the guards [new customer], [returning customer] and [guest]. These lead to Create account, Load profile and no action respectively, and the three edges meet at a merge. The flow then reaches a fork with two concurrent branches. In branch 1, a decision sends [express] to Book courier and [else] to Book post, followed by a merge. In branch 2, a decision sends [coupon entered] to Apply coupon and [else] directly to a merge. The branches meet at a join, then Confirm order runs and the activity ends. A scenario is one combination of guard outcomes in a single run. How many distinct scenarios does the activity have? Give your answer as a whole number.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Activity Diagrams Questions: