PlantUML WordPress Samples

Sequence Diagram

PlantUML Syntax:<br />
@startuml<br />
title Future-Watch Possibilities Sequence Diagram<br />
participant “3-5 Years” as T1<br />
participant “5-10 Years” as T2<br />
participant “50-100 Years” as T3<br />
participant “100-500 Years” as T4<br />
T1 -> T2: Evolve to contextually accurate journalism\nvia improved training data & feedback\n(Ethical guidelines emerging)<br />
T2 -> T3: Blur lines between human & AI reporting\n(hyper-realistic techniques & full AI transitions)<br />
T3 -> T4: Transform into interactive news curators\n(specialized fields: human investigative vs. AI-optimized)<br />
T4 -> T4: Independently investigate & report\n(establishing new ethics & accountability frameworks)</p>
<p>” usemap=”#plantuml_map”></p>



<p> </p>



<p></p>



<h3 class=Sequence Diagram

PlantUML Syntax:</p>
<p>participant Participant as Foo<br />
actor Actor as Foo1<br />
boundary Boundary as Foo2<br />
control Control as Foo3<br />
entity Entity as Foo4<br />
database Database as Foo5<br />
collections Collections as Foo6<br />
queue Queue as Foo7<br />
Foo -> Foo1 : To actor<br />
Foo -> Foo2 : To boundary<br />
Foo -> Foo3 : To control<br />
Foo -> Foo4 : To entity<br />
Foo -> Foo5 : To database<br />
Foo -> Foo6 : To collections<br />
Foo -> Foo7: To queue</p>
<p>” usemap=”#plantuml_map”></p>



<p> </p>



<hr class=

Gantt Diagram

PlantUML Syntax:</p>
<p>@startgantt<br />
[foo] requires 21 days<br />
[foo] is 40% completed<br />
[bar] requires 30 days and is 10% complete<br />
@endgantt</p>
<p>” usemap=”#plantuml_map”></p>



<p> </p>



<hr class=

Component Diagram

PlantUML Syntax:<br />
@startuml</p>
<p>package “Some Group” {<br />
  HTTP – [First Component]<br />
  [Another Component]<br />
}</p>
<p>node “Other Groups” {<br />
  FTP – [Second Component]<br />
  [First Component] –> FTP<br />
}</p>
<p>cloud {<br />
  [Example 1]<br />
}</p>
<p>database “MySql” {<br />
  folder “This is my folder” {<br />
    [Folder 3]<br />
  }<br />
  frame “Foo” {<br />
    [Frame 4]<br />
  }<br />
}</p>
<p>[Another Component] –> [Example 1]<br />
[Example 1] –> [Folder 3]<br />
[Folder 3] –> [Frame 4]</p>
<p>@enduml<br />
” usemap=”#plantuml_map”></p>



<p> </p>



<hr class=

State Diagram

PlantUML Syntax:<br />
@startuml<br />
scale 350 width<br />
[*] –> NotShooting</p>
<p>state NotShooting {<br />
  [*] –> Idle<br />
  Idle –> Configuring : EvConfig<br />
  Configuring –> Idle : EvConfig<br />
}</p>
<p>state Configuring {<br />
  [*] –> NewValueSelection<br />
  NewValueSelection –> NewValuePreview : EvNewValue<br />
  NewValuePreview –> NewValueSelection : EvNewValueRejected<br />
  NewValuePreview –> NewValueSelection : EvNewValueSaved</p>
<p>  state NewValuePreview {<br />
     State1 -> State2<br />
  }</p>
<p>}<br />
@enduml<br />
” usemap=”#plantuml_map”></p>



<p> </p>



<hr class=

Activity Diagram

PlantUML Syntax:<br />
@startuml<br />
start<br />
if (condition A) then (yes)<br />
:Text 1;<br />
elseif (condition B) then (yes)<br />
:Text 2;<br />
stop<br />
(no) elseif (condition C) then (yes)<br />
:Text 3;<br />
(no) elseif (condition D) then (yes)<br />
:Text 4;<br />
else (nothing)<br />
:Text else;<br />
endif<br />
stop<br />
@enduml</p>
<p>” usemap=”#plantuml_map”></p>



<p> </p>



<hr class=

Use Case Diagram

PlantUML Syntax:<br />
@startuml<br />
:Main Admin: as Admin<br />
(Use the application) as (Use)</p>
<p>User -> (Start)<br />
User –> (Use)</p>
<p>Admin —> (Use)</p>
<p>note right of Admin : This is an example.</p>
<p>note right of (Use)<br />
  A note can also<br />
  be on several lines<br />
end note</p>
<p>note “This note is connected\nto several objects.” as N2<br />
(Start) .. N2<br />
N2 .. (Use)<br />
@enduml<br />
” usemap=”#plantuml_map”></p>



<p> </p>



<hr class=

PERT Diagram

PlantUML Syntax:</p>
<p>@startuml PERT<br />
left to right direction<br />
‘ Horizontal lines: –>, <--, <--><br />
‘ Vertical lines: ->, <-, <-><br />
title PERT: Project Name</p>
<p>map Kick.Off {<br />
}<br />
map task.1 {<br />
    Start => End<br />
}<br />
map task.2 {<br />
    Start => End<br />
}<br />
map task.3 {<br />
    Start => End<br />
}<br />
map task.4 {<br />
    Start => End<br />
}<br />
map task.5 {<br />
    Start => End<br />
}<br />
Kick.Off –> task.1 : Label 1<br />
Kick.Off –> task.2 : Label 2<br />
Kick.Off –> task.3 : Label 3<br />
task.1 –> task.4<br />
task.2 –> task.4<br />
task.3 –> task.4<br />
task.4 –> task.5 : Label 4<br />
@enduml</p>
<p>” usemap=”#plantuml_map”></p>



<p> </p>



<hr class=

Json Diagram

PlantUML Syntax:<br />
@startjson<br />
{<br />
“firstName”: “John”,<br />
“lastName”: “Smith”,<br />
“isAlive”: true,<br />
“age”: 27,<br />
“address”: {<br />
“streetAddress”: “21 2nd Street”,<br />
“city”: “New York”,<br />
“state”: “NY”,<br />
“postalCode”: “10021-3100”<br />
},<br />
“phoneNumbers”: [<br />
{<br />
“type”: “home”,<br />
“number”: “212 555-1234”<br />
},<br />
{<br />
“type”: “office”,<br />
“number”: “646 555-4567”<br />
}<br />
],<br />
“children”: [],<br />
“spouse”: null<br />
}<br />
@endjson<br />
” usemap=”#plantuml_map”></p>



<hr class=

 SALT Diagram

PlantUML Syntax:<br />
@startsalt</p>
<p>{{^==Creole<br />
  This is **bold**<br />
  This is //italics//<br />
  This is “”monospaced””<br />
  This is –stricken-out–<br />
  This is __underlined__<br />
  This is ~~wave-underlined~~<br />
  –test Unicode and icons–<br />
  This is <U+221E> long<br />
  This is a <&code> icon<br />
  Use image : <img:https://plantuml.com/logo3.png><br />
}|<br />
{^<b>HTML Creole<br />
 This is <b>bold</b><br />
  This is <i>italics</i><br />
  This is <font:monospaced>monospaced</font><br />
  This is <s>stroked</s><br />
  This is <u>underlined</u><br />
  This is <w>waved</w><br />
  This is <s:green>stroked</s><br />
  This is <u:red>underlined</u><br />
  This is <w:#0000FF>waved</w><br />
  — other examples —<br />
  This is <color:blue>Blue</color>
  This is <back:orange>Orange background</back><br />
  This is <size:20>big</size><br />
}|<br />
{^Creole line<br />
You can have horizontal line<br />
—-<br />
Or double line<br />
====<br />
Or strong line<br />
____<br />
Or dotted line<br />
..My title..<br />
Or dotted title<br />
//and title… //<br />
==Title==<br />
Or double-line title<br />
–Another title–<br />
Or single-line title<br />
Enjoy!<br />
}|<br />
{^Creole list item<br />
**test list 1**<br />
* Bullet list<br />
* Second item<br />
** Sub item<br />
*** Sub sub item<br />
* Third item<br />
—-<br />
**test list 2**<br />
# Numbered list<br />
# Second item<br />
## Sub item<br />
## Another sub item<br />
# Third item<br />
}|<br />
{^Mix on salt<br />
  ==<color:Blue>Just plain text<br />
  [This is my default button]<br />
  [<b><color:green>This is my green button]<br />
  [ —<color:#9a9a9a>This is my disabled button– ]<br />
  []  <size:20><color:red>Unchecked box<br />
  [X] <color:green>Checked box<br />
  “//Enter text here//   “<br />
  ^This is a droplist^<br />
  ^<color:#9a9a9a>This is a disabled droplist^<br />
  ^<b><color:red>This is a red droplist^<br />
}}</p>
<p>@endsalt<br />
” usemap=”#plantuml_map”></p>



<hr class=

Regex Diagram

PlantUML Syntax:<br />
@startregex<br />
title repetitionEquivalance<br />
a{0,1}b{1,} is the same as a?b+<br />
@endregex<br />
@enduml</p>
<p>” usemap=”#plantuml_map”></p>



<hr class=

BNF Diagram

PlantUML Syntax:<br />
@startebnf<br />
Type = PrimitiveType | ReferenceType;<br />
PrimitiveType = [Annotation], (NumericType | boolean );<br />
NumericType = IntegralType | FloatingPointType;<br />
IntegralType = “byte” | “short” | “int” | “long” | “char”;<br />
FloatingPointType = “float” | “double”;<br />
ReferenceType = ClassOrInterfaceType | TypeVariable | ArrayType;<br />
ClassOrInterfaceType = ClassType | InterfaceType;<br />
ClassType = {Annotation}, TypeIdentifier, [TypeArguments];<br />
PackageName = {Annotation}, TypeIdentifier, [TypeArguments];<br />
ClassOrInterfaceType = {Annotation}, TypeIdentifier, [TypeArguments];<br />
InterfaceType = ClassType;<br />
TypeVariable = {Annotation}, TypeIdentifier;<br />
ArrayType = (PrimitiveType | ClassOrInterfaceType | TypeVariable), Dims;<br />
Dims=  {Annotation}, “[“, “]”, {{Annotation}, “[“, “]”};<br />
TypeParameter = {TypeParameterModifier}, TypeIdentifier, [TypeBound];<br />
TypeParameterModifier = Annotation;<br />
TypeBound = (“extends”, TypeVariable) | (“extends” ClassOrInterfaceType {AdditionalBound});<br />
AdditionalBound = “&”, InterfaceType;<br />
TypeArguments = “<“;
TypeArgumentList = TypeArgument {“,”, TypeArgument};
TypeArgument = ReferenceType | Wildcard;
Wildcard = {Annotation}, “?”, [WildcardBounds];
WildcardBounds = (“extends” | “super”), ReferenceType;
@endebnf

” usemap=”#plantuml_map”>


Archimate Diagram

PlantUML Syntax:<br />
@startuml<br />
skinparam rectangle<<behavior>> {<br />
	roundCorner 25<br />
}<br />
sprite $bProcess jar:archimate/business-process<br />
sprite $aService jar:archimate/application-service<br />
sprite $aComponent jar:archimate/application-component</p>
<p>rectangle “Handle claim”  as HC <<$bProcess>><<behavior>> #Business<br />
rectangle “Capture Information”  as CI <<$bProcess>><<behavior>> #Business<br />
rectangle “Notify\nAdditional Stakeholders” as NAS <<$bProcess>><<behavior>> #Business<br />
rectangle “Validate” as V <<$bProcess>><<behavior>> #Business<br />
rectangle “Investigate” as I <<$bProcess>><<behavior>> #Business<br />
rectangle “Pay” as P <<$bProcess>><<behavior>> #Business</p>
<p>HC *-down- CI<br />
HC *-down- NAS<br />
HC *-down- V<br />
HC *-down- I<br />
HC *-down- P</p>
<p>CI -right->> NAS<br />
NAS -right->> V<br />
V -right->> I<br />
I -right->> P</p>
<p>rectangle “Scanning” as scanning <<$aService>><<behavior>> #Application<br />
rectangle “Customer admnistration” as customerAdministration <<$aService>><<behavior>> #Application<br />
rectangle “Claims admnistration” as claimsAdministration <<$aService>><<behavior>> #Application<br />
rectangle Printing <<$aService>><<behavior>> #Application<br />
rectangle Payment <<$aService>><<behavior>> #Application</p>
<p>scanning -up-> CI<br />
customerAdministration  -up-> CI<br />
claimsAdministration -up-> NAS<br />
claimsAdministration -up-> V<br />
claimsAdministration -up-> I<br />
Payment -up-> P</p>
<p>Printing -up-> V<br />
Printing -up-> P</p>
<p>rectangle “Document\nManagement\nSystem” as DMS <<$aComponent>> #Application<br />
rectangle “General\nCRM\nSystem” as CRM <<$aComponent>>  #Application<br />
rectangle “Home & Away\nPolicy\nAdministration” as HAPA <<$aComponent>> #Application<br />
rectangle “Home & Away\nFinancial\nAdministration” as HFPA <<$aComponent>>  #Application</p>
<p>DMS .up.|> scanning<br />
DMS .up.|> Printing<br />
CRM .up.|> customerAdministration<br />
HAPA .up.|> claimsAdministration<br />
HFPA .up.|> Payment</p>
<p>legend left<br />
Example from the “Archisurance case study” (OpenGroup).<br />
See<br />
====<br />
<$bProcess> :business process<br />
====<br />
<$aService> : application service<br />
====<br />
<$aComponent> : application component<br />
endlegend<br />
@enduml</p>
<p>” usemap=”#plantuml_map”></p>



<hr class=

Mindmap

PlantUML Syntax:<br />
@startmindmap<br />
* Creole on Mindmap<br />
left side<br />
**:==Creole<br />
  This is **bold**<br />
  This is //italics//<br />
  This is “”monospaced””<br />
  This is –stricken-out–<br />
  This is __underlined__<br />
  This is ~~wave-underlined~~<br />
–test Unicode and icons–<br />
  This is <U+221E> long<br />
  This is a <&code> icon<br />
  Use image : <img:https://plantuml.com/logo3.png><br />
;<br />
**: <b>HTML Creole<br />
  This is <b>bold</b><br />
  This is <i>italics</i><br />
  This is <font:monospaced>monospaced</font><br />
  This is <s>stroked</s><br />
  This is <u>underlined</u><br />
  This is <w>waved</w><br />
  This is <s:green>stroked</s><br />
  This is <u:red>underlined</u><br />
  This is <w:#0000FF>waved</w><br />
— other examples —<br />
  This is <color:blue>Blue</color>
  This is <back:orange>Orange background</back><br />
  This is <size:20>big</size><br />
;<br />
right side<br />
**:==Creole line<br />
You can have horizontal line<br />
—-<br />
Or double line<br />
====<br />
Or strong line<br />
____<br />
Or dotted line<br />
..My title..<br />
Or dotted title<br />
//and title… //<br />
==Title==<br />
Or double-line title<br />
–Another title–<br />
Or single-line title<br />
Enjoy!;<br />
**:==Creole list item<br />
**test list 1**<br />
* Bullet list<br />
* Second item<br />
** Sub item<br />
*** Sub sub item<br />
* Third item<br />
—-<br />
**test list 2**<br />
# Numbered list<br />
# Second item<br />
## Sub item<br />
## Another sub item<br />
# Third item<br />
;<br />
@endmindmap</p>
<p>” usemap=”#plantuml_map”></p>



<hr class=

Information Engineering Diagram

PlantUML Syntax:<br />
@startuml</p>
<p>‘ hide the spot<br />
‘ hide circle</p>
<p>‘ avoid problems with angled crows feet<br />
skinparam linetype ortho</p>
<p>entity “User” as e01 {<br />
  *user_id : number <<generated>><br />
  —<br />
  *name : text<br />
  description : text<br />
}</p>
<p>entity “Card” as e02 {<br />
  *card_id : number <<generated>><br />
  sync_enabled: boolean<br />
  version: number<br />
  last_sync_version: number<br />
  —<br />
  *user_id : number <<FK>><br />
  other_details : text<br />
}</p>
<p>entity “CardHistory” as e05 {<br />
  *card_history_id : number <<generated>><br />
  version : number<br />
  —<br />
  *card_id : number <<FK>><br />
  other_details : text<br />
}</p>
<p>entity “CardsAccounts” as e04 {<br />
  *id : number <<generated>><br />
  —<br />
  card_id : number <<FK>><br />
  account_id : number <<FK>><br />
  other_details : text<br />
}</p>
<p>entity “Account” as e03 {<br />
  *account_id : number <<generated>><br />
  —<br />
  user_id : number <<FK>><br />
  other_details : text<br />
}</p>
<p>entity “Stream” as e06 {<br />
  *id : number <<generated>><br />
  version: number<br />
  searchingText: string<br />
  —<br />
  owner_id : number <<FK>><br />
  follower_id : number <<FK>><br />
  card_id: number <<FK>><br />
  other_details : text<br />
}</p>
<p>e01 }|..|| e02<br />
e01 }|..|| e03</p>
<p>e02 }|..|| e05</p>
<p>e02 }|..|| e04<br />
e03 }|..|| e04</p>
<p>e02 }|..|| e06<br />
e03 }|..|| e06</p>
<p>@enduml<br />
” usemap=”#plantuml_map”></p>



<hr class=

ER Diagram

PlantUML Syntax:<br />
@startchen movies</p>
<style>
.red {
BackGroundColor Red
FontColor White
}
.blue {
BackGroundColor Blue
FontColor White
}
</style>
<p>entity “Director” as DIRECTOR {<br />
“No.” as Number <<key>><br />
Name {<br />
Fname<br />
Lname<br />
}<br />
Born : DATE<br />
Died<<red>><br />
Age<<blue>><br />
}</p>
<p>entity “Customer” as CUSTOMER {<br />
Number <<key>><br />
Bonus <<derived>><br />
Name <<multi>><br />
}</p>
<p>entity “Movie” as MOVIE {<br />
Code<br />
}</p>
<p>relationship “was-rented-to” as RENTED_TO {<br />
Date<br />
}</p>
<p>RENTED_TO -1- CUSTOMER<br />
RENTED_TO -N- MOVIE<br />
RENTED_TO -(N,M)- DIRECTOR</p>
<p>entity “Parent” as PARENT {<br />
}</p>
<p>entity “Member” as MEMBER {<br />
}</p>
<p>CUSTOMER ->- PARENT<br />
MEMBER –<- CUSTOMER

entity > {
Name <>
}

relationship “is-parent-of” as PARENT_OF <> {
}

PARENT_OF -1- PARENT
PARENT_OF =N= CHILD

entity “Little Kid” as TODDLER {
FavoriteToy
}

entity “Primary-Aged Kid” as PRIMARY_AGE {
FavoriteColor
}

entity “Teenager” as TEEN {
Hobby
}

CHILD =>= d { TODDLER, PRIMARY_AGE, TEEN }

entity “Human” as PERSON {
}

PERSON ->- U { CUSTOMER, DIRECTOR }
@endchen

” usemap=”#plantuml_map”>


Hyperlinks in Diagrams

PlantUML Syntax:<br />
@startuml<br />
actor Bob [[http://plantuml.com/sequence]]<br />
actor “This is [[http://plantuml.com/sequence Alice]] actor” as Alice<br />
Bob -> Alice [[http://plantuml.com/start]] : hello<br />
note left [[http://plantuml.com/start]]<br />
  a note with a link<br />
end note<br />
Alice -> Bob : hello with [[http://plantuml.com/start{Tooltip for message} some link]]<br />
note right [[http://plantuml.com/start]] : another note<br />
note left of Bob<br />
You can use [[http://plantuml.com/start links in notes]] also.<br />
end note<br />
@enduml</p>
<p>” usemap=”#plantuml_map”><map id=


WBS Diagram

PlantUML Syntax:<br />
@startwbs<br />
* Business Process Modelling WBS<br />
** Launch the project<br />
*** Complete Stakeholder Research<br />
*** Initial Implementation Plan<br />
** Design phase<br />
*** Model of AsIs Processes Completed<br />
**** Model of AsIs Processes Completed1<br />
**** Model of AsIs Processes Completed2<br />
*** Measure AsIs performance metrics<br />
*** Identify Quick Wins<br />
** Complete innovate phase<br />
@endwbs</p>
<p>” usemap=”#plantuml_map”></p>



<hr class=

Deployment Diagram

PlantUML Syntax:<br />
@startuml<br />
action action<br />
actor actor<br />
actor/ “actor/”<br />
agent agent<br />
artifact artifact<br />
boundary boundary<br />
card card<br />
circle circle<br />
cloud cloud<br />
collections collections<br />
component component<br />
control control<br />
database database<br />
entity entity<br />
file file<br />
folder folder<br />
frame frame<br />
hexagon hexagon<br />
interface interface<br />
label label<br />
node node<br />
package package<br />
person person<br />
process process<br />
queue queue<br />
rectangle rectangle<br />
stack stack<br />
storage storage<br />
usecase usecase<br />
usecase/ “usecase/”<br />
@enduml</p>
<p>” usemap=”#plantuml_map”></p>



<p></p>
</div></main>


<footer class=