Missing connections when using elseif with swimlanes

0 votes
asked Jun 30 in Bug by anonymous

I am trying to create an activity-diagram using multiple swimlanes.

Unfortunately, some connections are missing when using ifelse which else pointing to another swimlane.

This includes the connection between else in Swimlane A to a step in Swimlane B, what has already been pointed in a comment (https://forum.plantuml.net/11184/ifelse-and-swimlanes-seems-to-break-logic?show=14665#c14665).

Further, I am not able to connect last item in Swimlane B to stop in Swimlane A (which is not that important but may be related).

The following diagram shows both issues and as well as a "workaround" using a hidden element.

(https://www.plantuml.com/plantuml/uml/jP31JiCm38RlVWfh5xR3gE3OJMXZZm0luBNk6f4uLU8mLMplJWX8Kzak78YIW_qxzlzv4vM29cVXhbSTObrLWoNvojmttbNKg7atEYvRGuT0Rhbd9LX77Iq_mP3_6ZLUy0CGhH7UUUj3ZHf8ObPPD0jxQjuEmITfY_nBxRpeTVuCw-fd2fnUZiPP4iRj2UgZqHwJSCCnKXYHBJiMZIieB60wdE-yjD_67XQeFGlEDIHU069KFm3RoDEwnrjrgrA8yuviBCaByEorDn7plJYPbIsSyxiOVZxbi6uzaepQ6pci9lAsoDUjyk1ih8DYDfy2xPFUvfxq-_yb_8LkWh79KN8MFW40)

@startuml
'https://plantuml.com/activity-diagram-beta
<style>
partition {
  lineColor: transparent
  backgroundColor transparent
  fontColor transparent
}
</style>

|Swimlane A|
:with unecessary elements;
start
if (Condition 1) then (true)
  stop
elseif (Condition 2) then (true)
  stop;
else (false)
  partition "This is unecessary" {
  }
  |Swimlane B|
  :do anything;
  |Swimlane A|
  :This is unecessary;
endif
stop

:without unecessary elements;
|Swimlane A|
start
if (Condition 1) then (true)
  stop
elseif (Condition 2) then (true)
  stop;
else (false)
  |Swimlane B|
  :do anything;
  |Swimlane A|
endif
stop


@enduml

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...