Things like JS Statemachine are fundamentally different from state maps. This is truly an FSM supernet. If you are using an application based on sproutcore, then native state diagrams are good (a little verbose imho). If you use another framework or minimize your own javascript, Stativus is actually the only full-featured statechart map. Stativus can be used in any javascript infrastructure: Backbone.js, ember.js, SproutCore, batman.js, ExtJS, Sencha, etc.
With FSM you will not receive:
- Parallel states
- Nested Substations
- History of States
- Statechart Event Propagation
In fact, it is like trying to drag a race on a Yugo with a Ferrari. Both of them can get you places and have four wheels, but they have much more power than even competition.
caveat: I helped write the original statechart implementation for SproutCore, and I wrote Stativus ...
source share