SCXML provides a declarative markup for Statecharts, a powerful modelling language for developing complex, timed, event-driven, state-based systems.
npm install scxml
bower install jbeard4/scion
Prepare the model by downloading source scripts and constructing a host execution context for the SCXML datamodel.
The Statechart constructor creates an interpreter instance from a model object.
//same model can be used to create multiple interpreter instancesvar sc1 =sc2 = ;
See SCION-CORE API.