Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Stereotyping does not work for composite states

0 votes
Hey guys!

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

asked Apr 13, 2015 in bug by anonymous

4 Answers

0 votes

Thanks for the report.

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

This will help!

Thanks again,
answered Apr 14, 2015 by plantuml (126,730 points)
0 votes

Hello guys,

sure. Just consider the following example:

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
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!
answered Apr 15, 2015 by anonymous
0 votes
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.

answered Apr 18, 2015 by plantuml (126,730 points)
0 votes
This has been fixed in V8023.

Thanks again!
answered Apr 20, 2015 by plantuml (126,730 points)
Support This Project Offer 250 Mo! Follow PlantUML on Twitter