An alternative route, we have tried out is to use repeat, which gives us almost what we want, except an arrow from "User clicks "Continue" to "User clicks "Save and Submit Schema".
Is there a way to remove that one arrow?
@startuml
title User Flow: Validation check
:...;
:Initial schema has been created;
repeat
while (\nVALIDATION CHECK) is (Validation failed)
:System shows "Validation failed"
Missing fields are highlighted;
:User completes/edits definitions;
if (System asks user if they want to save only or submit) then (Save only)
:User clicks "Save Draft";
end
else (Save and Submit)
:User clicks "Save and Submit Schema";
endif
end while (Validation successful)
:System shows UI with schema for user confirmation;
if (User decides whether schema is correct or needs editing) then (Correct Schema)
break
endif
->Incorrect Schema;
:User clicks "Edit";
repeat while (User clicks "Continue"\n IGNORE ARROW UNDER THIS)
:User clicks "Save and Submit Schema";
:...;
@enduml