Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

alternate flows vs preconditions

 
Calen Legaspi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems that sometimes the alternate flows contradict the preconditions.
For example, in one use case, a customer must be logged-in and have a
profile, but there are two alternate flows for the condtions of when the
customer is not logged in and for when the customer has no profile on
record yet. So which takes precedence, the alternate flows or the
preconditions?

Calen
 
Lucy Hummel
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Calen,

My Use Cases have the same alternative flows & pre-conditions.

It is true that there are in contradiction.

I think the alternative flow & pre-conditions make sure that the user is logged in and that the login of the user is not expired.

That is why I am going to take care of the login in my sequence diagrams describing the Use Cases.

Is that any help for you? I hope so.

Lucy
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!