Break inside a group does not generate an arrow to the end of the repeat if the repeat is not in this group.

0 votes
asked Apr 24, 2025 in Bug by anonymous
recategorized May 7, 2025
I have this activity diagram:

```

@startuml
start
repeat
  :Test A;
    if (Something went wrong?) then (no)
      #palegreen:OK;
      break
    endif
    ->NOK;
  :Test B;
    if (Something went wrong?) then (no)
      #palegreen:OK;
      break
    endif
    :Test C;
repeat while (Something went wrong?) not (no)

->//merged step//;
:Alert "Success";
stop
@enduml

```

I would like to group the some of the activity together like in the following but then the break does not link to the end of the group any more.
```

@startuml
start
repeat
group testing A
  :Test A;
    if (Something went wrong?) then (no)
      #palegreen:OK;
      break
    endif
endgroup
    ->NOK;
group testing B
  :Test B;
    if (Something went wrong?) then (no)
      #palegreen:OK;
      break
    endif
endgroup

    :Test C;
repeat while (Something went wrong?) not (no)

->//merged step//;
:Alert "Success";
stop
@enduml
```

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...