StepAction

sealed class StepAction

The next workflow action the caller should handle.

Inheritors

Types

Link copied to clipboard
data class EngineStep(val step: Step, val type: EngineStepType) : StepAction

A step Engine runs itself by launching a scanner SDK. The caller normally shows a home / progress screen, then calls Session.next with StepInput.None.

Link copied to clipboard
data class InputStep(val step: Step, val request: InputRequest) : StepAction

A step that requires host-rendered UI and host-collected input. The caller renders request, then calls Session.next with the matching input.

Link copied to clipboard
data class Start(val form: InputRequest.Form) : StepAction

The workflow's Start step, waiting on its pre-flight form. It comes only when the workflow gives Start form fields, and it isn't one of WorkflowProgress.steps. The caller renders form, then calls Session.next with a StepInput.FormSubmission.