func RecordSteps(stateRecordingMode RecordingMode) bool {
	switch stateRecordingMode {
	case RecordingModeOff, RecordingModeSnapshot:
		return false
	default:
		return true
	}
}
RecordSteps check to see if enbale step recording
package state
import (
	"fmt"
	"github.com/project-flogo/core/data/coerce"
	"strings"
)
type RecordingMode string
const (
	RecordingModeOff RecordingMode = "off"
	RecordingModeDebugger RecordingMode = "debugger"
	RecordingModeStep RecordingMode = "step"
	RecordingModeFull RecordingMode = "full"
	RecordingModeSnapshot RecordingMode = "snapshot"
)
func ToRecordingMode(mode interface{}) (RecordingMode, error) {
	m, _ := coerce.ToString(mode)
	rMode := RecordingMode(strings.ToLower(m))
	switch rMode {
	case RecordingModeDebugger, RecordingModeOff, RecordingModeFull, RecordingModeSnapshot, RecordingModeStep:
		return rMode, nil
	default:
		return RecordingModeOff, fmt.Errorf("unsupport state recording mode [%s]", m)
	}
}