improve documentation for compiling scxml
Created by: pkoevesdi
I see several problems with the documentation: What's the difference between the several functions mentioned under the instantiation section here: https://github.com/jbeard4/SCION/blob/master/README.md to compile SCXML to model? I can't get any of them to work. In scxml.documentStringToModel(url,scxmlDocString,function(err, model){} [, context]), what's supposed to go into the 'url' parameter?
And how are these functions related to the json2model function? How can I access the latter one? It is mentioned here: https://github.com/jbeard4/SCION/wiki/nodejs-api#json2model
Also there were cli commands mentioned here: https://github.com/jbeard4/SCION/wiki/test#Usage Where are they supposed to be executed? Don't work on the linux bash, nor on the node cli.
So, all together, how do I get the 'scxml to model' process done in nodejs (or at least in any cli)? Is there a simple, working implementation example for nodejs available? (A self written model in scions Statecharts Model Schema runs fine with scion-core. But I want to pass scxml from a visual editor.) Thank you very much.