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