another way of activating and de activating in sequence diagrams

+2 votes
asked Feb 10, 2015 in Wanted features by ronsmitsnl (120 points)

Currently starting and stopping an activation takes two extra lines:

User->Task: start
activate Task
Task->Task : do something
Task->User: done
deactivate Task

I used to work with websequencediagrams that use a different syntax:

User->+Task: start
Task->Task : do something
Task->-User: done
 

This makes reading a bit longer sequence diagrams a lot easier.

 

1 Answer

+2 votes
answered Feb 10, 2015 by plantuml (295,000 points)

Thanks for the suggestion.

Actually, you can use also this: http://plantuml.sourceforge.net/incubation.html

@startuml
alice -> bob ++ : hello
bob -> bob ++ : self call
bob -> bib ++  #005500 : hello
bob -> geoge ** : create
return done
return rc
bob -> geoge !! : delete
return success
@enduml

It indeed makes diagrams shorter.

Hope it helps!

commented May 23, 2015 by gwennie (100 points)
Spectacular, plantuml! Thank you! Looking forward to seeing it in production!
commented May 26, 2015 by plantuml (295,000 points)
Actually, it is in production. It's just not very well documented.
...