Inventory ( Process View | Control Flow ) - smashita/CoffeeMaker-2019 GitHub Wiki

Diagram above shows the Control Flow of Inventory where it combines the "Add Inventory" and "Check Inventory". The initialized value for all the ingredients was set to 15. If user decides to add more inventory, user will has to enter all the ingredients (coffee, milk, sugar, and chocolate) in positive value (int). While if the user chooses to check the inventory, the system will check either the amount of ingredients is enough or not in the inventory for the next purchase made by customer. If the ingredients are all enough, it will display the amount of ingredients and if the ingredients are not enough, next purchase can't be made.