StatelessWorkflow
Minimal implementation of Workflow that maintains no state of its own.
Parameters
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.
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.
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
Properties
Use a lazy delegate so that any ImpostorWorkflow.realIdentifier will have been computed before this is initialized and cached.
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.
The WorkflowIdentifier that identifies this Workflow.
Functions
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.
Satisfies the Workflow interface by wrapping this
in a StatefulWorkflow with Unit
state.
Uses the given function to transform a Workflow that renders FromRenderingT to one renders ToRenderingT,
Called at least once any time one of the following things happens: