Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dummy question about sequence diagrams (pay)

 
Samuel Pessorrusso
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The first steps ofPay for Itinerary use case are:
1- Other use cases send the priced itinerary
2- System displays the itinerary...
3- Customer selects...
...

How can i build a Sequence diagram like this ? Because the System will return a message to the User but the User sent the message in other use case. That sounds strange.


Thanks in advance
 
Santiago Urrizola
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use framgents (UML 2.0) to make reference to another use case. (ref fragment)
 
Samuel Pessorrusso
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, but think how the diagram will start.

How the System will return a message (display the itinerary) to the User if the User sent the message in other use case?

Does anybody have any idea?

This looks strange:
 
Vinay Singh
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Samuel
This is how I think it should be.
Prep Itineray(PI) sends the Itinerary To Pay for Itinerary(PFI).
PI job ends here. The input for PFI is from PI instead of from being a front end. It would perform operations as another use case would do i.e it would display pages everything to end user.
Once it finishes the job, it might give the control back to PI or else end the
use case.
So the sequence diagram for PI gives a call to PFI use case..and there you go!!!
I hope I have replied to your question.
 
Samuel Pessorrusso
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I got it, but I don't agree with you. I don't like the idea of sending messages (return messages) to the user if, in the same diagram, he haven't sent anything. The beginning of the diagram will be something like I have drawn before.


 
Vinay Singh
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Samuel
Don't look at it from exam perspective but in practical situations this is a normal scenario.We build a claims management system and in that we have different types of claims.
Now each claim has got a use case but the common functionality like Banking Details, completing the address are common functions which have been derived out of these use cases.
So an unemployment claim use case inlcudes
a) Banking details and
b) Profile use case.
In both these use cases the input is from claims use case but there is interaction with the user to get inputs.
So here the input is from user and if bank details are invalid error message is also send to user.
Also think from user's perspective.For him its a complete process,he is not concerned how many use cases are inlcuded in there.
Does this looks logical ?
[ July 29, 2006: Message edited by: Vinays Singh ]
 
Samuel Pessorrusso
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it seems logical. But is hard to not look at an exam perspective, it is really hard and I�m struggling to make every diagram as much perfect as it can be (like the diagrams when I was leaning UML when I was at my graduation).
Thanks for your advice; I�ll try to take this assignment as a normal project.

Best regards and thanks for your help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic