WorkflowProgress

data class WorkflowProgress(val stepCount: Int?, val interactiveStepCount: Int?, val hasConditionalInteractiveStep: Boolean, val isKioskModeEnabled: Boolean, val steps: List<Step>, val currentStepId: Int?, val completedStepIds: List<Int>)

Snapshot of the workflow's progress as known to Engine at a point in the session. Carries the data a home / progress screen needs. steps lists interactive steps only; the counts are null until the backend has sent a snapshot.

Constructors

Link copied to clipboard
constructor(stepCount: Int?, interactiveStepCount: Int?, hasConditionalInteractiveStep: Boolean, isKioskModeEnabled: Boolean, steps: List<Step>, currentStepId: Int?, completedStepIds: List<Int>)

Properties

Link copied to clipboard

The ids of the steps done so far, including ones not in steps.

Link copied to clipboard

The Step.id of the step the backend is on; it may not be one of steps.

Link copied to clipboard
Link copied to clipboard

Whether the workflow runs in kiosk mode, in which Engine's scanners use the front camera.

Link copied to clipboard

How many steps the workflow has, non-interactive ones too.

Link copied to clipboard