Declare Participants similar to Components

0 votes
asked Jan 3 in Wanted features by anonymous
In a sequence diagram, you have to declare a participant like this:

participant "=MyTitle\n----\nMySubTitle" as MyParticipant

I think it could be cleaner to use the same structure as a component, like this:

participant MyParticipant [
    =MyTitle
    ----
    ""MySubTitle""
]

Is it possible?

1 Answer

0 votes
answered Jan 4 by plantuml (264,940 points)

Thanks, this is a brillant suggestion!

So with last snapshot  and on the online server you can now have:

@startuml
participant MyParticipant [
    =MyTitle
    ----
    ""MySubTitle""
]
participant Bob

MyParticipant -> Bob
@enduml

Thanks again!

commented Jan 4 by The-Lu (37,800 points)

Thanks a lot, it's a good start... yes

Is it possible to do the same thing with all other sequence elementswink as:

  • actor
  • boundary
  • control
  • entity
  • database
  • collections
  • queue

See example here:

Regards,
Th.

commented Jan 4 by plantuml (264,940 points)

Sure, but we have to be careful here. Since actor/boundary/... is also used in deployment diagram, there is a risk a syntax clash.

With the new syntax some deployement diagram may become sequence diagram. See for example.

But we will think about it :-)

commented Jan 4 by The-Lu (37,800 points)

Sure... 
To do on the todo list... for the next Year...
cheeky

commented Jan 4 by anonymous
Great. Thank you. How often do official releases go out?
commented 6 days ago by plantuml (264,940 points)

This is released in last official version.

...