Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Login and register sequence diagram for android application

When the user logs in using the Login activity their information is checked in a database. A response is then send to the Login activty telling the user if their login attempt has been successful.

enter image description here

When a new user registers, the data they enter is validated in the Register activity. Their information is then send to the database. The database will then send a response letting them know if it was successfully entered.

Register sequence diagram

Is this the correct way to illustrate these actions in sequence diagrams?

like image 906
codester124 Avatar asked Sep 17 '25 14:09

codester124


1 Answers

The vertical lifelines typically do not represent activities, they typically represent instances of classes. (Yes, it is syntactically possible in UML to use an activity, but it is a very strange thing to do.) Those instances are usually typed by classes or interfaces that either have operations or signal receptions that can be invoked via messages. Moreover, in UML, there is no message kind that has a white arrowhead.

Therefore, no, those diagrams are not quite the correct way to illustrate the actions in a sequence diagram.

like image 85
Jim L. Avatar answered Sep 19 '25 05:09

Jim L.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!