Skip to content

//workflow/com.squareup.workflow1/WorkflowAction/Updater

Updater

[jvm] inner class Updater(props: @UnsafeVariance()PropsT, state: StateT)

The context for calls to WorkflowAction.apply. Allows the action to set the state, and to emit the setOutput.

Parameters

jvm

state

the state that the workflow should move to. Default is the current state.

Constructors

Updater [jvm] fun Updater(props: @UnsafeVariance()PropsT, state: StateT)the state that the workflow should move to.

Functions

Name Summary
setOutput [jvm]
Content
fun setOutput(output: @UnsafeVariance()OutputT)
More info
Sets the value the workflow will emit as output when this action is applied.


Properties

Name Summary
props [jvm] val props: @UnsafeVariance()PropsT
state [jvm] var state: StateTthe state that the workflow should move to.