• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mailing success or failure of purchase

 
H. Hafer
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi fellows,

the spec's mention that the system has to mail the customer in both cases failure and success of the UC "pay itinerary".

I'm not sure, but that could be done with the java mail API. The question is: How to depict that in a sequence diagram?

Thanks for input,
Harbo
 
Parag Doshi
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Harbo,
You can show a if-else condition in seq diagram and basically, if the payment is a success, you can show a "success" message being passed to your javamail component and if it failes, then show a "failed" message being passed to your javamail component. As your javamail component is just responsible to send the message, irrespective of its content, you can show the if-else condition outside of the javamail call (most probably from a SLSB)

Parag
 
H. Hafer
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, yeah!

thanks,
Harbo
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic