farahshun / scxmlgui

Automatically exported from code.google.com/p/scxmlgui
0 stars 0 forks source link

Substates Of Different States Cannot have Same Name #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Now SCXML ID is displayed as the state's name.  
2.2 Substates under different states cannot use the same name as this becomes 
duplicate id in the scxml file.

What is the expected output? What do you see instead?
Can we display something else as the state name instead of using the id? It 
does not sound right if 2 independent substates of different states cannot use 
the same name.

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by msqwe...@yahoo.com on 11 Nov 2012 at 7:55

GoogleCodeExporter commented 9 years ago
all IDs must be unique.
Please refer to the scxml standard when in doubt of what is or is not allowed: 
http://www.w3.org/TR/scxml/#IDs

i didn't find another field that can be used for a custom name or so. But you 
can add a comment to better explain what each state is without having to depend 
to a unique and also self-explanatory state ID.

Original comment by fmorbini on 11 Nov 2012 at 4:52