A Practical Approach to Computer Systems Design and Architecture - CodeProject
3. How do documents flow through this system?
*Select* and *upload* the document by the user > System will validate the input file > *Files added* to "to be approved" section > Administrator *Approves and publishes* the file > File is available for users.
3.1. Do we need a workflow management system here?
I don't think so, let's hardcode the workflow, since we don't expect them to be dynamically adjusted. This is not a very complex system. So it is not necessary to have a separate module to manage workflows, and I am happy without it.
Now, we have found a few granular level operations belonging to the document uploading section. Let's list them as below:
Client side:
Select a document from the local directory base
Read the byte stream to system memory
Send it via the web to the server
Server Side:
Read the byte stream from memory
Write it to a local temporary location for validations
Input Validation Module validates the input file
Move the validated file to the correct user's shared location
Add this new file to the repository system as a "File to be Approved"
Load the files that are to be approved for the system administrator to view them
System administrator validates the content of the file and approves them to be viewed online
Change the file metadata status from "tobeApproved" to "Approved"
Note: Ideal place for a diagram..
3.2. Are we going to have versioning here?
Yes, we need to have versioning. So any update to an existing file will run through a version handler that assigns the correct version number. Note: This can be analyzed further deep..
3.3. Do we need to notify users when a new document is successfully published?
The user who owns (uploads) the document will get an email noting the reject/ accept status. In addition to that, we have to send another notification to users who have subscribed to be notified as this operation happens. Note: This introduces a new module to the system named Notification module. I will not dig into this section either.
3.3. Can a user undo an update?
I need to talk to the client about this.
3.4. Can multiple users checkout a document at the same time?
Let's stop this now…
Read full article from A Practical Approach to Computer Systems Design and Architecture - CodeProject
No comments:
Post a Comment