Lifelines don't work right in sequence diagram if same participant repeatedly created and destroyed

0 votes
asked Jul 31, 2018 in Bug by John Shriver

This input:

@startuml
participant a
participant b

create b
a --> b : hello()
a --> b : how_are_you()
a --> b : goodbye()
destroy b

create b
a --> b : hello()
a --> b : how_are_you()
a --> b : goodbye()
destroy b

create b
a --> b : hello()
a --> b : how_are_you()
a --> b : goodbye()
destroy b


@enduml


results in a lifeline only being drawn for the third "create b/destroy b" pair.

commented Aug 2, 2018 by albert (3,520 points)
And should the lifeline not be draw only between the create / destroy and not below the destroy?

1 Answer

0 votes
answered Aug 2, 2018 by John Shriver
Well, I think there should be lifeline between EACH create b/destroy b, not just the last one.
...