FlowRunner.Context (flow_runner v6.15.1)

Copy Markdown

A context provides information about an ongoing user flow session.

Summary

Functions

Clone a Context by its language & mode attributes, dropping everything else.

Assigns a new private key and value in the context.

Types

t()

@type t() :: %FlowRunner.Context{
  child_flow_uuid: nil | String.t(),
  current_flow_uuid: nil | String.t(),
  finished: boolean(),
  language: String.t(),
  last_block_uuid: nil | String.t(),
  log: [String.t()],
  mode: String.t(),
  parent_flow_uuid: nil | String.t(),
  parent_state_uuid: nil | String.t(),
  private: term(),
  vars: map(),
  waiting_for_child_flow: boolean(),
  waiting_for_user_input: boolean()
}

Functions

clone_empty(context)

@spec clone_empty(t()) :: t()

Clone a Context by its language & mode attributes, dropping everything else.

put_private(context, key, value)

@spec put_private(t(), atom(), any()) :: t()

Assigns a new private key and value in the context.

Modelled after Plug.Conn.put_private/3