Improve, on activity-diagram, last label position when break on loop [1.2020.19]

0 votes
asked Oct 28, 2020 in Bug by The-Lu (63,920 points)

Hello PlantUML team,

Just a minor issue.

With break functionality, the label of the last condition seems to be not on the good place.

With break (that is KO : the 'no' label should be above):


[see on PlantUML server]

Without break (that is OK):


[See...]

Thanks for your support,
Regards,
Th.

commented Nov 23, 2020 by The-Lu (63,920 points)

Hello PlantUML team,

From PlantUML change (V1.2020.20) it seems that is corrected; but we observe always the issue:

  • What is your correction?

Thank for your support,
Regards,
Th.

commented Feb 4, 2021 by The-Lu (63,920 points)

Hello PlantUML team,

  • What is your correction?

Thank for your support,
Regards,
Th.

commented Feb 5, 2021 by Martin (8,360 points)

A workaround is to use this syntax:

commented Feb 5, 2021 by The-Lu (63,920 points)

Hello M.,

Thank you very much, it is also the good syntax.
I will update the doc accordingly.

Regards,
Th.

1 Answer

0 votes
answered Feb 5, 2021 by Martin (8,360 points)
selected Feb 8, 2021 by The-Lu
 
Best answer

Turning my comment into an answer, as The seems happy with it.

Syntax to label the exit from repeatwhile is:

repeat while (Something went wrong with long text?) is (yes) not (<back:green> no)
commented Feb 8, 2021 by The-Lu (63,920 points)

Hello M.,

Thank you (and PlantUML) very much , it is also the good syntax: to clearly distinguish the 2 labels:

  • "4-<>"
  • "<>-6"
'...
repeat while (4) is (4-0) not (4-<>)
-><>-6;
:6;
'...

Regards,
Th.

...