Questions tagged [sequence-diagram]

76 questions
15
votes
1 answer

Sequence Diagram: Are actors objects?

The most likely answer is no, but I've come with this doubt. Can an actor act as a class? I know actors trigger events and can have prompts, but if there's a class modeling an actor (such as an user class) can we call methods over them? Or is this a…
Tiago Duque
  • 317
  • 1
  • 2
  • 8
14
votes
3 answers

UML: Queue processor in a sequence diagram

Which is the appropriate way of representing a queue processor in a UML sequence diagram? I want to represent in the same diagram two systems that are loosely coupled through a queue. The first system, performs some actions and insert an action in a…
NullOrEmpty
  • 687
  • 2
  • 6
  • 16
14
votes
3 answers

How to include conditions in UML sequence diagrams?

I like to draw a UML sequence diagram to display the sequence of actions and interactions of different parts of my system (I think they called actors). However, I need to include if then else statements here. Do I do something wrong? Can I use…
Saeed Neamati
  • 18,142
  • 23
  • 87
  • 125
10
votes
3 answers

UML sequence diagram - how to represent async response

If A sends an async message to B like for example, to load async images to UI from the web. Where should the response message go? Should it be slant as well or direct? And where would the activation of the sender (A) would be?
shinzou
  • 424
  • 1
  • 5
  • 15
9
votes
1 answer

What UML diagram should I use to show a platform's architecture?

I have been learning UML and have a basic understanding now, but I keep seeing these sort of high level architecture diagrams. Here's one from Microsoft: Source: A bad picture is worth a thousand long discussions. Is this a UML diagram? Are there…
Martin
  • 201
  • 1
  • 2
  • 4
8
votes
1 answer

Shall the Database in a sequence diagram be represented as actor or boundary?

I'm designing a system made of a web application and database. I use the <> - <> - <> stereotypes in my UML diagram. In the following sequence diagram, I already have an interaction with a system in the cloud. I want…
khalid
  • 101
  • 1
  • 1
  • 3
7
votes
1 answer

Why is a <> message asynchronous in UML sequence diagrams?

As far I as I could tell, the proper way to show an object creation in a sequence diagram is with an asynchronous arrow, e.g., However, in Java (and other OO languages I have used), as far as I know, a new() operation is blocking. I noticed that…
Fuhrmanator
  • 1,435
  • 9
  • 19
6
votes
2 answers

Should Sequence Diagrams be Specific or Abstract?

I'm creating a sequence diagram for a simple program I'm working on for work. The diagram I'm currently working on is very high level - it defines the interface with lots of alt paths, but does not exemplify any specific use cases. I was wondering…
JSideris
  • 591
  • 1
  • 5
  • 15
5
votes
3 answers

Software architecture | App with API back-end

I have been searching the net for an answer, but I was not able to find a similair question nor answer. So here I am. I am developing an app where a user can take a picture of a car and they will get back the car brand and possibly a…
Gertjan Brouwer
  • 1,021
  • 1
  • 7
  • 10
5
votes
1 answer

Does a message in a UML sequence diagram have parameters or arguments?

I recently took an exam for the introductory course on Computer Science. One question was about sequence diagrams (very simple example, boiled down to its essentials): The Bank object sends a message withdraw(100) to the Account object. In the…
5
votes
2 answers

How to show retry in sequence diagram

I am drawing sequence diagram for large integration project where one system will initiate the REST call to another system and there is a proxy in middle which will pass through the request like A->b->C where b is a pass through system. I have…
Charu Khurana
  • 165
  • 1
  • 5
5
votes
4 answers

Web pages in UML sequence diagrams?

In my current project, we have an ongoing discussion about whether or not it's a good idea to include an artifact representing a web page in an UML sequence diagram for a web application, making explicit which page starts a business interaction. I…
Óscar López
  • 345
  • 1
  • 4
  • 11
4
votes
2 answers

How to write UI in sequence diagram?

So i want to make a sequence diagram for login .. the first step is user access my website then the system redirect to login Form, then he insert username and password than the system validate it , if success it will direct him to homepage my…
Enrico Hasnawi
  • 207
  • 1
  • 3
  • 7
4
votes
1 answer

What is a good diagrammatic way to represent async event communication between two systems?

What is a good diagrammatic way to represent asynchronous event communication between two systems (the pub sub model)? I am not looking for tools but more of a representation. Is it a sequence diagram, a swim lane diagram or some other?
4
votes
2 answers

What comes first: the activity diagram or the sequence diagram?

I've been learning about UML diagrams and such. While doing so I came across a problem. Which diagram should be drawn first when designing a system, given that use case and such are completed? Is the activity diagram drawn before or after the…
T Lin
  • 51
  • 1
  • 4
1
2 3 4 5 6