Hi,
After fixing the nested while bug, there is left the while in partition and while in if that must be fixed.
The exit arrow of a "while" directly inside a "partition" or directly inside an "if" can't be styled.
Here is the pumls that show these bug :
testInitial.png : a diagram that looku like our original diagram
@startuml testInitial.png
start
partition "Partition bug1" {
while (while bug 1)
-[#LightGreen]->
if (if bug 2) then (yes)
-[#LightGreen]->
:plop;
while (while bug 2)
-[#LightGreen]->
:plop;
while (while qui marche)
-[#LightGreen]->
if (if qui marche) then (yes)
-[#LightGreen]->
:plop;
else
-[#Blue]->
:plop;
endif
:plop;
endwhile
-[#Blue]->
:plop;
endwhile
-[#Blue]->
else
-[#Blue]->
:plop;
endif
endwhile
-[#Blue]->
}
stop
@enduml
test_Bug1_WhileInPartition.png : the bug of while nested in a partition
@startuml test_Bug1_WhileInPartition.png
start
partition "partition" {
while (ForEach 1)
-[#LightGreen]->
:plop;
endwhile
-[#Blue]->
while (ForEach 2)
-[#LightGreen]->
:plop;
endwhile
-[#Blue]->
}
stop
@enduml
test_Bug2_WhileInIf.ong : the bug of while nested in a if
@startuml test_Bug2_WhileInIf.png
start
if (test) then (yes)
-[#LightGreen]->
while (ForEach 2)
-[#LightGreen]->
:plop;
endwhile
-[#Blue]->
while (ForEach 2)
-[#LightGreen]->
:plop;
endwhile
-[#Blue]->
:plop;
else (no)
-[#Blue]->
:plop;
endif
stop
@enduml
If you have some questions or need more exemple, just mail me. (ask in french or english)