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 currentStateName
     */
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 currentStateName
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 currentStateName
set currentStateName(currentStateName) {
        if( currentStateName === State.states.FLOW_COMPLETE || currentStateName === State.states.INIT ) {
            this._currentStateId = currentStateName;
            this._currentStateName = currentStateName;
        }
        else if(this._statesByName[currentStateName]) {
            this._currentStateName = currentStateName;
            this._currentStateId = this._statesByName[currentStateName].id;
        }
    }
set currentStateName ( currentStateName ) { if ( currentStateName === State . states . FLOW_COMPLETE || currentStateName === State . states . INIT ) { this . _currentStateId = currentStateName ; this . _currentStateName = currentStateName ; } else if ( this . _statesByName [ currentStateName ] ) { this . _currentStateName = currentStateName ; this . _currentStateId = this . _statesByName [ currentStateName ] . id ; } }
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 currentStateName
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 currentStateName
// States: State.states.FLOW_COMPLETE, and State.states.INIT // aren't in the definition outright //        this.emit(FlowEvents.FLOW_STATE_TRANSITION, FlowEvents.FLOW_STATE_TRANSITION, context.flow);