Detailed
Design Document Department of Computer
Science Page maintainer: Terrence
Asgar-Deen |
Modifying the customer route list is described in the above diagram. The user enters two numbers to the system that correspond to the current position of the customer that is to be moved in the list, and the new position in the list for this customer. Customers are retrieved from the Customer datastore and the position in route list ordering is changed as reflected by the user's inputted information. The customers are then written back into the datastore.
The returned status corresponds to the success of the operation. If the ordering of the customers in the route list is successfully modified, the status returns Successful. If the system is unable to modify the list according to the user's inputted information, the corresponding error message is returned.
Process ID | 1.A.6 |
---|---|
Process Name | Modify Route List |
Inputs | new position, current position |
Outputs | None |
Permissible User | Administrator, Salesperson |
Assumptions | All information entered is syntactically correct. |
Error Conditions | The current position entered is not
valid. The new position entered is not valid. |
Name | current position |
---|---|
Kind | Data movement in DFD |
Type | Integer |
Description | Specifies the current position of a particular customer in the route list of the user. This number is used to move a customer to a new position in the user's route list. |
Name | customers |
---|---|
Kind | Data movement in DFD |
Type | Instance of an Entity |
Description | This data element corresponds to one or more complete instances of the Entity Customer. |
Name | new position |
---|---|
Kind | Data movement in DFD |
Type | Integer |
Description | Specifies the new position of a particular customer in the route list of the user. This number is used to move a customer from the current position in the user's route list. |
Name | status |
---|---|
Kind | Data movement in DFD |
Type | Return Message |
Description | This data element corresponds to an error message being returned from an operation. An error message may be both successful and unsuccessful. Unsuccessful error messages are further subcategorized into different errors based on the possible errors that can occur in an operation. |