
Chapter 11. Exposed Serial Process scenario 273
used to detect an incoming event and choose a transition. However, if no
operation is appropriate, conditions can be used to choose the correct transition.
Because there are two transitions from Selecting Next Wholesaler without
operations, we need to add two conditions, one for each transition, to tell the
state machine which transition to use, depending on the value of the whIndex
variable. If the value of the variable is greater than 2, we have run out of
wholesalers and need to notify a failure. If the value is less than or equal to 2, we
can request that the indexed wholesaler fulfill the ...