Activity Diagrama using skinparam conditionStyle InsideDiamond

0 votes
asked May 24, 2023 in Question / help by anonymous
edited May 24, 2023

In Activity Diagram, like this:

@startuml
skinparam style strictuml
start
:Activity 1;
repeat
    :Activity 2;
    :Activity 3;
repeat while (condition) is (yes) not (no)
:Activity 4;
stop
@enduml

You get this graphics diagram, in this, can see then yes/no of the repeat condition.

But, when include "skinparam conditionStyle InsideDiamond", you can not see then yes/no of the repeat condition.

@startuml
skinparam style strictuml
skinparam conditionStyle InsideDiamond
start
:Activity 1;
repeat
    :Activity 2;
    :Activity 3;
repeat while (condition) is (yes) not (no)
:Activity 4;
stop
@enduml

View here

Regards

commented May 25, 2023 by The-Lu (63,920 points)

Hi A., and all,

A possible [tricky] workaround will be:

@startuml
skinparam style strictuml
skinparam conditionStyle InsideDiamond
start
:Activity 1;
repeat
    :Activity 2;
    :Activity 3;
repeat while (condition) is (yes) -[#black]-> yes
-> no;
:Activity 4;
stop
@enduml

Inspired by (those Ref.):

Enjoy,

Awaiting a real correction,
Regards.
Th.

1 Answer

0 votes
answered May 25, 2023 by anonymous
Graphically it solves the problem, but it must obviously be a bug that would be good to fix, so that the script is clear.
Thank you
...