Skip to content

Commit c8e2c4b

Browse files
committed
Refactor example files to include local input files and update include paths for consistency across diagrams.
1 parent d416103 commit c8e2c4b

11 files changed

+26
-539
lines changed

examples/activity_model.puml

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,5 @@
11
@startuml activitymodel
22
!include https://raw.githubusercontent.com/doubleSlashde/umltheme/main/puml-theme-doubleslash-activity.puml
3-
4-
'You will find help on this page: https://plantuml.com/de/activity-diagram-beta
5-
' left to right direction 'does not work with activity diagrams
6-
7-
8-
title Activity diagram
9-
10-
|Swimlane 1|
11-
start
12-
:Activity 1;
13-
:Activity 2;
14-
(M)
15-
note right
16-
Diese Notiz
17-
gibt eine
18-
Erläuterung des
19-
Zwischenzustandes
20-
end note
21-
22-
|Swimlane 2|
23-
if (Alles OKAY?) then
24-
-> nur zum Teil;
25-
:do more research;
26-
else
27-
-> Ja;
28-
:do action;
29-
endif
30-
31-
|Swimlane 1|
32-
if () then
33-
:my way;
34-
else
35-
:your way;
36-
endif
37-
38-
:final execution;
39-
40-
end
41-
42-
43-
3+
'!include ../puml-theme-doubleslash-activity.puml
4+
!include input/activity_model.puml
445
@enduml

examples/class_model.puml

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,5 @@
11
@startuml class model
22
!include https://raw.githubusercontent.com/doubleSlashde/umltheme/main/puml-theme-doubleslash-class.puml
3-
4-
title Klassenmodell
5-
left to right direction
6-
7-
'hide circle
8-
9-
10-
interface Schnittstelle
11-
12-
class Klasse implements Schnittstelle {
13-
- Attribut : AndereKlasse
14-
+ Methode1()
15-
}
16-
class AndereKlasse {
17-
- Attribut : Typ
18-
+ Methode2()
19-
}
20-
class Unterklasse extends Klasse {}
21-
22-
class AufrufendeKlasse<<external>> {
23-
+ useInterface()
24-
}
25-
26-
AufrufendeKlasse --> Schnittstelle : verwendet
27-
Klasse *-- AndereKlasse : aggregiert
28-
note top of Klasse: Diese Notiz liefert eine nähere\n Beschreibung der Klasse
29-
note top of Schnittstelle: Diese Notiz liefert eine nähere\n Beschreibung der Schnittstelle
3+
'!include ../puml-theme-doubleslash-class.puml
4+
!include input/class_model.puml
305
@enduml

examples/datamodel.puml

Lines changed: 3 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,7 @@
11
@startuml data model
2-
!include ../puml-theme-doubleslash-class.puml
3-
'!include https://raw.githubusercontent.com/doubleSlashde/umltheme/main/puml-theme-doubleslash-class.puml
4-
5-
left to right direction
6-
'hide circle
7-
8-
title Datenmodell
9-
10-
entity Entität1 {
11-
+ name : text
12-
+ params : Text[]
13-
+ text2: Text
14-
15-
e1Id : SERIAL (PK)
16-
e2Id: INTEGER (FK)
17-
}
18-
note top of Entität1
19-
Lorem ipsum dolor sit amet,
20-
consetetur sadipscing elitr,
21-
sed diam nonumy eirmod tempor
22-
invidunt ut labore et dolore magna ...
23-
end note
24-
25-
26-
27-
entity Entität2 {
28-
29-
Name : Text
30-
Beschreibung: Text
31-
keyvalues: Text[]
32-
headers: Text[]
33-
body: Text
34-
authorizationData: Text
35-
36-
e2Id : SERIAL (PK)
37-
apiId : INTEGER (FK)
38-
otherId: INTEGER (FK)
39-
collectionId : INTEGER (FK)
40-
}
41-
note top of Entität2
42-
Lorem ipsum dolor sit amet,
43-
consetetur sadipscing elitr,
44-
sed diam nonumy eirmod tempor
45-
invidunt ut labore et dolore magna
46-
aliquyam erat, sed diam voluptua.
47-
At vero eos et accusam et justo
48-
duo dolores et ea rebum. Stet clita
49-
kasd gubergren, no sea takimata
50-
sanctus est Lorem ipsum dolor sit amet.
51-
Lorem ipsum dolor sit amet, consetetur
52-
sadipscing elitr, sed diam nonumy ...
53-
end note
54-
55-
entity CollectionEntity {
56-
collectionId : SERIAL (PK)
57-
name : Text
58-
}
59-
60-
entity OtherEntity <<external>> {
61-
otherId : SERIAL (PK)
62-
name : Text
63-
}
64-
note bottom of OtherEntity
65-
Lorem ipsum dolor sit amet,
66-
consetetur sadipscing elitr,
67-
sed diam nonumy eirmod tempor
68-
invidunt ut labore et dolore magna ...
69-
end note
70-
71-
CollectionEntity |o---o{ Entität2
72-
73-
Entität2 }o---|| Entität1
74-
Entität2 }o---|{ OtherEntity
75-
2+
!include https://raw.githubusercontent.com/doubleSlashde/umltheme/main/puml-theme-doubleslash-class.puml
3+
'!include ../puml-theme-doubleslash-class.puml
4+
!include input/datamodel.puml
765
@enduml
776

787

examples/mindmap.puml

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,5 @@
11
@startmindmap mind map
2-
'!include https://raw.githubusercontent.com/doubleSlashde/umltheme/main/puml-theme-doubleslash-mindmap.puml
3-
!include ../puml-theme-doubleslash-mindmap.puml
4-
5-
caption figure 1
6-
title Linux Distributions
7-
8-
* <&flag> Debian
9-
** <&graph> LMDE
10-
** <&pulse> SolydXK
11-
** <&people> SteamOS
12-
** <&star> Raspbian with a very long name
13-
*** <s>Raspmbc</s> => OSMC
14-
*** <s>Raspyfi</s> => Volumio
15-
16-
left side
17-
18-
** <&globe> Ubuntu
19-
*** Linux Mint
20-
*** Kubuntu
21-
*** Lubuntu
22-
*** KDE Neon
23-
24-
header
25-
My super header
26-
endheader
27-
28-
center footer My super footer
29-
30-
legend right
31-
Short
32-
legend
33-
endlegend
34-
@endmindmap
2+
!include https://raw.githubusercontent.com/doubleSlashde/umltheme/main/puml-theme-doubleslash-mindmap.puml
3+
'!include ../puml-theme-doubleslash-mindmap.puml
4+
!include input/Mindmap.puml
5+
@endmindmap

examples/piprocess.puml

Lines changed: 2 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,5 @@
11
@startuml piprocess
22
!include https://raw.githubusercontent.com/doubleSlashde/umltheme/main/puml-theme-doubleslash-activity.puml
3-
4-
skinparam padding 3
5-
'skinparam ConditionStyle normal
6-
7-
title "Prozess: Aufwandsänderung innerhalb eines Product Increments"
8-
9-
|Planung|
10-
start
11-
:doubleSlash Angebot über
12-
verfügbare Kapazität in
13-
Personentagen (PT) ab;
14-
:Verfügbare Kapazität in Stunden
15-
wird in StoryPoints umgerechnet
16-
(1 Storypoint = 4 Stunden Aufwand);
17-
18-
|Entwicklung|
19-
:Start der Entwicklung;
20-
if (<size:14><color:red>Effort Changing Event?</size>) then (Ja)
21-
if (Change bewerten) then (Großer Change)
22-
if() then (Mehraufwand)
23-
if()
24-
:StoryPoints erhöhen;
25-
else
26-
:Neue User Stories\nanlegen;
27-
endif
28-
else (Minderaufwand)
29-
:StoryPoints verringern;
30-
endif
31-
else (Kleiner Change)
32-
:Stories werden mit
33-
dem vereinbarten
34-
Aufwand erledigt.;
35-
endif
36-
else (Nein)
37-
endif
38-
39-
:Ende der Entwicklung;
40-
41-
42-
|Abrechnung|
43-
note left:
44-
:Erledigte StoryPoints
45-
zusammenzählen;
46-
:Spill over berechnen;
47-
48-
end
3+
'!include ../puml-theme-doubleslash-activity.puml
4+
!include input/piprocess.puml
495
@enduml

examples/projectplan.puml

Lines changed: 2 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,5 @@
11
@startgantt projectplan
22
!include https://raw.githubusercontent.com/doubleSlashde/umltheme/main/pgantt-theme-doubleslash.puml
3-
4-
'saturday are closed
5-
'sunday are closed
6-
7-
saturday is colored SUPERLIGHTGREY
8-
sunday is colored SUPERLIGHTGREY
9-
'language de
10-
printscale weekly zoom 4
11-
12-
title Projektplan mit Vorgängen, Meilensteinen und Abhängigkeiten
13-
14-
'2024-01-24 is colored in DS_LIGHTGREY
15-
16-
17-
Project starts 2024-01-07
18-
19-
-- Designphase --
20-
[Prototype design] starts at 2024-01-18
21-
[Prototype design] lasts 10 days
22-
23-
-- Entwicklungsphase --
24-
[Develop prototype] starts at [Prototype design]'s end
25-
[Develop prototype] lasts 15 days
26-
[Develop completed] starts at [Develop prototype]'s end
27-
[Develop completed] happens at [Develop prototype]'s end
28-
29-
-- Test phase --
30-
2024-02-01 to 2024-02-22 are named [Paralell Testing]
31-
[Test prototype] starts at 2024-02-10
32-
[Test prototype] lasts 15 days
33-
[Test completed] starts at [Test prototype]'s end
34-
[Test completed] happens at [Test prototype]'s end
35-
36-
-- Deployment phase --
37-
2024-02-12 to 2024-02-22 are named [When is deployment?]
38-
[PROD Deployment] starts at [Test completed]'s end
39-
[PROD Deployment] lasts 2 days
40-
41-
42-
43-
[Prototype design] is 100% completed
44-
[Develop prototype] is 100% completed
45-
[Test prototype] is 100% completed
46-
47-
Separator just at [Develop prototype]'s end
48-
3+
'!include ../pgantt-theme-doubleslash.puml
4+
!include input/projectplan.puml
495
@endgantt

examples/sequencemodel.puml

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,5 @@
11
@startuml Sequence model
22
!include https://raw.githubusercontent.com/doubleSlashde/umltheme/main/puml-theme-doubleslash-sequence.puml
3-
4-
skinparam padding 2
5-
6-
title Sequenzmodell
7-
8-
Actor Alice
9-
Participant FrontEnd
10-
Participant API
11-
Participant Backend
12-
Participant DB
13-
14-
== Initialization ==
15-
Alice -> FrontEnd: klick Button
16-
activate FrontEnd
17-
FrontEnd -> API: call Service
18-
API -> Backend : Call Backend
19-
20-
activate Backend
21-
Backend -> API : return value
22-
deactivate Backend
23-
24-
API -> FrontEnd : return value
25-
FrontEnd -> Alice: Show status
26-
deactivate FrontEnd
27-
28-
== Processing ==
29-
Backend -> DB : read detail data
30-
activate Backend
31-
DB -> Backend : return
32-
Backend -> Backend : process result
33-
Backend -> Alice : send email
34-
deactivate Backend
35-
3+
'!include ../puml-theme-doubleslash-sequence.puml
4+
!include input/sequencemodel.puml
365
@enduml

0 commit comments

Comments
 (0)