Questions tagged [sequence-diagram]

The UML sequence diagram

The concept of a UML sequence diagram.

Use this tag for questions relating specifically to problems related with sequence diagrams. Do not use this tag if you're explaining your question using a sequence diagram, but there is no issue directly related to the sequence diagram.

589 questions
277
votes
4 answers

How to show "if" condition on a sequence diagram?

I was wondering, how can one represent "if" statement on a sequence diagram? if (somethingShouldBeDone) { // Do it } else { // Do something else } Can it be represented at all? The thing is ... in my code, fair amount of conditions…
James Raitsev
  • 92,517
  • 154
  • 335
  • 470
84
votes
5 answers

Difference between alt and opt fragment in sequence diagram?

What is the difference between the alt and opt fragments in UML sequence diagrams?
ettozyame
  • 851
  • 1
  • 6
  • 5
76
votes
6 answers

How to illustrate multiple threads in sequence diagram?

How can you clearly illustrate multiple threads of execution in a sequence diagram or similar diagram? I haven't been able to find any clear examples. All diagrams I see are used to illustrate a single thread. Update: The accepted answer was the…
Marcus Leon
  • 55,199
  • 118
  • 297
  • 429
69
votes
2 answers

Mermaid diagram line break

I cannot find how to insert a line break in long titles inside nodes. For example: library(DiagrammeR) mermaid(" graph TB A[GE Solution]-->C{ } B[GA Solution]-->C{ } C{ }-->D[Stir 10 mins at 500 r/min] D[Stir 10 mins at 500…
Scientist
  • 1,061
  • 2
  • 13
  • 30
59
votes
2 answers

How to represent a call being made in a loop in a sequence diagram?

I'm creating a sequence diagram, and one of the classes is being observed by another class. The observed class is calling update in the observer every 5 seconds in a loop. I need to show this in the sequence diagram. Is there a way to show it…
Adam Taylor
  • 7,534
  • 8
  • 44
  • 54
52
votes
5 answers

How to correct PlantUML Line Path

I created this diagram using the following code. But as you can see, the lines going from (Cancel Order) and (Place Order) to (Publisher) decide to take a terribly rounded path to get their, instead of going straight to the right and then down to…
aSamWow
  • 861
  • 1
  • 7
  • 9
49
votes
9 answers

Drawing Sequence Diagrams

I'm looking for an easy language/command line utility to draw sequence and timing diagrams (could be 2 different tools). I've already found Mscgen for sequence diagram drawing and looks pretty good, but I'm studying other possibilities. Thanks
rnunes
  • 2,785
  • 7
  • 28
  • 56
47
votes
6 answers

How to get the caller class name inside a function of another class in python?

My objective is to stimulate a sequence diagram of an application for this I need the information about a caller and callee class names at runtime. I can successfully retrieve the caller function but not able to get a caller class name? #Scenario…
Kaushik
  • 1,264
  • 8
  • 20
  • 32
44
votes
10 answers

How to Generate a Sequence Diagram from Java Source Code

I have a question about generating sequence diagram from Java source code. When I googled I saw someone told to use visual paradigm (VP), but it does not generate sequence diagram for me. Some steps in my VP are different from manual. The manual…
AFF
  • 1,515
  • 4
  • 21
  • 35
29
votes
13 answers

Sequence Diagram Reverse Engineering

I'm looking for a tool that will reverse engineer Java into a sequence diagram BUT also provides the ability to filter out calls to certain libraries. For example, the Netbeans IDE does a fantastic job of this but it includes all calls to String or…
Keith Fitzgerald
  • 5,651
  • 14
  • 43
  • 58
29
votes
1 answer

self message(non recursive) vs self recursive message

What is the difference of these two messages? I searched the web a bit and most what I could find is A self message is a message that an object sends to itself. It is a message that represents the invocation of message of the same lifeline. A self…
michael nesterenko
  • 14,222
  • 25
  • 114
  • 182
25
votes
5 answers

How to Create Flowchart from java source code in Eclipse

I would like to create the flowchart or sequence diagram from my java source code. Is there any plug-in which can help me do that?
Navaneeth Sen
  • 6,315
  • 11
  • 53
  • 82
25
votes
1 answer

UML sequence diagram: how do i draw cron job?

I'm developing an application that takes advantages of restaurants' dataset. Each week my system will run a CRON job in order to synchronize the restaurants that are available on a public API to my database. However, how do I draw the sequence…
ericlee
  • 2,703
  • 11
  • 43
  • 68
24
votes
10 answers

Software for Sequence Diagrams?

I've been using NClass for object/class modeling in class thus far. However, I do not believe that it is capable of sequence diagrams, which is my next task. I would prefer not to use Visio. Is there a good and free software solution for making…
bobber205
  • 12,948
  • 27
  • 74
  • 100
23
votes
4 answers

free UML sequence diagram reverse engineering eclipse plugin working out of the box - does such a thing exist?

I tried (though not very comprehensively) numerous solutions including ModelGoon (only class and interaction diagrams available), ObjectAid (class diagram only), eUML free edition (quits with an ominous "license not found" error on first use),…
kostja
  • 60,521
  • 48
  • 179
  • 224
1
2 3
39 40