next
Drives the workflow forward by exactly one host-visible step. It is the only advancement mechanism.
StepInput.None runs an Engine-run step, or retries a resolved blocker or a failure whose retry action is RetryAction.CallNextWithoutInput.
StepInput.FormSubmission submits form values for a previously returned InputRequest.Form.
StepInput.UploadIdDocument / StepInput.UploadNonIdDocument submit host-collected upload data.
A wrong input type for the current step is returned as StepResult.Failed with EngineError.InvalidNextInput — it is not thrown.
Cancelling the caller leaves work under way running, so a submit is never half sent. A scanner step still waiting for an Activity ends with it, though: nothing was sent, and the next call starts it again.