I've just started looking at defining state machines and SCXML looks attractive, especially the Apache Commons SCXML for Java. Obviously I can validate the XML (with an appropriate XSD).
However I can't obviously find any way to verify that the defined state machine is valid (no dead-ends, no unreachable states, etc).
But how can I verify a defined state-machine before I execute it? In particular I am interested in tools that can integrated into a build tool-chain (i.e. from the command-line).
The uscxml-analyze tool from the uSCXML distribution will do just that:
$ uscxml-browser -c ../../test/w3c/ecma/test144.scxml
It checks for a whole bunch of issues:
The uSCXML interpreter will also check for cycles within a macro-step during interpretation.