This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Sequence diagrams' details Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Reply Bookmark "Sequence diagrams Watch "Sequence diagrams New topic
Author

Sequence diagrams' details

Pedro Mac
Greenhorn

Joined: Aug 15, 2009
Posts: 1
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 26496
    
  78

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Luay Abdulraheem
Ranch Hand

Joined: May 18, 2011
Posts: 65
Showing the Entity Manager in the Sequence diagram, does that mean that we need to show it in the Class diagram as well ?


SCJP, SCWCD, OCMJEA, TOGAF 9 Foundation, OCEEJBD, OCEJPAD
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 948
    
    2

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).


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Sequence diagrams' details
 
Similar Threads
Doubts about Design
Showing conditions in sequence diagrams
Question on mileage system
Assumption - external interface for existing system as Web Service?
Questions on Sequence Diagrams