lib/immutable-core-task-instance.js
/**
 * @function nextStepMethod
 *
 * after method success run next step
 *
 * @returns {Promise<undefined>}
 */
@function nextStepMethod
after method success run next step

@returns {Promise}
@function nextStepMethod after method success run next step @returns { Promise }
async function nextStepMethod () {
    if (this.task.numSteps === this.status.stepNum + 1) {
        await this.completeSuccess()
    }
    else {
        this.status.error = undefined
        this.status.try = {method: 0}
         after completing method with success
        this.status.stepNum++
        this.setStep()
        this.status.subStep = 'method'
    }
}
async function nextStepMethod ( ) { if ( this . task . numSteps === this . status . stepNum + 1 ) { await this . completeSuccess ( ) } else { this . status . error = undefined this . status . try = { method : 0 } this . status . stepNum ++ this . setStep ( ) this . status . subStep = 'method' } }
@function nextStepMethod
 after method success run next step
@function nextStepMethod after method success run next step
// all steps completed // complete task and save // go to next step // clear any errors // reset try counters to 0 // go to next step after completing method with success // set step to process from step number // start with method sub-step