
Chapter 11. Exposed Serial Process scenario 285
11.3.6 Creating the Wholesaler service providers
Now that we have created the business state machine and the rule group, we
need to create the two wholesalers which will interact with them. For the
purposes of this scenario, Wholesalers D and E are identical except for their
behavior based on the part number that they are asked to supply.
Each wholesaler receives a request to supply a particular part. Depending on the
part number, one of three actions happens:
The wholesaler declines the order, sending a wholesalerCannotFulfill
response.
The wholesaler accepts the order, sending a wholesalerCanF ...