multiple skinparams in state diagram

0 votes
asked Apr 11, 2014 in To be sorted by anonymous

I am looking to style the many states in my state diagram using multiple skinparams. Is this possible? 

state CurrentSite{
    state HardwareSetup{
        Site -[hidden]-> Controller
        Controller -[hidden]-> Devices
    }
    state PresentationSetup{
        Groups -[hidden]-> PlansAndGraphics
    }
    state Trends
    state Schedule
    state AlarmSupression
 
}
 
in this example I would like HardwareSetup to by style-ized slightly differently than PresentationSetup, and then Trends,Schedule, and AlarmSupression slight different still.
 
The reason for this is that I'm using PlantUML's State diagram to depict a sitemap and I would like various states' color to show what useraccess rights are needed in the system to access these states/pages. 
 
Much appreciate the work. 

1 Answer

0 votes
answered Apr 11, 2014 by plantuml (295,000 points)

This is not documented (this should be!), but you can have:

 state CurrentSite #red {
    state HardwareSetup #blue {
       state Site #brown
        Site -[hidden]-> Controller
        Controller -[hidden]-> Devices
    }
    state PresentationSetup{
        Groups -[hidden]-> PlansAndGraphics
    }
    state Trends #FFFF77
    state Schedule #magenta
    state AlarmSupression
}

Is this what you are expecting ?

...