The activity diagram is a high-level description of the steps that are executed in the order processing scenario.
The order processing starts when the customer either logs in or submits product data. The order in which these two sets of data arrive is not important. The login data provided by the customer contains information like the name and birthday, while the product data specifies the product that has to be ordered.
The login information provided by the customer has to be checked with regard to its completeness and correctness.
Should the login data contain any errors, the process can not continue and therefore ends.
Based on the product data provided in the order, it is checked whether the product is on stock.
If the product is available, the price for the shipment of the ordered product is determined. For this purpose, a shipment Web service is called.
The total price of the order is calculated from the product price and the shipment price.
In two parallel branches, the customer is charged and the shipment is performed.
When the charging and the shipment have been performed successfully, the order is filed and the process ends.