Skinparam rectangle not working in Activity beta

0 votes
asked Nov 19, 2018 in Bug by aho (160 points)

Hi,

in http://forum.plantuml.net/3478/how-to-style-loops-and-partitions-in-activity-beta-diagram?show=3529 it was implemented that on could use rectangle in Activity beta. I thought for asking for a Action like shape for grouping. But this could easily be archived with formatting rectangle which would give further possibilies to the user. Therefore I ask for the support of formatting rectangles in Activity beta.

Example code:

@startuml
skinparam  rectangle {
    RoundCorner<<action>> 25
    BackgroundColor<<action>> LemonChiffon
    BorderColor<<action>> FireBrick
}
hide stereotype
rectangle <<action>> outerAction {
:innerAction;
}
@enduml

The support of stereotypes would allow to format rectangles representing objects differently from those representing actions.

Version used: 1.2018.11

Thank you in advance

1 Answer

+1 vote
answered Nov 19, 2018 by plantuml (295,000 points)
selected Nov 20, 2018 by aho
 
Best answer

Ok, so let's start to add stereotype support in Beta Activity Diagram.

With last beta version http://beta.plantuml.net/plantuml.jar you can have:

@startuml
skinparam  rectangle {
    RoundCorner<<action>> 25
    BackgroundColor<<action>> blue
    BorderColor<<action>> red
}
skinparam  rectangle {
    RoundCorner 10
    BackgroundColor yellow
    BorderColor green
}
rectangle outerAction1 <<action>> {
:innerAction1;
}
rectangle outerAction2 {
:innerAction2;
}
@enduml

Is this what you are looking for ?

commented Nov 20, 2018 by aho (160 points)
Yes, fantastic. Didn't expect it to be implement that fast.

Thanks a lot.

One comment:
It is not needed to add
hide stereotype

This differs from the class diagram. Although I am fine with it, it feels inconsistent. Is this intended behavior?
...