Stereotyping does not work for composite states

0 votes
asked Apr 13, 2015 in bug by anonymous
Hey guys!

It seems that stereotyping for skinparams does not work for composite states in state diagrams.

Regards
Andreas

4 Answers

0 votes
answered Apr 14, 2015 by plantuml (134,650 points)
Hello,

Thanks for the report.

Could you post a short and simple example that shows the bug ?

This will help!

Thanks again,
0 votes
answered Apr 15, 2015 by anonymous

Hello guys,

sure. Just consider the following example:

@startuml
skinparam state {
BorderColor<<comp>> Black
BackgroundColor<<comp>> Blue
BorderColor<<simple>> Black
BackgroundColor<<simple>> Green
}
c<<simple>> --> d<<simple>> : event
 
state "a_1" as a<<comp>>{
x<<simple>> --> y<<simple>> : ev
}
 
state "a_2" as b<<comp>> {
w<<simple>> --> z<<simple>> : ev2
}
 
a --> b : ev3
@enduml
 
To be more precise, it seems that the skinparam "BorderColor" is ignored for stereotyped composite states. Despite defining it as Black for composite states <<comp>>, it is always drawn as a thin red line. If "BorderColor" is defined globally (without stereotype), composite states are drawn correct. Other skinparams seem to work fine even for stereotyped composite states.
 
Thanks in advance for your feedback!
Regards
Andreas
0 votes
answered Apr 18, 2015 by plantuml (134,650 points)
Thanks for the feedback!

This has been solved in last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

This will be included in next official release.

Regards,
0 votes
answered Apr 20, 2015 by plantuml (134,650 points)
This has been fixed in V8023.

Thanks again!
...