Activation shorthand for sequence diagrams

0 votes
asked Aug 12, 2016 in Wanted features by onovotny (120 points)
It would be very convenient to have a shorthand notation for activation/deactivation with sequence diagrams instead of having to have a seperate line for 'activate' and 'deactivate'

The syntax I've seen with other text sequence diagram tools is to have a +/- on the end of the arrow:

 

Alice ->+ Bob: Hi (with activation)

Bob -->- Alice: How are you (deactivate)

 

Is there any chance for this? Thanks!

1 Answer

0 votes
answered Aug 20, 2016 by plantuml (262,940 points)

Hi,

Thanks for the suggestion.

Note that we have a similar feature (see http://plantuml.com/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

Is this what you are looking for ?

commented Feb 1 by Werner
Hello plantuml,

this is a great feature.

Unfortunately, it doesn`t seem to be possible, to combine deactivation of source and activation of target. (Suggestion "-+" as indicator or please tell me how it is supposed to work if it already does.)

Thanks for the great work.
commented Feb 7 by plantuml (262,940 points)
commented Feb 8 by Werner
That was exactly what I was looking for.

Thanks a lot.
...