Is there any way of having the if condition of a repeat loop in the same swimlane as the preceding node, and not in the swimline where the loop was defined?
This is my activity diagram, it looks a little bit strange:
@startuml
|Author|
Start
repeat
repeat
if (New document?) then (yes)
:Create;
else (no)
:Update;
endif
->Document Draft;
|Reviewer|
:Review Document;
repeat while (Document agreed?)
->Document Reviewed;
|Approver|
:Approve Document --> Update;
repeat while (Document approved?)
->Document Verified;
|Owner|
:Archive;
->Document Archived;
stop
@enduml