StatelessWorkflow

Minimal implementation of Workflow that maintains no state of its own.

Parameters

PropsT

Typically a data class that is used to pass configuration information or bits of state that the workflow can always get from its parent and needn't duplicate in its own state. May be Unit if the workflow does not need any props data.

OutputT

Typically a sealed class that represents "events" that this workflow can send to its parent. May be Nothing if the workflow doesn't need to emit anything.

RenderingT

The value returned to this workflow's parent during composition. Typically represents a "view" of this workflow's props, current state, and children's renderings. A workflow that represents a UI component may use a view model as its rendering type.

See also

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard

Properties

Link copied to clipboard

Use a lazy delegate so that any ImpostorWorkflow.realIdentifier will have been computed before this is initialized and cached.

Link copied to clipboard

The computed WorkflowIdentifier for this Workflow. Any IdCacheable Workflow should call this and then store the value in the cachedIdentifier property so as to prevent the extra work needed to create the WorkflowIdentifier and look up the class name each time.

Link copied to clipboard

The WorkflowIdentifier that identifies this Workflow.

Functions

Link copied to clipboard

Convenience to create a WorkflowAction with parameter types matching those of the receiving StatefulWorkflow. The action will invoke the given lambda when it is applied.

Link copied to clipboard

Satisfies the Workflow interface by wrapping this in a StatefulWorkflow with Unit state.

Link copied to clipboard
Link copied to clipboard

Called at least once any time one of the following things happens: