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

Sequence diagrams' details

 
Pedro Mac
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
a couple of questions regarding SCEA pt 2.:

1) If I interpret the emphasis on visual-feedback as a permission to use AJAX - should I put the AJAX calls on the sequence diagrams? How much detail for this "secondary" AJAX functionality would be expected?

2) What's the set of objects that we should consider on sequence diagrams (how detailed should they be)? Should there be entity managers there (vide Cade/Sheil) ? Proxies for external system as well as the external system itself? Caches?

Thanks in advance and regards
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pedro,
Welcome to CodeRanch!

1) Yes. If the AJAX functionality is part of your use case, it needs to be in a sequence diagram. As an example, support my use case involves doing a query, seeing the results and sorting. I would have three "entry points" to my sequence diagram for that use case. If all of this is done in AJAX, I still have three entry points. It just so happens that two of them are AJAX and one is a full page load.

2) There isn't going to be a right answer to this. As much detail as is necessary to solve the problem. I ended with the call to entity manager on mine.
 
Luay Abdulraheem
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Showing the Entity Manager in the Sequence diagram, does that mean that we need to show it in the Class diagram as well ?
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1103
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I added 'EntityManager' in the class diagram with a stereotype '<< JPA >>'. However, I did not add any methods (though method calls are shown in the Sequence Diagram).
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic