If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Software Lifecycle Flow (Visio like) Mapped to DB Design?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-23-05, 12:40
Matt83uk Matt83uk is offline
Registered User
 
Join Date: Oct 2005
Posts: 1
Software Lifecycle Flow (Visio like) Mapped to DB Design?

I am working on ASP.Net application which tracks the development of departmental software through a software lifecycle, the software lifecycle is different for each department so it can't be hard coded. It has stages and questions which flow to either new stages or other questions etc..

My current design for this part is a bit messy, hopefully someone can help forumulate a way to better design:

tbl_Stage
---
ID, (e.g. 1)
StageTitle (e.g. Planning)
ProgressQuestionID (e.g. 1)

ID, (e.g. 2)
StageTitle (e.g. Requirement Capture )
ProgressQuestionID (e.g. 4)


tbl_Question
------------
ID (.e.g. 1)
ProgressQuestionText (.e.g Is planning complete?)


ID (.e.g. 2)
ProgressQuestionText (.e.g Do you want to go back to planning?)

tbl_QuestionAnswer
--------------
ID (.e.g 1)
QuestionID (.e.g 1)
QuestionAnswer (.e.g. Yes)
NextStageID (e.g. 2)
NextQuestionID (e.g. <NULL>)

ID (.e.g 2)
QuestionID (.e.g 1)
QuestionAnswer (.e.g. No)
NextStageID (e.g. <NULL>)
NextQuestionID (e.g. 2)

As you can see if sort of loop, and weather the next bit is a question or stage is dependent on null values.

Any suggestions for improvements?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On