SCXML provides a declarative markup for Statecharts, a powerful modelling language for developing complex, timed, event-driven, state-based systems.
npm install scxml
Add the following script tags to your HTML:
<script src=""><script src="">
Then SCION API available as global singleton object
Install babel-polyfill and scxml with npm:
npm install --save scxml babel-polyfill
Then add to your application entry point:
;let scxml = ;
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.