• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

Duplicate Sequence diagram flows (vs referencing)

 
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,
    Alex
     
    author & internet detective
    Posts: 40483
    822
    Eclipse IDE VI Editor Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Alex,
    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.
     
    Ranch Hand
    Posts: 41
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Hi Feel, Referencing another sequence diagram is a better idea.

    Thanks
    Arpit Jain
     
    Get out of my mind! Look! A tiny ad!
    the value of filler advertising in 2021
    https://coderanch.com/t/730886/filler-advertising
    reply
      Bookmark Topic Watch Topic
    • New Topic