How to use stereotyped notes on state diagram

0 votes
asked May 14 in Question / help by murakami (160 points)
edited May 20 by murakami

For state diagram I would like to use stereotyped notes , e.g. like so:

skinparam noteBackgroundColor #lightblue
skinparam noteBackgroundColor<<stereotyped>> #lightpink

note <<stereotyped>>  right of state1 : "test_text2"
note  left of state2 :  "test_text1"

state state1 : has stereotyped notes
state state2 : has notes

But this does not work and I get syntax errors.
Is there any way to make it also work ?

commented May 14 by albert (2,500 points)
edited May 20 by albert

I gave your code a go in the online web server and got:

So which version of plantuml are you using?
What are the error messages you get ?


Later on OP has clarified, problem due to missing lines:

state state1 : has stereotyped notes
state state2 : has notes 

in original example (have been added to question).

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.