[Activity Diagram] How do I prevent my loop's break line from overlapping with inner condition?

0 votes
asked Feb 12 in Question / help by Parexus

I have overlapping lines in my activity diagram:

Activity Diagram with overlapping line

I do not want to invert the inner condition 1, and I have found no way to swap the true and false paths, or to somehow make the true-line of it longer so that the break line wouldn't overlap with the inner condition 2. How can I achieve this?

Any help is very much appreciated.

1 Answer

0 votes
answered Feb 12 by The-Lu (67,080 points)

Hello P.,

Why:

I do not want to invert the inner condition 1

Because the only solution is to invert the 'inner condition 1', as:

@startuml GetVisualizableJobs
start
while (loop-condition) is (\ntrue)
  if (inner condition 1) then (false)
    break;
  else (true)
    if (inner condition 2) then (true)
      :1 and 2;
    else (false)
      :1 only;
    endif
  endif
endwhile (false)
stop
@enduml


If that can help,
Regards,
Th.

...