1 2 3 4 5 6 7 8 9 10 11
var scion = require('scion'); scion.pathToModel('require/require.scxml',function(err,model){ if(err) throw err; var scxml = new scion.SCXML(model); var initialConfig = scxml.start(); console.log("initialConfig",initialConfig); var nextConfig = scxml.gen("t"); console.log("nextConfig",nextConfig); });