Select flows from complete branch conditions

A Reserve Seminar Seat use case reaches a reservation check after the participant selects a seminar. At that check, the system selects exactly one flow using these conditions:

  • A1: The participant already has a reservation for this seminar, regardless of the number of available seats.
  • A2: The participant has no existing reservation and the number of available seats is zero.
  • Main: The participant has no existing reservation and at least one seat is available.

The available-seat count is a non-negative integer. For each independent execution below, enter exactly A1, A2, or Main to identify the selected flow. Use the state at the reservation check; do not infer later changes to the seat count.

ExecutionExisting reservationAvailable seatsSelected flow
KYes0
LNo0
MNo1
NYes7
PNo7

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 Use Cases Questions: