Execute a StateMachine

This process walks you through creating a simple StateMachine that is generated out as an executable JavaScript ready for running as a Simulation of the model.