Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pre condition in Seq diagram

 
b deb
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Do we need to show pre condition in a sequence diagram ?

For all the four use cases given in the assignment "Customer logged in" is a pre-condition, do we need to show that in the sequence diagram ? What is the UML standard ?

Can anyone clarify pls.

Thanks,
BDeb
 
Ricardo Ferreira
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by b deb:
Hi all,

Do we need to show pre condition in a sequence diagram ?

For all the four use cases given in the assignment "Customer logged in" is a pre-condition, do we need to show that in the sequence diagram ? What is the UML standard ?

Can anyone clarify pls.

Thanks,
BDeb


Hi bi,

You are free to disagre with my option, but i really think that show this kind of information in an sequence diagram is not a good aproach. Sequence diagrams must show the interation between the system components, and show in very detail, the time when they occur (this method are called after this another method call).

Just to clear your doubt, sequence diagrams are good for demostrate sequence of operations, an colaborative picture of objects in an given time, to fix some scenario.

They pre-condition 'user must be logged', denotes STATE (logged or not logged), and a activity diagram or an state machine diagram could be more acceptable to demostrate this.

Att,

Ricardo Ferreira - Brazil
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic