Need help in a login sequence diagram

眉间皱痕 提交于 2019-12-13 20:11:40

问题


hi everyone i'm à newbie in uml and my question is simple:i want to draw a sequence diagram for members login and the steps are as follows:


the member visits the login page

enters email/pwd

clicks login

then the system goes to the database

if record exists

if account active

  display login success msg 

else (account not active)

  display error msg

else(record does not exists)

display error msg


and the diagram should contains the following objects:

  • member

  • login page

  • System

  • database

so can any one show me how it's done and thanks in advance.


回答1:


The best is simply not to use a sequence diagram for things which are better expressed in code like if and loop. However, if there is a need for it, use fragments and put the according sections inside.

See here for examples.

Your case will start looking like this:



来源:https://stackoverflow.com/questions/29962262/need-help-in-a-login-sequence-diagram

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!