permaculture playing cards
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Duplicate Sequence diagram flows (vs referencing) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Duplicate Sequence diagram flows (vs referencing)" Watch "Duplicate Sequence diagram flows (vs referencing)" New topic

Duplicate Sequence diagram flows (vs referencing)

Alex Belisle Turcot
Ranch Hand

Joined: Apr 26, 2005
Posts: 516
Hi ranchers,

I've been a silent reader on this board for this certification.. I've been working on Part2 for a few weeks now and I'm almost done.
At this point, the only thing I'm struggling with is the idea of duplicating identical flows in 3 sequence diagrams.
I keep going over this and can't get my mind straight.
My goal here is to have some of your input, opinions, comments...

Imagine you have the 2 following use cases :
  • View oranges and pick the nicest
  • View apples, pick the nicest and make juice

  • [SOLUTION 1]
    I could create 2 supports Sequence diagram:
  • (A) View "fruit"
  • (B) Pick nicest "fruit"

  • Then the 2 Sequence Diagrams would be as follow
  • View oranges and pick the nicest (entirely referring to A and B)
  • View apples, pick the nicest and make juice (referring to A, B and adding the juice flow)

  • [SOLUTION 2]
  • Create both Sequence Diagrams from scratch and duplicate the flows in both.

  • --------------------------------------------------------
    By duplicating, it gives me the opportunity to use "getApples()" and "getOranges()" instead of "getFruits(String: fruitName)".
    When reusing sequence diagram, I'm not sure I like the fact that I would have to use generic words (such as fruit)..

    Do you think SUN would mind that I duplicate flows ?
    Or do you think they would mind that they have to look for referenced diagrams ?

    Thanks for your input,
    Jeanne Boyarsky
    author & internet detective

    Joined: May 26, 2003
    Posts: 33102

    In real life, I would absolutely go with approach #1. I find myself doing a few things in part 2 that I would never do in real life though to meet what I think Sun wants. I'm under the impression they want the duplication.

    [OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
    Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
    Arpit Kumar Jain
    Ranch Hand

    Joined: Jun 05, 2010
    Posts: 41
    Hi Feel, Referencing another sequence diagram is a better idea.

    Arpit Jain

    I agree. Here's the link:
    subject: Duplicate Sequence diagram flows (vs referencing)
    It's not a secret anymore!