Skip to content

EXTENSION

AnyWorkflowConvertible

Methods

mapOutput(_:)

mapRendering(_:)

rendered(in:key:)

Creates or updates a child workflow of the given type, performs a render pass, and returns the result.

Note that it is a programmer error to render two instances of a given workflow type with the same key during the same render pass.

  • Parameter context: The context with which the workflow will be rendered.
  • Parameter key: A string that uniquely identifies this workflow.

  • Returns: The Rendering generated by the workflow.

rendered(in:key:outputMap:)

rendered(in:key:)

rendered(in:key:)

Creates or updates a child workflow of the given type, performs a render pass, and returns the result.

Note that it is a programmer error to render two instances of a given workflow type with the same key during the same render pass.

  • Parameter context: The context with which the workflow will be rendered.
  • Parameter key: A string that uniquely identifies this workflow.

  • Returns: The Rendering generated by the workflow.

running(in:key:outputMap:)

running(in:key:)

onOutput(_:)

Process an Output

  • Parameter apply: On Output, mutate State as necessary and return new Output (or nil).

ignoringOutput()

Wraps this workflow in a workflow that ignores all outputs.

  • Returns: An AnyWorkflow with the same rendering and no output.