Detailed
Design Document Department of Computer
Science Page maintainer: Terrence
Asgar-Deen |
Listing products is described in the above diagram. The user selects a specific criterion from a list of available criteria and passes this to the system. Products corresponding to this criterion are then retrieved from the Product datastore and returned to the user.
Reports may be generated based on the aforementioned criteria. This simplification of the system allows for generated reports that correspond directly to the information that the user wishes to view. For example, when the user selects the criterion that lists products "By Product ID", a report can be generated directly from the information that is returned to the user simply using the print features of the system.
The returned status corresponds to the success of the operation. If products are successfully retrieved from the datastore, the status returns Successful. If products corresponding to the selected criterion do not exist, the corresponding error message is returned.
Process ID | 1.B.5 |
---|---|
Process Name | List Products |
Inputs | product criteria |
Outputs | products |
Permissible User | Administrator, Salesperson |
Assumptions | All information entered is syntactically correct. |
Error Conditions | The criteria entered is not a valid criteria. |
Name | product criteria |
---|---|
Kind | Data movement in DFD |
Type | Integer |
Description | This data element corresponds to an integer that is used to specify the type of information that is to be displayed. For example, criteria 2 may display only a particular product motif styles. |
Name | products |
---|---|
Kind | Data movement in DFD |
Type | Instance of an Entity |
Description | This data element corresponds to one or more complete instances of the Entity Product. |
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. |