Is it possible to add a comment on top of a Activity partition?

0 votes
asked Sep 4, 2014 in Wanted features by Luc Trudeau (360 points)

Is it possible to add a comment on top of a Activity partition?

For example : 

partition "**process** HelloWorld" {
note
 i:int
end note
    :Ready;
    :HelloWorld(i)>
    :Hello-Sent;
}
 
This code results in a syntax error. However if the note is below ready it works, but the comment is linked to the ready state. Is it possible for the previous syntax to produce a comment in the top part of the partition (top left would be even better)?
 
The following image shows what I mean by a comment in the top left part of a partition
 

1 Answer

+1 vote
answered Sep 5, 2014 by plantuml (295,000 points)
selected Sep 5, 2014 by Luc Trudeau
 
Best answer

Thanks for the suggestion.


In the following beta: https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

We have enabled this:

@startuml
start
partition "**process** HelloWorld" {
    note
        This is my note
        ----
        Creole test
    end note
    :Ready;
    :HelloWorld(i)>
    :Hello-Sent;
}

@enduml


Hopes it helps!
This will be available in next release.
 

...