BWI

Process Narrative
 




Document Preferences 

Table of Contents

   1.0   Add a product
1.1   No Product
1.2   Manage Inventory
1.3   User clicks on 'New product'
1.4   Edit Product
1.5   User fills in form
1.6   User submits form
1.7   Form validation
1.8   System displays validation errors
1.9   System creates new product
1.10   Product
   2.0   Edit a product
2.1   Product
2.2   Manage Inventory
2.3   User clicks on edit product
2.4   Edit a Product
2.5   User edits form
2.6   User submits form
2.7   Form validation
2.8   System displays validation errors
2.9   New file uploaded
2.10   System overwrites image
2.11   System updates product
2.12   Product


1.0  
Add a product Process Narrative

Add a product
Add a product

1.1   No Product 

1.2   Manage Inventory 

Hyperlink

URL / File Path
http://shop.bwi.test.tmg.co.uk/admin/inventory  


1.3   User clicks on 'New product' 

No change


1.4   Edit Product 

Hyperlink

URL / File Path
http://shop.bwi.test.tmg.co.uk/admin/inventory/newProduct  

Requirements

Name Description Type
New file input field A new file input field for users to browse an select an image for upload and association. Requirement


1.5   User fills in form 

User fills in form fields, selects a product image and associates categories

Requirements

Name Description Type
New file input field A new file input field for users to browse an select an image for upload and association. Requirement


1.6   User submits form 

No change

Requirements

Name Description Type
New file upload Save file to directory publicly accessible to shop (i.e on shop domain). Not part of CMS Requirement


1.7   Form validation 

Requirements

Name Description Type
New file validation New validation for uploaded file. 'gif' or 'jpeg' only (otherwise throw validation exception). limit filesize to 1MB (otherwise throw validation exception). makeunique. Requirement

Incoming Links

Name Description Link Label
User submits form

Outgoing Links

Name Description Decision
System displays validation errors Invalid
System creates new product Valid


1.8   System displays validation errors 

Requirements

Name Description Type
New file deletion Delete uploaded file from server Requirement
New file exception new exceptions for file validation Requirement


1.9   System creates new product 

Requirements

Name Description Type
New Product / File assocation Product now has String reference to image url. Use virtual or relative path. Requirement


1.10   Product 



2.0  
Edit a product Process Narrative

Edit a product
Edit a product

2.1   Product 

2.2   Manage Inventory 

Hyperlink

URL / File Path
http://shop.bwi.test.tmg.co.uk/admin/inventory  


2.3   User clicks on edit product 

2.4   Edit a Product 

Hyperlink

URL / File Path
http://shop.bwi.test.tmg.co.uk/admin/inventory/newProduct  

Requirements

Name Description Type
Delete current image link display a url to delete a current image if one is associated Requirement
Display current image If a image has been uploaded and associated, display Requirement
New file input field A new file input field for users to browse an select an image for upload and association. Requirement


2.5   User edits form 

User edits form fields and browses and selects a new file if they want to add or overwrite


2.6   User submits form 

No change

Requirements

Name Description Type
New file upload Save file to directory publicly accessible to shop (i.e on shop domain). Not part of CMS Requirement


2.7   Form validation 

Requirements

Name Description Type
New file validation New validation for uploaded file. 'gif' or 'jpeg' only (otherwise throw validation exception). limit filesize to 1MB (otherwise throw validation exception). makeunique. Requirement

Incoming Links

Name Description Link Label
User submits form

Outgoing Links

Name Description Decision
System displays validation errors Invalid
New file uploaded


2.8   System displays validation errors 

Requirements

Name Description Type
New file deletion Delete uploaded file from server Requirement
New file exception new exceptions for file validation Requirement


2.9   New file uploaded 

Incoming Links

Name Description Link Label
Form validation

Outgoing Links

Name Description Decision
System updates product No
System overwrites image Yes


2.10   System overwrites image 

Requirements

Name Description Type
Delete current image Deletes current image from filesystem and removes association Requirement
New Product / File assocation Product now has String reference to image url. Use virtual or relative path. Requirement


2.11   System updates product 

2.12   Product