Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Design and Architecture
  4. Sequence Diagram

Sequence Diagram

Scheduled Pinned Locked Moved Design and Architecture
questiongraphicstutorial
5 Posts 5 Posters 13 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    swjam
    wrote on last edited by
    #1

    How do I depict decision-branching in a sequence diagram? Can anyone provide a simple example (maybe a simple drawing) where an object makes two different calls /sends two different messages or events depending on a decision within its function or thread of execution. Thank you!

    I am a SysAdmin, I battle my own daemons.

    B V CPalliniC 3 Replies Last reply
    0
    • S swjam

      How do I depict decision-branching in a sequence diagram? Can anyone provide a simple example (maybe a simple drawing) where an object makes two different calls /sends two different messages or events depending on a decision within its function or thread of execution. Thank you!

      I am a SysAdmin, I battle my own daemons.

      B Offline
      B Offline
      Brady Kelly
      wrote on last edited by
      #2

      I don't have any reference material with me, but as far as I recall you use a block with a guard condition around all the messages within each variant of the decision outcome.

      1 Reply Last reply
      0
      • S swjam

        How do I depict decision-branching in a sequence diagram? Can anyone provide a simple example (maybe a simple drawing) where an object makes two different calls /sends two different messages or events depending on a decision within its function or thread of execution. Thank you!

        I am a SysAdmin, I battle my own daemons.

        V Offline
        V Offline
        Virtual Coder
        wrote on last edited by
        #3

        DenClancy wrote:

        How do I depict decision-branching in a sequence diagram?

        There is no IF or ELSE in a (UML) sequence diagram, AFAIK. If you want to depict decision-branching just draw multiple sequence diagrams, one for each branch.

        D 1 Reply Last reply
        0
        • S swjam

          How do I depict decision-branching in a sequence diagram? Can anyone provide a simple example (maybe a simple drawing) where an object makes two different calls /sends two different messages or events depending on a decision within its function or thread of execution. Thank you!

          I am a SysAdmin, I battle my own daemons.

          CPalliniC Offline
          CPalliniC Offline
          CPallini
          wrote on last edited by
          #4

          perhaps you need an activity diagram.

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

          In testa che avete, signor di Ceprano?

          1 Reply Last reply
          0
          • V Virtual Coder

            DenClancy wrote:

            How do I depict decision-branching in a sequence diagram?

            There is no IF or ELSE in a (UML) sequence diagram, AFAIK. If you want to depict decision-branching just draw multiple sequence diagrams, one for each branch.

            D Offline
            D Offline
            duaatul
            wrote on last edited by
            #5

            Exactly. I don't think Sequence diagrams are supposed to depict if / else. Infact, for any if and else you need to have a new sequence diagram. Thats the whole intenet of a sequence diagram.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups