Questions tagged [plantuml]

Open-Source tool in Java to draw UML Diagrams

PlantUML is a Java component that allows to quickly generate

  • Sequence diagrams
  • Use case diagrams
  • Class diagrams
  • Activity diagrams
  • Component diagrams
  • State diagrams
  • Object diagrams

using a simple and intuitive language.

They can be generated in PNG or SVG format.
It is also possible to generate ASCII art diagrams (only for sequence diagrams).

409 questions
3
votes
2 answers

How to I have an activity diagram with a continue statement in PlantUML

Given the following PlantUML code: @startuml start repeat :Task 1; if (Condition 1) then (Yes) :Task 2; else (No) :Continue Loop; endif if (Condition 2) then (Yes) :Task 3; else…
millie
  • 2,642
  • 10
  • 39
  • 58
3
votes
1 answer

Draw constraint in PlantUML

How to draw a constraint like this in PlantUML
user877329
  • 6,717
  • 8
  • 46
  • 88
3
votes
0 answers

Is there a way to hide intermediate arrowheads in PlantUML activity diagrams?

I'm trying to remove the intermediate arrowhead in the activity diagram circled in red below: @startuml start repeat :read data; :generate diagrams; repeat while (more data?) is (yes) ->no; stop @enduml Source: PlantUML docs - Activity…
3
votes
1 answer

connection is lost at the end of the swimline on the plantuml

I'm having a little trouble making an activity diagram using plant uml. In this case I want to terminate a process to at one node point (stop). But it looks like I couldn't do this. Please help me. I am a student who just a few days ago used this…
yourname
  • 53
  • 1
  • 1
  • 5
3
votes
0 answers

Putting text of PlantUML gantt chart deliverable/milestone left of diamond?

When looking at: @startgantt [Prototype design] lasts 1 weeks then [Prototype completed] lasts 4 days [End Prototype completed] happens at [Prototype completed]'s end then [Test prototype] lasts 5 days [End Test prototype] happens at [Test…
a.t.
  • 2,002
  • 3
  • 26
  • 66
3
votes
1 answer

PlantUML: Unexpected result with "Arrows from/to class members"

I'm trying to do something similar to this: The only differences I have with my code are my classes are formatted with a dot, like auth.Permission: @startuml class auth.Permission { + id + content_type + codename } class auth.Group { + id +…
David Dahan
  • 10,576
  • 11
  • 64
  • 137
3
votes
0 answers

How to make PlantUML state diagrams cleaner?

Is there a way to make State diagrams more organized and clean in PlantUML easily? My fear was the more stuff I add, the more convoluted it becomes and it did happen. I tried using skinparam linetype ortho setting which made things a bit better but…
xyf
  • 664
  • 1
  • 6
  • 16
3
votes
1 answer

Plantuml several arrows between two classes

I am trying to draw a class diagram where several relationships between two classes are defined with multiplicities. By default, the results are horrible: @startuml class Movie { genres: String[] minutes: Integer movie_id: String …
bp99
  • 338
  • 3
  • 15
3
votes
1 answer

PlantUML java automation

Currently I am working on a project that should represent all classes via PlantUML's. I have heard that this UML could be generated automatically using Maven. But unfortunately all articles and repos are already 6-9 years old and therefore…
Flimtix
  • 356
  • 1
  • 4
  • 17
3
votes
2 answers

Plantuml. How to create finite state machine diagrams?

I want to create a FSM diagram and wanted to use plantuml for that. I stuck with backward arrows There is a way to create backward arrows but it looks overcomplicated and too limited for such a simple task @startuml :start; repeat :Ask to enter…
IC_
  • 1,624
  • 1
  • 23
  • 57
3
votes
0 answers

Plantuml cant create PDF any longer

I was using plantuml to generate UML-class diagrams on my mac for a long time successfully. I installed plantuml with homebrew originally. Now suddenly I get the following error trying to generate a pdf file: java.lang.ClassNotFoundException:…
LosWochos
  • 322
  • 1
  • 9
3
votes
1 answer

How to include classes from another Plantuml file into a class diagram?

I have two class diagrams in PlantUML and would like to define a class in one file and reuse it in the other. See the example below. diagram1.puml: @startuml diagram1 class "Foo" as foo { ...attributes } @enduml and diagram2: @startuml…
Saffie
  • 445
  • 3
  • 15
3
votes
1 answer

Intersection of objects in a UML diagram when one element belongs to two groups

Please tell me how to make [VirtualService] as VS in this code so that it is both in the "Ingress" group and in the "Application" group. it turns out that the intersection and the component [VirtualService] can be either in the "Ingress" group, or…
Svetlana
  • 31
  • 1
3
votes
1 answer

How does plantuml represent a multiple cases decision node?

I would like to change the following diagram to have a single decision node (three branches) and a single merge node. Is such a diagram possible with plantuml? The above diagram results from this code: @startuml skinparam ConditionEndStyle…
Alan
  • 9,410
  • 15
  • 20
3
votes
1 answer

How to order the subjects in PlantUML sequence diagram?

I have a PlantUML sequence diagram where Alice exchanges messages with Cecil once and then only the communication with Bob happens. This flow causes the subjects are ordered by the time of their first interaction. @startuml Alice -> Cecil: hi Cecil…
Nikolas Charalambidis
  • 40,893
  • 16
  • 117
  • 183