Interface StepScript
interface StepScript {
andStep(name: string): NamedStep;
ensureAllScripted(): StepScript;
onAttempt(attempt: number): AttemptScript;
onEveryAttempt(): AttemptScript;
onRemainingAttempts(): AttemptScript;
run(executor?: LocalExecutor): Promise<ScriptedRun>;
}
andStep(name: string): NamedStep;
ensureAllScripted(): StepScript;
onAttempt(attempt: number): AttemptScript;
onEveryAttempt(): AttemptScript;
onRemainingAttempts(): AttemptScript;
run(executor?: LocalExecutor): Promise<ScriptedRun>;
}
Hierarchy (View Summary)
- AttemptChoice
- StepScript
Index
Methods
and Step
-
Starts describing the next step, or rescue step, named
name.Parameters
- name: string
Returns NamedStep
ensure All Scripted
-
Asks that every step of the workflow be scripted, checked by
run.Returns StepScript
on Attempt
-
Describes attempt
attempt, the attempt after the last one described.Parameters
- attempt: number
Returns AttemptScript
on Every Attempt
-
Describes every attempt.
Returns AttemptScript
on Remaining Attempts
-
Describes every attempt not yet described.
Returns AttemptScript
run
-
Runs the journey, as Script.run does.
Parameters
Optionalexecutor: LocalExecutor
Returns Promise<ScriptedRun>
A scripted run once a step has ended an attempt: it chooses another attempt of the step, names the next step, asks for every step to be scripted, or runs.