This utility provides a simple yet effective Finite State Machine implementation, which allows the definition of discrete states, and the valid transitions to other states available from any given state, and the actions which trigger the transitions.
A mechanism is provided for defining the entire state machine in JSON and having a fully populated StateMachine injected into the PureMVC app.
The utility is is located here:
https://github.com/PureMVC/puremvc-js-util-statemachine/wikiThe authors are Neil Manuell, Cliff Hall, and Saad Shams.