Cannot set a border style to an element in activity diagrams (legacy)

0 votes
asked Jun 5, 2019 in Question / help by anonymous

Hi,

Is it possible to set border styles or border thickness in activity diagrams?

I am using plantuml.1.2019.3 and I tested it in server http://www.plantuml.com/plantuml but it did not work.

Example:

@startuml
skinparam Activity {
  BackgroundColor<<Action>> green
  FontColor<<Action>> blue
  BorderStyle<<Action>> dashed
  BorderThickness<<Action>> 3
}

Start --> "First Activity" as a1 <<Action>>
a1 ...> End
@enduml

Regards

1 Answer

0 votes
answered Jun 10 by The-Lu (4,900 points)

Hello A.,

We can now use style (see https://plantuml.com/en/style-evolution [Starting with version 1.2019.9]) for that, with:

@startuml
<style>
activity {
  .Action {
    BackgroundColor green
    FontColor blue
    LineStyle 6
    LineThickness 3
  }
}
</style>
Start --> "First Activity" as a1 <<Action>>
a1 ...> End
@enduml


[Click to see on PlantUML online server]

If that can help,
Regards,
Th.

...