在登录顺序图中需要帮助 [英] Need help in a login sequence diagram
问题描述
大家好,我是uml的新手,我的问题很简单:我想为会员登录绘制顺序图,步骤如下:
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:
会员访问登录页面
输入电子邮件/密码
点击登录
然后系统进入数据库
如果记录存在
如果帐户有效
display login success msg
其他(帐户未激活)
display error msg
其他(记录不存在)
显示错误消息
,该图应包含以下对象:
and the diagram should contains the following objects:
-
成员
member
登录页面
系统
数据库
所以任何人都可以告诉我它是如何完成的,并预先感谢.
so can any one show me how it's done and thanks in advance.
推荐答案
最好的做法是,对于在诸如if
和loop
之类的代码中更好地表达的内容,不要使用序列图.但是,如果有需要,请使用片段并将相应的部分放入其中.
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.
有关示例,请参见此处.
您的案件将开始如下所示:
Your case will start looking like this:
这篇关于在登录顺序图中需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!