lib/flow.js
/**
     * This method will set the current state Id and current state name for this flow and will not take into
     * account any subflow logic
     * @param currentStateId
     */
This method will set the current state Id and current state name for this flow and will not take into
account any subflow logic
@param currentStateId
This method will set the current state Id and current state name for this flow and will not take into account any subflow logic @param currentStateId
set currentStateId(currentStateId) {
        if( currentStateId === State.states.FLOW_COMPLETE || currentStateId === State.states.INIT ) {
            this._currentStateId = currentStateId;
            this._currentStateName = currentStateId;
        }
        else  {
            assert(this.states[currentStateId], 'State does NOT exists ..... attempting to set current state id: ' +
                currentStateId + ' for flow: ' + this.name);
            this._currentStateId = currentStateId;
            this._currentStateName = this.states[currentStateId].name;
        }
    }
set currentStateId ( currentStateId ) { if ( currentStateId === State . states . FLOW_COMPLETE || currentStateId === State . states . INIT ) { this . _currentStateId = currentStateId ; this . _currentStateName = currentStateId ; } else { assert ( this . states [ currentStateId ] , 'State does NOT exists ..... attempting to set current state id: ' + currentStateId + ' for flow: ' + this . name ) ; this . _currentStateId = currentStateId ; this . _currentStateName = this . states [ currentStateId ] . name ; } }
This method will set the current state Id and current state name for this flow and will not take into
 account any subflow logic
 @param currentStateId
This method will set the current state Id and current state name for this flow and will not take into account any subflow logic @param currentStateId
// States: State.states.FLOW_COMPLETE, and State.states.INIT // aren't in the definition outright