lib/immutable-core-task-instance.js
/**
 * @function nextStepMethodName
 *
 * get name for method that determines next step. method name will be:
 * nextStep<lastStepName> with Error appended if last step had error.
 *
 * @returns {string}
 */
@function nextStepMethodName
get name for method that determines next step. method name will be:
nextStep with Error appended if last step had error.

@returns {string}
@function nextStepMethodName get name for method that determines next step . method name will be : nextStep with Error appended if last step had error . @returns { string }
function nextStepMethodName () {
    var lastSubStep = this.status.subStep
    if (!defined(lastSubStep)) {
        lastSubStep = 'none'
    }
    var error = defined(this.status.error) && defined(this.status.error[lastSubStep])
    var nextStepMethodName = `nextStep${_.upperFirst(lastSubStep)}${error ? 'Error' : ''}`
    debug('nextStepMethodName', nextStepMethodName)
    return nextStepMethodName
}
function nextStepMethodName ( ) { var lastSubStep = this . status . subStep if ( ! defined ( lastSubStep ) ) { lastSubStep = 'none' } var error = defined ( this . status . error ) && defined ( this . status . error [ lastSubStep ] ) var nextStepMethodName = ` ${ _ . upperFirst ( lastSubStep ) } ${ error ? 'Error' : '' } ` debug ( 'nextStepMethodName' , nextStepMethodName ) return nextStepMethodName }
@function nextStepMethodName
 get name for method that determines next step.
@function nextStepMethodName get name for method that determines next step .
// get last sub step from status - may be undefined // if subStep is not defined default to none // check if step had error // build method name from the last step and whether or not it had an error // debug method name // return method name