Backward in activity (beta) does not work with swim lanes

+4 votes
asked Nov 12, 2020 in Bug by Ulli

In the beta version of activity diagrams the combination of a backward reference and swim lanes does not work.

This is the combination that produces a broken diagram (the backward node flows somewhere in the middle):

@startuml

|Swimlane1|
start
repeat :foo as starting label;
  :read data;
  :generate diagrams;
|Swimlane2|
backward:This is backward;
repeat while (more data?)
|Swimlane1|

stop

@enduml


This is a working diagram (swim lanes only):

@startuml

|Swimlane1|
start
repeat :foo as starting label;
  :read data;
|Swimlane2|
  :generate diagrams;
repeat while (more data?)
|Swimlane1|

stop

@enduml

This is a working diagram (backward only):

@startuml

|Swimlane1|
start
repeat :foo as starting label;
  :read data;
  :generate diagrams;
backward:This is backward;
repeat while (more data?)
|Swimlane1|

stop

@enduml

commented May 22 by anonymous
I have hit the same issue. the backwards activity stays where it *would* be if I didn't switch to a different lane.

1 Answer

0 votes
answered May 15 by dlopezlo (140 points)
Same problem here, I tested with my plantuml latest container and from plantuml server online. Any plans to fix this shortly?

Any workarounds?

thanks,

dani
...