HW1 - Restaurant Ordering System Zhukova Anna 469517 Customer Restaurant OrderingSystem Ordering System Verify Payment Order Recieved Generate the Bill Bills Archive Printed Bill Check Ingredients Availability Food Storage Database Reject the Order Are Ingredients Available? Was the Payment Successful? Update Storage Info Food Storage Database Reject the Order Chef Chef Prepare the Order Delivery Delivery Pack the Order Send the Order Payment Gateway No RequestCredit Response Order Yes Yes No OrderRejection OrderRejection The business process starts with the user placing an order via the internet. The system receives the order and checks the food storage for the availability of the ingredients that are required for order preparation. The order is rejected, and the user is informed about it in case ingredients are not available. Otherwise, the system notifies the chef, and he starts the preparation of the order. Simultaneously the payment is verified, and if the payment is successful, the system updates the food storage database and then stores the bill in the system, which is then printed for the customer. If not, the order is rejected. When the order is prepared, the delivery staff packs the food along with the printed bill. Finally, the order is sent to the customer. -1 This flow will cause deadlock Use past tense for end events -1 unnecessary terminate There is no message to customer with order Total result: 6 out of 8