Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

When a login is needed in a system to perfom any action. How do you express that in a Use Case Diagram?

I have a system that will allow employees to perform sells. They must be logged in, but once they are, it is not necesary to log again until the session ends (typical login).

I do not know how can I express that that login is compulsory, but only once.

share|improve this question
2  
Somewhere I have read (but my google-fu is failing me) that in general login should not be on the (every/all) use case(s); because in general is is not what the user is actually trying to do. It is a side-effect or pre-condition, but putting it on the use case clouds the users intentions. – sdg Dec 6 '11 at 17:28

2 Answers

If the login is part of the system you are creating it should be a use case in itself that is listed as a prerequisite for other use cases. if you are using an outside system (i.e. Windows authentication) you could simply list that the user has authenticated through windows authentication or whatever system you plan to use. Its generally good practice to always have a precondition and post condition sections of your use case.

share|improve this answer

Use Cases form a proper class hierarchy.

Must-be-logged-in Use case can be a super-class of the rest of your use cases.

Some folks like to use <<extends>> to show that a use case extends the login use case.

See this diagram: http://yuml.me/diagram/scruffy/usecase/draw

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.