Men-Guo / alwayswin

297P Project
0 stars 0 forks source link

Trading Workflow #25

Open xiazhvera opened 3 years ago

xiazhvera commented 3 years ago

Use case: Trading Workflow Actors: Buyer, Seller, Order Databases, Order System Precondition: The buyer win the auction of the product Basic Path: The order system created an order for the buyer and the seller The buyer enter the shipping and payment info The order system updated the order status in the database and notify the seller to ship the product The seller enter the shipping# to confirm the shipment, the system update the order status and store the shipping# in the database The buyer confirms the arrival of the product, and the system will update the order status to make sure the order is done. The system will update the account balance of the seller and the buyer.

Alter Path: If the buyer or the seller does not respond (did not perform step2\3\4, the order will be closed in 14 days. )The order will be terminated.

Postcondition: The buyer and the seller’s account balance will be updated. And the order status should be done or be terminated.