[activity diagram] how to change style of "backward" arrow

0 votes
asked Apr 11 in Question / help by AMB
In an activity diagram, I would like to change the style of the arrow associated with a "backward" statement. Below is my latest attempt to make the backward arrows blue and dashed. I have tried many different ways, none of which have worked. How do I do this correctly? Thank you for any help!

@startuml

<style>

activityDiagram {

   .bw {

      arrow {

         LineStyle 5

         LineColor blue

      }

   }

}

</style>

start

repeat :sense;

backward:adapt sensor sensitivity; <<bw>>

repeat while

->;

repeat :evaluate;

:decide;

:respond;

backward:remember/learn; <<bw>>

repeat while

->;

stop

@enduml

1 Answer

0 votes
answered Apr 15 by The-Lu (83,700 points)
selected Apr 17 by The-Lu
 
Best answer

Hello A.,

Thanks for your report.

Awaiting style management, and there are also some issues on coloured arrow management, I just open this:


Here is a workaround using inline-style as:

@startuml
start

repeat :sense;
(-[#blue,dashed]->)backward:adapt sensor sensitivity;(-[#blue,dashed]->)
repeat while
->;

repeat :evaluate;
:decide;
:respond;
(-[#blue,dashed]->)backward:remember/learn;(-[#blue,dashed]->)
repeat while

stop
@enduml

Enjoy,
Regards,
Th.

commented Apr 15 by AMB
Hi Th.,

Thanks for the inline workaround. That's exactly what I was looking for.

Best,

A
...