Declare Participants similar to Components

0 votes
asked Jan 3, 2022 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?
commented Jul 14, 2022 by Darren

Is there a way to add a order using this syntax?

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

or 

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

commented Jul 21, 2022 by plantuml (294,960 points)

Thanks for the suggestion!

Using last snapshot, you can now have:

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

@enduml

Is this what you are expecting?

 

1 Answer

0 votes
answered Jan 4, 2022 by plantuml (294,960 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, 2022 by The-Lu (63,920 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, 2022 by plantuml (294,960 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, 2022 by The-Lu (63,920 points)

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

commented Jan 4, 2022 by anonymous
Great. Thank you. How often do official releases go out?
commented Jan 11, 2022 by plantuml (294,960 points)

This is released in last official version.

...