@startuml

start

repeat
:define model tasks;

:gather model results;
repeat while

stop

@enduml

@startuml

start

repeat
partition "generate tasks" {
:define model tasks;
:define scan tasks;
:define domain tasks;
:define emitter tasks;
:define region tasks;
}
fork
:calculate task 1;
fork again
:calculate task 2;
fork again
:calculate task N;
end fork
partition "collect results" {
:gather region results;
:gather emitter results;
:gather domain results;
:gather scan results;
:gather model results;
}
repeat while

stop

@enduml
