Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob-->Alice: I am good thanks!
custom_mark10 digraph G { aize ="4,4"; main [shape=box]; main->parse [weight=8]; parse->execute; main->init [style=dotted]; main->cleanup; execute->{make_string; printf}; init->make_string; edge [color=red]; main->printf [style=bold,label="100 times"]; make_string [label="make a string"]; node [shape=box,style=filled,color=".7 .3 1.0"]; execute->compare; } custom_mark10
<img src='https://g.gravizo.com/svg? @startuml;
actor User; participant "First Class" as A; participant "Second Class" as B; participant "Last Class" as C;
User -> A: DoWork; activate A;
A -> B: Create Request; activate B;
B -> C: DoWork; activate C;
C --> B: WorkDone; destroy C;
B --> A: Request Created; deactivate B;
A --> User: Done; deactivate A;
@enduml '>
]<>-orders*>[Order], [Order]++-0..*>[LineItem], [Order]-[note:Aggregate root{bg:wheat}])
@startuml
actor Bob #red
' The only difference between actor
'and participant is the drawing
participant Alice
participant "I have a really\nlong name" as L #99FF99
/' You can also declare:
participant L as "I have a really\nlong name" #99FF99
'/
Alice->Bob: Authentication Request
Bob->Alice: Authentication Response
Bob->L: Log transaction
@enduml