You are on page 1of 3

Level 0

Customers
1. If it is a new customer, he places a registration request with the create
new user process.
2. The customer places an order request with the receive order process.
3. He sends an order status request to the track order process which then
sends the customer the status of his order.
4. The customer can place an order cancellation request and the information
is sent to him by the cancel order process.
5. Provides feedback on the products received by him.
1. Assumptions:
Registration is required only for the first time. From the next time, the
customer logs in with his id and password.
2. The payment gateway is not a part of the system. It is an external entity
and hence the processes have not been shown as a part of the data flow
diagram.
Receive order
1.
2.
3.
4.
5.

Receives the order request from the customer.


Verifies customer details from the customer database.
Checks the product database for availability of the product.
Checks the product inventory to see if sufficient quantity is available.
If the above conditions are satisfied, sends payment acceptance request
to the payment gateway.
6. Creates an order and order transaction for the particular order.
Process order
1.
2.
3.
4.
5.

Checks the details of the order item, order and order transaction.
Checks for availability of the product.
Checks for availability of product inventory.
Receives confirmation of payment from the payment gateway.
According to whether the product is available or not and payment has
been successful, sends order confirmation/rejection information to the
customer.

Track order
1. The customer sends an order status request.
2. Receives the delivery information from the supplier.
3. Sends the order status information to the customer.
Cancel order
1.
2.
3.
4.
5.

Receives an order cancellation request from the customer.


Forwards the cancellation request to the supplier.
Receives a confirmation of the cancellation from the supplier.
Updates the order item database.
Sends a request to the payment gateway to process the payments to the
supplier and the customer.

6. Sends the cancellation confirmation information to the customer.


Update Order
1. Receives courier tracking details from the supplier.
2. Receives an order delivery update from the supplier when the product is
delivered.
3. Reads from the order and order item and generates the invoice which is
sent to the customer.
Update product and inventory
1. Receives information about new products and inventory from the
suppliers.
2. Updates the product description database.
3. Updates the product inventory database.
Create new user
1. When there is a new customer, it receives the registration details and
stores it in the customer database.
2. When there is a new supplier, it receives the supplier details.
Supplier
1. Receives the order and courier information from the process order process.
2. Sends order delivery updates and courier tracking details to the update
order process.
3. Sends the order status information to the track order process.
4. Receives the cancellation request and sends the response to the cancel
order process.
5. When it comes up with a new product or more inventory, sends the data to
the product and inventory update process.
Level 1 Inventory and Product Update
1. The supplier sends a product and inventory update request.
2. The supplier credentials are verified from the supplier database.
3. After verification of the supplier, the product information is matched with
the product database. If the product already exists, its information is
updated or else a new product category is created along with the
description.
4. After product updation, the inventory database of the particular product is
then updated.
Level 1 Process Order
1. Once a notification is received from the payment gateway that the
payment has been made, it is updated in the order transactions database.
2. Post this, the verified request and order code is used to verify the status of
the order, i.e., whether it has been cancelled or not.
3. Once the order status is confirmed, the order is confirmed. This is done by
checking the product and supplier inventory database.

4. The order is then sent to the supplier and an order confirmation is sent via
mail to the customer.
Level 1 Receive order
1. Once the customer places an order request, his details are first verified
from the database.
2. After this, the details of the product required by him are checked in the
database, whether we offer this product or not.
3. Once the product information has been verified, we go on to check
whether we have adequate inventory of that particular product.
4. If sufficient inventory is present, the order is finalised and accordingly the
order is updated in the sales database.
5. Once the order has been created, the customer is redirected to the
payment gateway to complete the payment.

You might also like